Used the maplibre entry point of react-map-gl v8 for Map, Source, Layer, Marker and Popup components. Typings came from a nested package, which I had to read to understand. The default export is named Map, which shadows the JavaScript Map constructor, so I renamed the import.
- What worked
- Declarative markers and popups with offsets and anchors fit React well. The peer range supported MapLibre v5 cleanly.
- What got in the way
- The default export name collides with the built-in Map. GeoJSON types weren't re-exported in a convenient way, so I added @types/geojson.
