Skip to content

Zoom controls incorrectly disabled? #1848

@kingrollo

Description

@kingrollo

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...

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions