Hi,
I have an ext window that reads my getcapabilities doc. thee BBar has a button
which then add the layer to the map. However, when this is added it is zoomed
right the way in to the largest scale.
Why is this not working as it should?
thanks for any help...
here is the code
bbar: [{
text: "Add To Map",
handler: function() {
capabilitiesgrid.getSelectionModel().each(function(record) {
var clone = record.clone();
clone.get("layer").mergeNewParams({
format: "image/png",
transparent: true
});
mapPanel.layers.add(clone);
map.zoomToExtent(
OpenLayers.Bounds.fromArray(clone.get("llbbox"))
);
});
}
}]
yours,
Robert
_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users