-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Empiric testing showed that lineDash specs are handled differently between OL and MFP:
OL:
each number of the line pattern represents the offset on each side of the center point, e.g half the segment width.
=> for a dotted pattern you need [0.5lineWidth, nlineWidth]
MFP:
each number of the line pattern represents the segment width.
=> for a dotted pattern (squares) you need [1lineWidth, nlineWidth]
so the translation code here would need to be changed:
mapfishprint/src/VectorEncoder.ts
Line 535 in cf55f2d
| symbolizer.strokeDashstyle = strokeDashstyle.join(' '); |
change to
symbolizer.strokeDashstyle = strokeDashstyle.map(l=>l*2).join(' ');
to be confirmed and tested since the dash specs of OL and MFP are not very precise.
Can you please give me more information on the dash rendering, @gberaudo ?
Metadata
Metadata
Assignees
Labels
No labels