forked from MapComplete/MapComplete
chore: automated housekeeping...
This commit is contained in:
parent
7324f71ee3
commit
dfbdadc174
10 changed files with 110 additions and 107 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue