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

@ -551,7 +551,7 @@ export default class ShowDataLayer {
options: ShowDataLayerOptions & {
layer: LayerConfig
drawMarkers?: true | boolean
drawLines?: true | boolean,
drawLines?: true | boolean
}
) {
this._options = options
@ -627,7 +627,15 @@ export default class ShowDataLayer {
}
private initDrawFeatures(map: MlMap) {
const { features, doShowLayer, fetchStore, selectedElement, layer, drawLines, drawMarkers } = this._options
const {
features,
doShowLayer,
fetchStore,
selectedElement,
layer,
drawLines,
drawMarkers,
} = this._options
let onClick = this._options.onClick
if (!onClick && selectedElement && layer.title !== undefined) {
onClick = (feature: Feature) => {
@ -640,7 +648,11 @@ export default class ShowDataLayer {
const l = new LineRenderingLayer(
map,
features,
"mapcomplete_" + (this._options.prefix ?? "") + layer.id + "_linerendering_" + i,
"mapcomplete_" +
(this._options.prefix ?? "") +
layer.id +
"_linerendering_" +
i,
lineRenderingConfig,
doShowLayer,
fetchStore,