remove data from marker
git-svn-id: http://svn.openlayers.org/trunk/openlayers@411 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -17,9 +17,6 @@ OpenLayers.Marker.prototype = {
|
||||
/** @type OpenLayers.Map */
|
||||
map: null,
|
||||
|
||||
/** @type Object */
|
||||
data: null,
|
||||
|
||||
/** @type DOMElement */
|
||||
image: null,
|
||||
|
||||
@@ -29,10 +26,9 @@ OpenLayers.Marker.prototype = {
|
||||
* @param {OpenLayers.Icon} icon
|
||||
* @param {OpenLayers.LonLat lonlat
|
||||
*/
|
||||
initialize: function(lonlat, icon, data) {
|
||||
initialize: function(lonlat, icon) {
|
||||
this.icon = icon;
|
||||
this.lonlat = lonlat;
|
||||
this.data = data;
|
||||
|
||||
this.image = OpenLayers.Util.createAlphaImageDiv(null,
|
||||
null,
|
||||
@@ -41,11 +37,6 @@ OpenLayers.Marker.prototype = {
|
||||
"absolute"
|
||||
);
|
||||
this.events = new OpenLayers.Events(this, this.image, null);
|
||||
|
||||
//load marker events from data
|
||||
if (this.data != null && this.data.loadEvents != null) {
|
||||
this.data.loadEvents(this);
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user