-
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
enhancementNew feature or requestNew feature or request
Description
For now, the symbology is hard-coded in the JS files :
lizmap-pgrouting-module/pgrouting/www/js/pgrouting.js
Lines 239 to 272 in 4359b48
| 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request