Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(frontend): Vector base maps #28

Merged
merged 5 commits into from
May 30, 2024
Merged

feat(frontend): Vector base maps #28

merged 5 commits into from
May 30, 2024

Conversation

eatyourgreens
Copy link
Contributor

@eatyourgreens eatyourgreens commented May 30, 2024

This is essentially nismod/irv-frontend#28 ported across to this repo.

- Migrate from `mapbox-gl` to `maplibre-gl`.
- Replace `DeckMap` with `BaseMap`, `and `DeckGLOverlay` for data layers.
- Refactor map controls and map view state.
- Roll back concurrent rendering, which seems to be causing a null ref error inside React Map GL when it instantiates `mapbox`.
@eatyourgreens eatyourgreens marked this pull request as ready for review May 30, 2024 09:04
Comment on lines +1 to +5
import { render } from 'react-dom';
import { App } from './App';

const container = document.getElementById('root');
const root = createRoot(container);
root.render(<App />);
render(<App />, container);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rolling back concurrent rendering here is a workaround to avoid visgl/react-map-gl#1960, which crashes the map when it mounts.

@eatyourgreens eatyourgreens merged commit 375b186 into main May 30, 2024
1 check passed
@eatyourgreens eatyourgreens deleted the migrate-map branch May 30, 2024 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Vector basemaps
1 participant