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