googlemaps / googlemaps/js-ogc

OGC WmsMapType minZoom - maxZoom range does not restrict tiles rendering

Open
#4 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.