Open corviday opened 3 months ago
Question: Does SCIP control the viewport (zoom window), or leave it up to Leaflet? You can pass in the viewport parameters to Leaflet, and likely should. Then it is up to SCIP to reset (or not, as apparently desired here) the viewport.
I think SCIP is currently leaving it up to leaflet. That sounds like a good direction for investigation.
P2A, amongst other apps, manages the viewport. Should give you a good example, especially with Quintin's recent improvements.
The map resets the zoom window whenever anything (dataset, timestamp, palette) is changed. This probably means it is resetting the view on any change to
wmsParams
, which is what triggers loading an wms layer. I don't know if react-leaflet offers us any control over this behavior, but it's worth looking into.