forked from MapComplete/MapComplete
Refactoring: some cleanup
This commit is contained in:
parent
3a708eba5b
commit
46a298cc20
1 changed files with 1 additions and 3 deletions
|
@ -276,7 +276,6 @@ class LineRenderingLayer {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
const filter = img.if?.asMapboxExpression()
|
const filter = img.if?.asMapboxExpression()
|
||||||
console.log(">>>", this._layername, imgId, img.if, "-->", filter)
|
|
||||||
if (filter) {
|
if (filter) {
|
||||||
spec.filter = filter
|
spec.filter = filter
|
||||||
}
|
}
|
||||||
|
@ -552,14 +551,13 @@ export default class ShowDataLayer {
|
||||||
}
|
}
|
||||||
|
|
||||||
private initDrawFeatures(map: MlMap) {
|
private initDrawFeatures(map: MlMap) {
|
||||||
let { features, doShowLayer, fetchStore, selectedElement, selectedLayer } = this._options
|
let { features, doShowLayer, fetchStore, selectedElement } = this._options
|
||||||
const onClick =
|
const onClick =
|
||||||
this._options.onClick ??
|
this._options.onClick ??
|
||||||
(this._options.layer.title === undefined
|
(this._options.layer.title === undefined
|
||||||
? undefined
|
? undefined
|
||||||
: (feature: Feature) => {
|
: (feature: Feature) => {
|
||||||
selectedElement?.setData(feature)
|
selectedElement?.setData(feature)
|
||||||
selectedLayer?.setData(this._options.layer)
|
|
||||||
})
|
})
|
||||||
if (this._options.drawLines !== false) {
|
if (this._options.drawLines !== false) {
|
||||||
for (let i = 0; i < this._options.layer.lineRendering.length; i++) {
|
for (let i = 0; i < this._options.layer.lineRendering.length; i++) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue