[OpenLayers-Users] layer max zoom level

Erik Uzureau euzuro at gmail.com
Wed Nov 15 03:18:21 EST 2006


Have you tried setting maxZoomLevel on the *layer* and not on the map?
(assuming the layer in question is an overlay, not a baselayer)

also, http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#Layers
(if it might help)

On 11/14/06, Brent Owens <bowens at openplans.org> wrote:
> Hi everyone,
>
> I would like to set the max zoom level for one of my layers, so that it
> turns off when I zoom into a certain point.
> Right now I am using maxZoomLevel, but that seems to overwrite the max
> zoom level of the entire map.
> Is there a proper way to do this?
> I'm using version 1.0
>
> thanks!
>
> --
> Brent Owens
> (The Open Planning Project)
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>



More information about the Users mailing list