forked from MapComplete/MapComplete
chore: automated housekeeping...
This commit is contained in:
parent
a178de3e03
commit
bb6b053429
131 changed files with 7447 additions and 5143 deletions
|
|
@ -9,7 +9,7 @@ import { TagsFilter } from "../../Tags/TagsFilter"
|
|||
import { BBox } from "../../BBox"
|
||||
import { FeatureCollection } from "@turf/turf"
|
||||
import { OsmTags } from "../../../Models/OsmFeature"
|
||||
"use strict";
|
||||
;("use strict")
|
||||
|
||||
/**
|
||||
* A wrapper around the 'Overpass'-object.
|
||||
|
|
@ -63,12 +63,9 @@ export default class OverpassFeatureSource implements UpdatableFeatureSource {
|
|||
? new ImmutableStore(state.layers)
|
||||
: state.zoom.map((zoom) => this.layersToDownload(zoom))
|
||||
|
||||
state.bounds.mapD(
|
||||
() => {
|
||||
this.updateAsyncIfNeeded()
|
||||
},
|
||||
[this._layersToDownload]
|
||||
)
|
||||
state.bounds.mapD(() => {
|
||||
this.updateAsyncIfNeeded()
|
||||
}, [this._layersToDownload])
|
||||
}
|
||||
|
||||
private layersToDownload(zoom: number): LayerConfig[] {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue