add Path add event

This commit is contained in:
Vladimir Agafonkin 2012-12-12 18:24:05 +02:00
parent 406ff71013
commit dea6a349c0

View File

@ -47,6 +47,8 @@ L.Path = L.Class.extend({
this._map._pathRoot.appendChild(this._container);
}
this.fire('add');
map.on({
'viewreset': this.projectLatlngs,
'moveend': this._updatePath