-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Description
Hi,
See this jsfiddle: http://jsfiddle.net/G7CDK/
I've set map.maxZoom to 20 and osm.maxZoom to 14. Before you ask, I've got a custom tile layer which I don't want to render - but would ideally like to display at low resolution - beyond level 14 - I'm just using OSM here as an example!
If the tile layer is turned on, it overrides the map's maxZoom. This seems counter-intuitive to me - I still want to be able to zoom in and look at the vector layer. The current behaviour would only really make sense to me if the GeoJSON layer also had a setting for maxZoom.
Ideal solutions for me would be: (1) vector layers would have built-in minZoom/maxZoom options; (2) tiled layers would use lower resolution tiles if outside of their specified zoom levels; or as a last resort (3) the tiled layer would just become invisible if outside its scale range.
What do you think?
Thanks...