only create and add the marker when a Feature is actually being instantiated
git-svn-id: http://svn.openlayers.org/trunk/openlayers@410 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -19,8 +19,10 @@ OpenLayers.Feature.WFS.prototype =
|
|||||||
}
|
}
|
||||||
OpenLayers.Feature.prototype.initialize.apply(this, newArguments);
|
OpenLayers.Feature.prototype.initialize.apply(this, newArguments);
|
||||||
|
|
||||||
this.createMarker();
|
if (arguments.length > 0) {
|
||||||
this.layer.addMarker(this.marker);
|
this.createMarker();
|
||||||
|
this.layer.addMarker(this.marker);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user