mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 19:42:36 +02:00
Merge pull request #2084 from umap-project/remote-onmoveend
fix: do not redraw remote layer if not dynamic
This commit is contained in:
commit
42e83de0f8
2 changed files with 2 additions and 2 deletions
|
@ -283,7 +283,7 @@ export class DataLayer {
|
|||
}
|
||||
|
||||
hasDynamicData() {
|
||||
return !!this.options.remoteData?.dynamic
|
||||
return this.isRemoteLayer() && Boolean(this.options.remoteData?.dynamic)
|
||||
}
|
||||
|
||||
async fetchRemoteData(force) {
|
||||
|
|
|
@ -47,7 +47,7 @@ export const LayerMixin = {
|
|||
dataChanged: () => {},
|
||||
|
||||
onMoveEnd: function () {
|
||||
if (this.datalayer.isRemoteLayer() && this.datalayer.showAtZoom()) {
|
||||
if (this.datalayer.hasDynamicData() && this.datalayer.showAtZoom()) {
|
||||
this.datalayer.fetchRemoteData()
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue