You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah at least there should be some hint to indicate that it is disabled when the map is zoomed out. Right now clicking the 'Local MVT' checkbox at a low zoom level does nothing and it just seems something is broken.
This is an inbuilt behaviour of Leaflet I think. To fix it we could allow all zoom levels for MVT and have to make sure that performance is fine for low zoom levels.
Something that you probably could do is to update the label of the MVT layer on a zoom event, so you could change the label like (zoom in 2 more steps).
Ah ok, we could also change the text from 'Local MVT' to 'MVT (high zoom only)'... Don't know :). But I'd be surprised if its not possible to add some clickhandler to the checkbox and show some alert or something
Activity
easbar commentedon Sep 11, 2020
Yeah at least there should be some hint to indicate that it is disabled when the map is zoomed out. Right now clicking the 'Local MVT' checkbox at a low zoom level does nothing and it just seems something is broken.
karussell commentedon Sep 11, 2020
This is an inbuilt behaviour of Leaflet I think. To fix it we could allow all zoom levels for MVT and have to make sure that performance is fine for low zoom levels.
boldtrn commentedon Sep 11, 2020
Something that you probably could do is to update the label of the MVT layer on a zoom event, so you could change the label like (zoom in 2 more steps).
easbar commentedon Sep 11, 2020
Ah ok, we could also change the text from 'Local MVT' to 'MVT (high zoom only)'... Don't know :). But I'd be surprised if its not possible to add some clickhandler to the checkbox and show some alert or something
easbar commentedon Sep 17, 2020
Just for reference: The minZoom level is currently set to 10 here:
graphhopper/web/src/main/resources/assets/js/config/tileLayers.js
Line 105 in a17b6d5
(and in MvtResource.java...)