[OpenLayers-Users] Max Zoom in
Schuyler Erle
sderle at metacarta.com
Tue Jul 25 16:37:00 CDT 2006
* On 25-Jul-2006 at 4:33PM EDT, Gary Townsend (Spatial Mapping Ltd.) said:
> Is there a way to set OpenLayers to stop zooming in at a certain point? We
> have a WMS serving several layers of Satellite imagery however the imagery
> only goes to a certain resolution and then it stops being displayed because
> it is too grainy. This is controlled on the Map Server side. I was wondering
> if there was a way if a client zoomed past the minscale on the mapserver
> side that I could have OpenLayers default back to the highest level zoom
> allowed.
Yep. Pass {maxZoomLevel: 6} (or other integer) to the Map constructor.
SDE
More information about the Users
mailing list