diff --git a/lib/OpenLayers/Feature/WFS.js b/lib/OpenLayers/Feature/WFS.js index f1bc41c77e..c490555407 100644 --- a/lib/OpenLayers/Feature/WFS.js +++ b/lib/OpenLayers/Feature/WFS.js @@ -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); + } }, /**