Subversion Repositories eFlore/Applications.moissonnage

Compare Revisions

Ignore whitespace Rev 41 → Rev 42

/trunk/widget/modules/carto/squelettes/scripts/cluster.js
28,10 → 28,22
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();
}
});