forked from MapComplete/MapComplete
refactoring: move logic of lastclick into special layer, fix labels, fix anchoring
This commit is contained in:
parent
25a98af057
commit
52a0810ea9
47 changed files with 682 additions and 197 deletions
|
@ -11,6 +11,7 @@ import LinkToWeblate from "./Base/LinkToWeblate"
|
|||
import { SpecialVisualization, SpecialVisualizationState } from "./SpecialVisualization"
|
||||
import SpecialVisualizations from "./SpecialVisualizations"
|
||||
import { Feature } from "geojson"
|
||||
import LayerConfig from "../Models/ThemeConfig/LayerConfig"
|
||||
|
||||
export class SubstitutedTranslation extends VariableUiElement {
|
||||
public constructor(
|
||||
|
@ -24,7 +25,8 @@ export class SubstitutedTranslation extends VariableUiElement {
|
|||
state: SpecialVisualizationState,
|
||||
tagSource: UIEventSource<Record<string, string>>,
|
||||
argument: string[],
|
||||
feature: Feature
|
||||
feature: Feature,
|
||||
layer: LayerConfig
|
||||
) => BaseUIElement)
|
||||
> = undefined
|
||||
) {
|
||||
|
@ -85,7 +87,7 @@ export class SubstitutedTranslation extends VariableUiElement {
|
|||
tagsSource.data.id
|
||||
)
|
||||
return viz.func
|
||||
.constr(state, tagsSource, proto.args, feature)
|
||||
.constr(state, tagsSource, proto.args, feature, undefined)
|
||||
?.SetStyle(proto.style)
|
||||
} catch (e) {
|
||||
console.error("SPECIALRENDERING FAILED for", tagsSource.data?.id, e)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue