From da2dffce1a9ac6fa4a424f719bce4a625fa2f1ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Mon, 29 Mar 2010 12:44:16 +0000 Subject: [PATCH] drawing features while the layer is not in the map may cause problem, r=pgiraud (closes #2546) git-svn-id: http://svn.openlayers.org/trunk/openlayers@10151 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/Vector.js | 1 + tests/Layer/Vector.html | 42 ++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/lib/OpenLayers/Layer/Vector.js b/lib/OpenLayers/Layer/Vector.js index 9d865f2470..957a257acd 100644 --- a/lib/OpenLayers/Layer/Vector.js +++ b/lib/OpenLayers/Layer/Vector.js @@ -421,6 +421,7 @@ OpenLayers.Layer.Vector = OpenLayers.Class(OpenLayers.Layer, { * map - {} */ removeMap: function(map) { + this.drawn = false; if(this.strategies) { var strategy, i, len; for(i=0, len=this.strategies.length; i