[OpenLayers-Users] min/max zoom
Christopher Schmidt
crschmidt at metacarta.com
Tue May 29 17:56:47 EDT 2007
On Tue, May 29, 2007 at 03:25:54PM -0600, Gregor Mosheh wrote:
> Hi, all.
> Now that I'm past the killer problems, I can ask about features. :)
>
> Can I configure OL to only allow certain zoom levels?
> http://69.59.158.10/openlayers/
> This map is set to 20 zoom levels, though I only like levels 11 through
> 20. The opening default is 12.
>
> I see the map.maxZoomLevel and max.MinZoomLevel settings, but these seem
> not to affect the ability to zoom. And I see the map.numZoomLevels
> setting, but that seems not to affect the range of zooms (from world to
> house) but only the number of steps.
Set a maxResolution that's smaller. That makes the '0' level differently
sized. 'auto' will make the map fit the maxExtent in the window
exactly, but doesn't work with TileCache.
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Users
mailing list