Add default line rendering
This commit is contained in:
parent
a041fbf050
commit
24b4d30d6e
3 changed files with 3 additions and 4 deletions
|
@ -306,9 +306,9 @@ export default class LayerConfig extends WithContextLoader{
|
||||||
|
|
||||||
|
|
||||||
const icon = this.mapRendering[0].GenerateLeafletStyle(tags, clickable)
|
const icon = this.mapRendering[0].GenerateLeafletStyle(tags, clickable)
|
||||||
const lineStyle = this.lineRendering[0].GenerateLeafletStyle(tags)
|
const lineStyle = (this.lineRendering[0] ?? new LineRenderingConfig({}, "default"))?.GenerateLeafletStyle(tags)
|
||||||
return {
|
return {
|
||||||
icon,
|
icon: icon,
|
||||||
...lineStyle
|
...lineStyle
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,7 @@ export default class SplitRoadWizard extends Toggle {
|
||||||
source: {osmTags: "_cutposition=yes"},
|
source: {osmTags: "_cutposition=yes"},
|
||||||
mapRendering: [
|
mapRendering: [
|
||||||
{
|
{
|
||||||
location: ["point"],
|
location: ["point","centroid"],
|
||||||
icon: {render: "circle:white;./assets/svg/scissors.svg"},
|
icon: {render: "circle:white;./assets/svg/scissors.svg"},
|
||||||
iconSize: {render: "30,30,center"}
|
iconSize: {render: "30,30,center"}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
import ScriptUtils from "./ScriptUtils";
|
import ScriptUtils from "./ScriptUtils";
|
||||||
import {writeFileSync} from "fs";
|
import {writeFileSync} from "fs";
|
||||||
import {LayerConfigJson} from "../Models/ThemeConfig/Json/LayerConfigJson";
|
import {LayerConfigJson} from "../Models/ThemeConfig/Json/LayerConfigJson";
|
||||||
import LineRenderingConfig from "../Models/ThemeConfig/LineRenderingConfig";
|
|
||||||
import LineRenderingConfigJson from "../Models/ThemeConfig/Json/LineRenderingConfigJson";
|
import LineRenderingConfigJson from "../Models/ThemeConfig/Json/LineRenderingConfigJson";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue