<br><br>On Sunday, October 30, 2011, Ricardo Bayley <<a href="mailto:ricardo.bayley@gmail.com">ricardo.bayley@gmail.com</a>> wrote:<br>> Ho everyone,<br>> Does anybody know why the transitionEffect is not working ?<br>
> this is my config<br>> gwcLayer : new OpenLayers.Layer.WMS(<br>> "myGWC",<br>> ["<a href="http://localhost:8080/geowebcache/service/wms">http://localhost:8080/geowebcache/service/wms</a>" ],<br>
><br>> {<br>><br>> sphericalMercator: true,<br>> tileSize: new OpenLayers.Size(256,256),<br>> layers: "Argentina",<br>> format: 'image/png',<br>> tileLoadingDelay:0,<br>> transitionEffect: 'resize',<br>
> minZoomLevel: 0, <br>> maxZoomLevel: 8<br>> }<br><br>The signature of OpenLayers.Layer.WMS is:<br><br>OpenLayers.Layer.WMS(name, url, params, options)<br><br>"params" include parameters sent in WMS GetMap requests. "layers" and "format" should indeed be params.<br>
<br>"options" include options for the OpenLayers.Layer.WMS instance.<br><br>In your case tileLoadingDelay, transitionEffect, minZoomLevel, and maxZoomLevel should be *options* as opposed to params.<br><br>PS: this has been confusing people since very early stages of OpenLayers.<br>
<br>-- <br>Eric Lemoine<br><br>Camptocamp France SAS<br>Savoie Technolac, BP 352<br>73377 Le Bourget du Lac, Cedex<br><br>Tel : 00 33 4 79 44 44 96<br>Mail : <a href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a><br>
<a href="http://www.camptocamp.com">http://www.camptocamp.com</a><br><br>