forked from MapComplete/MapComplete
Chore: housekeeping, linting
This commit is contained in:
parent
f942529755
commit
30d00eb06d
74 changed files with 998 additions and 623 deletions
|
@ -149,30 +149,32 @@
|
|||
},
|
||||
})
|
||||
|
||||
let nearbyFeatures: Store<Feature<Geometry, HotspotProperties>[]> = asFeatures.map((nearbyPoints) => {
|
||||
return [
|
||||
{
|
||||
type: "Feature",
|
||||
geometry: { type: "Point", coordinates: GeoOperations.centerpointCoordinates(feature) },
|
||||
properties: <HotspotProperties>{
|
||||
name: layer.title?.GetRenderValue(feature.properties).Subs(feature.properties).txt,
|
||||
focus: true,
|
||||
},
|
||||
},
|
||||
...nearbyPoints
|
||||
.filter((p) => p.properties["spherical"] === "yes")
|
||||
.map((f) => ({
|
||||
...f,
|
||||
let nearbyFeatures: Store<Feature<Geometry, HotspotProperties>[]> = asFeatures.map(
|
||||
(nearbyPoints) => {
|
||||
return [
|
||||
{
|
||||
type: "Feature",
|
||||
geometry: { type: "Point", coordinates: GeoOperations.centerpointCoordinates(feature) },
|
||||
properties: <HotspotProperties>{
|
||||
name: "Nearby panorama",
|
||||
pitch: "auto",
|
||||
type: "scene",
|
||||
gotoPanorama: f,
|
||||
focus: false
|
||||
name: layer.title?.GetRenderValue(feature.properties).Subs(feature.properties).txt,
|
||||
focus: true,
|
||||
},
|
||||
})),
|
||||
]
|
||||
})
|
||||
},
|
||||
...nearbyPoints
|
||||
.filter((p) => p.properties["spherical"] === "yes")
|
||||
.map((f) => ({
|
||||
...f,
|
||||
properties: <HotspotProperties>{
|
||||
name: "Nearby panorama",
|
||||
pitch: "auto",
|
||||
type: "scene",
|
||||
gotoPanorama: f,
|
||||
focus: false,
|
||||
},
|
||||
})),
|
||||
]
|
||||
}
|
||||
)
|
||||
|
||||
onDestroy(
|
||||
tags.addCallbackAndRunD((tags) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue