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
This commit is contained in:
Éric Lemoine
2010-03-29 12:44:16 +00:00
parent 20cbb95feb
commit da2dffce1a
2 changed files with 43 additions and 0 deletions

View File

@@ -421,6 +421,7 @@ OpenLayers.Layer.Vector = OpenLayers.Class(OpenLayers.Layer, {
* map - {<OpenLayers.Map>}
*/
removeMap: function(map) {
this.drawn = false;
if(this.strategies) {
var strategy, i, len;
for(i=0, len=this.strategies.length; i<len; i++) {