add Path add event
This commit is contained in:
parent
406ff71013
commit
dea6a349c0
@ -47,6 +47,8 @@ L.Path = L.Class.extend({
|
|||||||
this._map._pathRoot.appendChild(this._container);
|
this._map._pathRoot.appendChild(this._container);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.fire('add');
|
||||||
|
|
||||||
map.on({
|
map.on({
|
||||||
'viewreset': this.projectLatlngs,
|
'viewreset': this.projectLatlngs,
|
||||||
'moveend': this._updatePath
|
'moveend': this._updatePath
|
||||||
|
Loading…
Reference in New Issue
Block a user