On Tue, Apr 13, 2010 at 10:47 AM,  <bart...@osgis.nl> wrote:
> Hi Eric,
>
> my map definition has the following set:
>
> var map = new OpenLayers.Map({
>  fractionalZoom: true,
>  maxResolution: GeoServices.MapMaxResolution,
>  projection: GeoServices.MapProjection,
>  units: GeoServices.MapUnits,
>  allOverlays: true,
>  maxExtent: GeoServices.MapMaxExtent
> });
>
> However, since my layers come from a Web Map Context (WMC) document, it
> always has numZoomLevels set in the Extension:
>
>      <Extension>
>        <ol:maxExtent xmlns:ol="http://openlayers.org/context";
> minx="0.000000000" miny="300000.0000" maxx="300000.0000"
> maxy="625000.0000"/>
>        <ol:transparent
> xmlns:ol="http://openlayers.org/context";>TRUE</ol:transparent>
>        <ol:numZoomLevels
> xmlns:ol="http://openlayers.org/context";>18</ol:numZoomLevels>
>        <ol:units xmlns:ol="http://openlayers.org/context";>m</ol:units>
>        <ol:isBaseLayer
> xmlns:ol="http://openlayers.org/context";>false</ol:isBaseLayer>
>        <ol:displayInLayerSwitcher
> xmlns:ol="http://openlayers.org/context";>true</ol:displayInLayerSwitcher>
>        <ol:singleTile
> xmlns:ol="http://openlayers.org/context";>true</ol:singleTile>
>      </Extension>
>
> So I guess this won't work for me?


I was hoping you could override options read from the WMC doc by
setting layerOptions in the WMC formation options, but applyDefaults
is used there so overriding isn't possible.

Or maybe layerToContext shouldn't set layer.numZoomLevels in the
context if layer.options.numZoomLevels is null.




-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
_______________________________________________
Dev mailing list
Dev@openlayers.org
http://openlayers.org/mailman/listinfo/dev

Reply via email to