chore: automated housekeeping...

This commit is contained in:
Pieter Vander Vennet 2025-05-04 03:01:20 +02:00
parent 7324f71ee3
commit dfbdadc174
10 changed files with 110 additions and 107 deletions

View file

@ -18,7 +18,7 @@ import { Store, UIEventSource } from "../../Logic/UIEventSource"
import NearbyFeatureSource from "../../Logic/FeatureSource/Sources/NearbyFeatureSource"
import {
SummaryTileSource,
SummaryTileSourceRewriter
SummaryTileSourceRewriter,
} from "../../Logic/FeatureSource/TiledFeatureSource/SummaryTileSource"
import { ShowDataLayerOptions } from "../../UI/Map/ShowDataLayerOptions"
@ -121,7 +121,7 @@ export class WithSpecialLayers extends WithChangesState {
new ShowDataLayer(this.map, {
features: source,
layer: new LayerConfig(<LayerConfigJson><unknown>summaryLayer, "summaryLayer"),
layer: new LayerConfig(<LayerConfigJson>(<unknown>summaryLayer), "summaryLayer"),
// doShowLayer: this.mapProperties.zoom.map((z) => z < maxzoom),
selectedElement: this.selectedElement,
})
@ -147,7 +147,7 @@ export class WithSpecialLayers extends WithChangesState {
private drawLastClick() {
const source = this.lastClickObject
const lastClickLayerConfig = new LayerConfig(
<LayerConfigJson><unknown>last_click_layerconfig,
<LayerConfigJson>(<unknown>last_click_layerconfig),
"last_click"
)
const lastClickFiltered =
@ -185,7 +185,9 @@ export class WithSpecialLayers extends WithChangesState {
const src = new StaticFeatureSource(
this.selectedElement.map((f) => (f === undefined ? [] : [f]))
)
ShowDataLayer.showMultipleLayers(this.map, src, this.theme.layers, { prefix: "selected_element_" })
ShowDataLayer.showMultipleLayers(this.map, src, this.theme.layers, {
prefix: "selected_element_",
})
}
private drawSpecialLayers() {