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"
});
app.mapPanel.layers.add(capabilitiesLayer);
app.mapPanel.map.zoomToExtent(
OpenLayers.Bounds.fromArray(capabilitiesLayer.get("llbbox"))
);
});
}
}]/
Any suggestions?
Many thanks.
Regards,
Tom
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Transition-effect-as-a-parameter-tp7190368p7190368.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