forked from MapComplete/MapComplete
Fix: actually load geojson layers; formatting
This commit is contained in:
parent
f0d9365e06
commit
cbc4e6eb15
2 changed files with 20 additions and 14 deletions
|
@ -63,8 +63,6 @@ export default class LayoutSource extends FeatureSourceMerger {
|
|||
LayoutSource.setupGeojsonSource(l, mapProperties, isDisplayed(l.id))
|
||||
)
|
||||
|
||||
const expiryInSeconds = Math.min(...(layers?.map((l) => l.maxAgeOfCache) ?? []))
|
||||
|
||||
super(overpassSource, osmApiSource, ...geojsonSources, ...fromCache)
|
||||
|
||||
const self = this
|
||||
|
@ -84,7 +82,7 @@ export default class LayoutSource extends FeatureSourceMerger {
|
|||
): FeatureSource {
|
||||
const source = layer.source
|
||||
isActive = mapProperties.zoom.map(
|
||||
(z) => (isActive?.data ?? true) && z >= layer.maxzoom,
|
||||
(z) => (isActive?.data ?? true) && z >= layer.minzoom,
|
||||
[isActive]
|
||||
)
|
||||
if (source.geojsonZoomLevel === undefined) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue