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:
euzuro
2006-05-26 23:12:24 +00:00
parent 8a7fff3019
commit 99401464ff

View File

@@ -19,8 +19,10 @@ OpenLayers.Feature.WFS.prototype =
}
OpenLayers.Feature.prototype.initialize.apply(this, newArguments);
this.createMarker();
this.layer.addMarker(this.marker);
if (arguments.length > 0) {
this.createMarker();
this.layer.addMarker(this.marker);
}
},
/**