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:
@@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user