ckan / ckanext-geoview

CKAN Geospatial ResourceView
MIT License
43 stars 58 forks source link

Auto-zoom to visible scale range of WMS layer #36

Open gjlawran opened 8 years ago

gjlawran commented 8 years ago

As a viewer using GeoView to preview a WMS layer I would like the map to automatically zoom to a scale range so that the WMS layer is visible when the resource preview map is presented.

For example, this resource preview requires the viewer to zoom in until the WMS reaches the draw threshold, where as this resource preview presents the WMS layers at the default small scale used for the map (taken from the layer extent).

The WMS GetCapabilities response may provide MinScaleDenominator and MaxScaleDenominator parameters which specify the draw thresholds for the layer. It is proposed that the GeoView use these parameters if present to ensure the map zooms to a visible scale range for preview.

hleckenb commented 6 years ago

Internal reference - https://proj.data.gov.bc.ca/jira/browse/BCDC-756