give OpenLayers.Marker a destroy()
git-svn-id: http://svn.openlayers.org/trunk/openlayers@501 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -30,6 +30,16 @@ OpenLayers.Marker.prototype = {
|
||||
this.events = new OpenLayers.Events(this, this.icon.imageDiv, null);
|
||||
},
|
||||
|
||||
destroy: function() {
|
||||
this.map = null;
|
||||
|
||||
// code to remove HTMLImage will go here
|
||||
// I realize now that it was not a good
|
||||
// idea to give OpenLayers.Icon the
|
||||
// 'imageDiv' property.. that should be
|
||||
// here. This is on my hot-list to fix
|
||||
},
|
||||
|
||||
/**
|
||||
* @param {OpenLayers.Pixel} px
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user