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 lineStyle = this.lineRendering[0].GenerateLeafletStyle(tags)
|
||||
const lineStyle = (this.lineRendering[0] ?? new LineRenderingConfig({}, "default"))?.GenerateLeafletStyle(tags)
|
||||
return {
|
||||
icon,
|
||||
icon: icon,
|
||||
...lineStyle
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue