mirror of
https://github.com/umap-project/umap.git
synced 2025-04-29 03:42:37 +02:00
Merge pull request #2033 from umap-project/nocontrol-no-loading
fix: deactivate loader on map fragments
This commit is contained in:
commit
5d0abe7dc1
1 changed files with 4 additions and 2 deletions
|
@ -62,8 +62,10 @@ U.Map = L.Map.extend({
|
||||||
this.editPanel = new U.EditPanel(this)
|
this.editPanel = new U.EditPanel(this)
|
||||||
this.fullPanel = new U.FullPanel(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, 'dataloading', (e) => this.fire('dataloading', e))
|
||||||
L.DomEvent.on(document.body, 'dataload', (e) => this.fire('dataload', e))
|
L.DomEvent.on(document.body, 'dataload', (e) => this.fire('dataload', e))
|
||||||
|
}
|
||||||
this.server = new U.ServerRequest()
|
this.server = new U.ServerRequest()
|
||||||
this.request = new U.Request()
|
this.request = new U.Request()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue