chore: remove 'postsync' event

This commit is contained in:
Yohan Boniface 2024-11-12 14:50:08 +01:00
parent 6d56bbb5de
commit 0dbac92853
3 changed files with 1 additions and 3 deletions

View file

@ -251,7 +251,6 @@ export default class Importer {
} }
full() { full() {
this.umap._leafletMap.once('postsync', this.umap._leafletMap._setDefaultCenter)
try { try {
if (this.files.length) { if (this.files.length) {
for (const file of this.files) { for (const file of this.files) {

View file

@ -193,7 +193,6 @@ export class MapPermissions extends ServerStored {
) )
if (!error) { if (!error) {
this.commit() this.commit()
this.umap._leafletMap.fire('postsync')
return true return true
} }
} }

View file

@ -1504,7 +1504,7 @@ export default class Umap extends ServerStored {
datalayer.redraw() datalayer.redraw()
}) })
this.propagate() this.propagate()
this._leafletMap.fire('postsync') this._leafletMap._setDefaultCenter()
this.isDirty = true this.isDirty = true
} }