Using react-map-gl and MapLibre
- Render a hidden map that contains the full grid (with layers from OSM and OSRD)
- Wait for every features to be rendered (the map's
"idle"
event)
- Query all the rendered features (with
map.querySourceFeatures
)
- Project every features
- Render a new map with the projected features