rename events

This commit is contained in:
Calvin Metcalf 2013-01-16 22:00:55 -05:00
parent 88f1e121ee
commit c0e4241f36

View File

@ -218,11 +218,11 @@ L.Control.Layers = L.Control.extend({
if (!obj.overlay) {
baseLayer = obj.layer;
} else {
this._map.fire('overlaylayeradd', {layer: obj});
this._map.fire('overlayadd', {layer: obj});
}
} else if (!input.checked && this._map.hasLayer(obj.layer)) {
this._map.removeLayer(obj.layer);
this._map.fire('overlaylayerremoved', {layer: obj});
this._map.fire('overlayremove', {layer: obj});
}
}