googlemaps / googlemaps/js-ogc
OGC WmsMapType minZoom - maxZoom range does not restrict tiles rendering
- Dominant language
- TypeScript
- Stars
- 17
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
Using the example code with different wms servers
- setting the values minZoom and maxZoom have no effect in the tiles rendering
- regardless of those zoom values the tiles are rendered
This is a problem when rendering smaller geographic boundaries at a small zoom values, whereas the map becomes unreadable with some many overlapping lines
Some wms servers deal with the zoom by returning empty tiles below certain zoom level, like US census for counties boundaries below zoom 6
```
url: "https://tigerweb.geo.census.gov/arcgis/services/TIGERweb/tigerWMS_Current/MapServer/WmsServer?",
layers: "Counties",
```
But others keep rendering the tiles at any zoom level, ignoring minZoom value
Would it be possible for the WmsMapType plugin to stop calling the wms server when out of the zoom range (minZoom - maxZoom) if any of those values is set in the WmsMapType options?
Thanks
Contributor guide
Assessment
This issue has not been assessed yet.