Subversion Repositories eFlore/Applications.moissonnage

Compare Revisions

Ignore whitespace Rev 42 → Rev 41

/trunk/widget/modules/carto/squelettes/scripts/cluster.js
28,22 → 28,10
index ++;
}
}
if (this._markers.length == 0) {
if (this._map != null) {
this._map.getPanes().markerPane.removeChild(this._icon);
}
if (this._markers.length == 0 && this._map != null) {
this._map.removeLayer(this);
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;
}
});
109,7 → 97,8
},
supprimerPoint: function(layer) {
layer.supprimer();
this.removeLayer(layer);
delete layer;
}
});