[OpenLayers-Users] Max Zoom in

Gary Townsend (Spatial Mapping Ltd.) garyt at spatialmapping.com
Tue Jul 25 17:05:22 CDT 2006


Oi, knew it was something simple I was missing. Thanks

-----Original Message-----
From: Schuyler Erle [mailto:sderle at metacarta.com] 
Sent: July 25, 2006 2:37 PM
To: Gary Townsend (Spatial Mapping Ltd.)
Cc: users at openlayers.org
Subject: Re: [OpenLayers-Users] Max Zoom in

* 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