set the map variable when we add a marker to the markers layer

git-svn-id: http://svn.openlayers.org/trunk/openlayers@533 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-06-07 13:01:36 +00:00
parent 9e5059a93c
commit 7cc874d26b

View File

@@ -36,6 +36,7 @@ OpenLayers.Layer.Markers.prototype =
addMarker: function(marker) {
this.markers.append(marker);
if (this.map && this.map.getExtent()) {
marker.map = this.map;
this.drawMarker(marker);
}
},