[OpenLayers-Users] Transition effect as a parameter

Eric Lemoine eric.lemoine at camptocamp.com
Sun Jan 15 14:05:06 EST 2012


On Sunday, January 15, 2012, Tondo <gpktondo at gmail.com> 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 : eric.lemoine at camptocamp.com
http://www.camptocamp.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120115/00fdb3d1/attachment.html


More information about the Users mailing list