Merge pull request #2033 from umap-project/nocontrol-no-loading

fix: deactivate loader on map fragments
This commit is contained in:
Yohan Boniface 2024-08-02 17:18:02 +02:00 committed by GitHub
commit 5d0abe7dc1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -62,8 +62,10 @@ U.Map = L.Map.extend({
this.editPanel = new U.EditPanel(this)
this.fullPanel = new U.FullPanel(this)
}
if (!this.options.noControl) {
L.DomEvent.on(document.body, 'dataloading', (e) => this.fire('dataloading', e))
L.DomEvent.on(document.body, 'dataload', (e) => this.fire('dataload', e))
}
this.server = new U.ServerRequest()
this.request = new U.Request()