<br><br>On Sunday, January 15, 2012, Tondo <<a href="mailto:gpktondo@gmail.com">gpktondo@gmail.com</a>> wrote:<br>> Hi<br>><br>> Here's code for a button, that adds selected layer from<br>> app.capabilitiesPanel to app.mapPanel.map (instance of OpenLayers.map), but<br>
> effect does not seems to work.<br>><br>> /bbar: [{<br>> text: "Add Layer",<br>> handler: function() {<br>> app.capsGrid.getSelectionModel().each(function(record) {<br>> var capabilitiesLayer = record.clone();<br>
> capabilitiesLayer.getLayer().mergeNewParams({<br>> format: "image/png",<br>> transparent: true,<br>> transitionEffect = "resize"<br>
> });<br><br>The above syntax is wrong.<br><br>And transitionEffect is not a WMS parameter, it is an option of the layer instance.<br><br>Try: getLayer().transitionEffect = 'resize';<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>