Sorry... but I have to UP! :)

Does exist a way to sync the zoom levels of Google base layers and WMS base
layers without removing numZoomLevels and maxZoomLevel?



Alessio Di Lorenzo wrote:
> 
> Hi List,
> 
> I have a map that uses Google layers as default base layers and I defined
> some options to avoid zooming too close or too far on the map
> 
> options = {
>               controls:[],
>               maxExtent: bounds,
>               restrictedExtent: restrBounds,
>               maxResolution: "156543.0339",
>               numZoomLevels:9,
>               minZoomLevel:6,
>               maxZoomLevel:15,
>               projection: new OpenLayers.Projection("EPSG:900913"),
>         displayProjection: new OpenLayers.Projection("EPSG:4326"),
>         units:"meters"
>       } 
> 
> I need to make available another base layer from my wms (cached with
> TileCache) and/or with an empty layer. 
> 
> I noticed that when I use my wms or the empty map as base layer I can't
> zoom in my overlays at the same level that I can reach with one of the
> Google base and the same overlay... the zooming level appears "locked".
> This problem disappear if I comment the numZoomLevels and maxZoomLevels
> parameter... but I need them.
> 
> Is there a way to fix this?
> thx in advance, alessio
> 

-- 
View this message in context: 
http://n2.nabble.com/Problem-alternating-google-bases-with-my-own-wms-bases-tp2284792p2863770.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to