[OpenLayers-Dev] allOverlays question
eric.lemoine at camptocamp.com
Tue Apr 13 05:38:38 EDT 2010
On Tue, Apr 13, 2010 at 10:00 AM, <bartvde at osgis.nl> wrote:
> Hi list,
> I am tracking down an issue in my application. I am using allOverlays true
> on the Map object. When I start up my application, a layer with no scale
> info set is as the lowest in the stack and hence acts as the "base" layer.
> However, I have a control which raises this layer (a marker layer) to the
> top, and then another (WMS) layer acts as the "base" layer. This layer is
> however scale-dependent, which means the map is not zoomable anymore after
> Is there a way around this, or is this a side-effect of allOverlays? Do I
> need to resort back to my dummy base layer?
Do you have resolutions or resolution information set in the map?
I think my patch for <http://trac.openlayers.org/ticket/2427> would
help you. With my patch if your layer options include maxResolution
(or minResolution) and doesn't include numZoomLevels (which is the
default), then no attempt to calculate resolutions based on the
maxResolution value will be done, and the resolution data from the map
will be used.
Tell me if you need further information.
PS: I have a complete description of my patch, but I'm holding it
until 2.9 is released.
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
More information about the Dev