forked from MapComplete/MapComplete
Merge develop
This commit is contained in:
commit
827d9ae685
664 changed files with 33303 additions and 29790 deletions
|
|
@ -106,14 +106,14 @@ export class AvailableRasterLayers {
|
|||
location: Store<{ lon: number; lat: number }>,
|
||||
enableBing?: Store<boolean>
|
||||
): Store<RasterLayerPolygon[]> {
|
||||
const availableLayersBboxes = Stores.ListStabilized(
|
||||
const availableLayersBboxes = Stores.listStabilized(
|
||||
location.mapD((loc) => {
|
||||
const eli = AvailableRasterLayers._editorLayerIndex
|
||||
const lonlat: [number, number] = [loc.lon, loc.lat]
|
||||
return eli.filter((eliPolygon) => BBox.get(eliPolygon).contains(lonlat))
|
||||
})
|
||||
)
|
||||
return Stores.ListStabilized(
|
||||
return Stores.listStabilized(
|
||||
availableLayersBboxes.mapD(
|
||||
(eliPolygons) => {
|
||||
if (!IsOnline.isOnline.data) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue