Skip to content

Possible to override the default symbology #37

@Gustry

Description

@Gustry

For now, the symbology is hard-coded in the JS files :

new Style({
stroke: new Stroke({
color: 'black',
width: 11,
}),
}),
new Style({
stroke: new Stroke({
color: 'purple',
width: 9,
}),
}),
];
geometry.forEachSegment((start, end) => {
const dx = end[0] - start[0];
const dy = end[1] - start[1];
const rotation = Math.atan2(dy, dx);
// arrows
styles.push(
new Style({
geometry: new Point(end),
text: new Text({
text: '>',
font: 'normal 16px sans-serif',
rotateWithView: true,
rotation: -rotation,
stroke: new Stroke({
color: 'white',
width: 2,
}),
fill: new Fill({
color: 'white',
})

It would be nice to have the possibility to override these default symbology for the Lizmap administrator.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions