28,11 → 28,23 |
index ++; |
} |
} |
if (this._markers.length == 0 && this._map != null) { |
this._map.removeLayer(this); |
if (this._markers.length == 0) { |
if (this._map != null) { |
this._map.getPanes().markerPane.removeChild(this._icon); |
} |
delete this; |
} |
}, |
|
supprimer: function() { |
while (this._markers.length > 0) { |
this._markers.splice(0, 1); |
} |
if (this._map != null) { |
this._map.getPanes().markerPane.removeChild(this._icon); |
} |
delete this; |
} |
|
}); |
|
97,8 → 109,7 |
}, |
|
supprimerPoint: function(layer) { |
this.removeLayer(layer); |
delete layer; |
layer.supprimer(); |
} |
|
}); |