move addlayer event trigger to after the baselayer has been set

git-svn-id: http://svn.openlayers.org/trunk/openlayers@1619 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-10-05 23:17:54 +00:00
parent 407604cc35
commit 5d4ba864dc

View File

@@ -281,8 +281,6 @@ OpenLayers.Map.prototype = {
this.layers.push(layer);
layer.setMap(this);
this.events.triggerEvent("addlayer");
//make sure layer draws itself!
if (this.center != null) {
var bounds = this.getExtent();
@@ -298,6 +296,8 @@ OpenLayers.Map.prototype = {
layer.setVisibility(false);
}
}
this.events.triggerEvent("addlayer");
},
/**