[OpenLayers-Commits] r2302 - trunk/openlayers/lib/OpenLayers/Layer
commits at openlayers.org
commits at openlayers.org
Mon Mar 5 02:02:49 EST 2007
Author: crschmidt
Date: 2007-03-05 02:02:40 -0500 (Mon, 05 Mar 2007)
New Revision: 2302
Modified:
trunk/openlayers/lib/OpenLayers/Layer/Boxes.js
Log:
#475: removeMarker does not work in Boxes Layer . Patch from euzuro. This
was approved before 2.3 released, but never applied. Adds a removeMarker
function for the boxes layer, subclassing the marker default.
Modified: trunk/openlayers/lib/OpenLayers/Layer/Boxes.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Layer/Boxes.js 2007-03-04 06:58:42 UTC (rev 2301)
+++ trunk/openlayers/lib/OpenLayers/Layer/Boxes.js 2007-03-05 07:02:40 UTC (rev 2302)
@@ -44,6 +44,19 @@
}
},
+
+ /** OVERRIDDEN
+ *
+ * @param {OpenLayers.Marker} marker
+ */
+ removeMarker: function(marker) {
+ OpenLayers.Util.removeItem(this.markers, marker);
+ if ((marker.div != null) &&
+ (marker.div.parentNode == this.div) ) {
+ this.div.removeChild(marker.div);
+ }
+ },
+
/** @final @type String */
CLASS_NAME: "OpenLayers.Layer.Boxes"
});
More information about the Commits
mailing list