On Sunday, October 30, 2011, Ricardo Bayley <[email protected]>
wrote:
> Ho everyone,
> Does anybody know why the transitionEffect is not working ?
> this is my config
> gwcLayer : new OpenLayers.Layer.WMS(
> "myGWC",
> ["http://localhost:8080/geowebcache/service/wms"; ],
>
> {
>
> sphericalMercator: true,
> tileSize: new OpenLayers.Size(256,256),
> layers: "Argentina",
> format: 'image/png',
> tileLoadingDelay:0,
> transitionEffect: 'resize',
> minZoomLevel: 0,
> maxZoomLevel: 8
> }

The signature of OpenLayers.Layer.WMS is:

OpenLayers.Layer.WMS(name, url, params, options)

"params" include parameters sent in WMS GetMap requests. "layers" and
"format" should indeed be params.

"options" include options for the OpenLayers.Layer.WMS instance.

In your case tileLoadingDelay, transitionEffect, minZoomLevel, and
maxZoomLevel should be *options* as opposed to params.

PS: this has been confusing people since very early stages of OpenLayers.

-- 
Eric Lemoine

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

Tel : 00 33 4 79 44 44 96
Mail : [email protected]
http://www.camptocamp.com
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to