Fix: add carto vector layers again

This commit is contained in:
Pieter Vander Vennet 2023-10-11 19:16:33 +02:00
parent 89afe9102f
commit 5e2a98924c
2 changed files with 70 additions and 4 deletions

View file

@ -53,10 +53,7 @@ export class AvailableRasterLayers {
geometry: BBox.global.asGeometry(),
}
public static readonly vectorLayers = [
AvailableRasterLayers.maptilerDefaultLayer,
AvailableRasterLayers.osmCarto,
]
public static readonly vectorLayers = [AvailableRasterLayers.maptilerDefaultLayer]
public static layersAvailableAt(
location: Store<{ lon: number; lat: number }>
@ -79,6 +76,7 @@ export class AvailableRasterLayers {
}
return GeoOperations.inside(lonlat, eliPolygon)
})
matching.push(AvailableRasterLayers.maptilerDefaultLayer)
matching.push(...AvailableRasterLayers.globalLayers)
return matching
})