[OpenLayers-Users] Re: Transition effect as a parameter
    Tondo 
    gpktondo at gmail.com
       
    Sun Jan 15 14:05:16 EST 2012
    
    
  
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.
    
    
More information about the Users
mailing list