[OpenLayers-Users] layer max zoom level

Brent Owens bowens at openplans.org
Wed Nov 15 11:20:49 EST 2006


I think the problem that the layer is a baselayer and not an overlay. I 
will upgrade to the latest version and change them and let you know how 
it works.

Thanks for the help,

Brent Owens
(The Open Planning Project)



Erik Uzureau wrote:
> 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
>>
>
> !DSPAM:1005,455acd9f182861460912952!
>



More information about the Users mailing list