From 99401464ff26a03361319e097193acc277f2264a Mon Sep 17 00:00:00 2001 From: euzuro Date: Fri, 26 May 2006 23:12:24 +0000 Subject: [PATCH] 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 --- lib/OpenLayers/Feature/WFS.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); + } }, /**