Solved! It's optional, so I did it this... litle bit ugly way.

/bbar: [{
                                text: "Pridaj vrstvu",
                                handler: function() {
                                        
app.capabilitiesPanel.getSelectionModel().each(function(record) {
                                                var capabilitiesLayer = 
record.clone();
                                                
capabilitiesLayer.getLayer().mergeNewParams({
                                                        format: "image/png",
                                                        transparent: true
                                                });
                                                
app.mapPanel.layers.add(capabilitiesLayer);
                                                *var mapLayers = [];
                                                mapLayers = 
app.mapPanel.map.layers;
                                                
mapLayers[mapLayers.length-1].transitionEffect = 'resize';*
                                                app.mapPanel.map.zoomToExtent(
                                                        
OpenLayers.Bounds.fromArray(capabilitiesLayer.get("llbbox"))
                                                );
                                        });
                                }                               
                        }]/

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Transition-effect-as-a-parameter-tp7190368p7190418.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to