Skip to content

OGC WmsMapType minZoom - maxZoom range does not restrict tiles rendering #4

@thexs-dev

Description

@thexs-dev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions