riatelab / magrit

Thematic cartography entirely in the browser ♥
https://magrit.cnrs.fr
GNU General Public License v3.0
123 stars 18 forks source link

Improve line/arrow drawing (color, dash, polyline, etc.) #103

Closed fbahoken closed 2 months ago

fbahoken commented 1 year ago

In the section "Layout and page setup": give the possibility to draw a straight line (solid or dashed) to indicate a separation. Example a line between France and Corse if it has been moved to the continent.

fbahoken commented 1 year ago

Proposal: add a direction option (e.g. by a checkbox: add an arrow) to the existing option to draw an arrow.

Alternatively, add a new possibility to draw a line on the map layout.

mthh commented 1 year ago

I'm not sure I fully understand. Doesn't the option to hide the arrowhead already address this issue?

Or maybe you want to be able to draw more complex polylines, with several segments ? (like in my example below, which is actually two arrows without heads)

export

fbahoken commented 1 year ago

That's exactly right !

A single line could have been enough, but if we can make a polyline, it's even better.

I'm afraid, I didn't see the option to hide the arrowhead ?! ...

mthh commented 1 year ago

All the layout elements can be configured by right-clicking on them (as well as their order can be reordered, if you have created a line, then a rectangle, but you want to display the line above the rectangle, for example)

This is (very briefly) described in the documentation here.

fbahoken commented 1 year ago

Yes, of course. Thank you very much :)

mthh commented 1 year ago

I have taken the liberty of renaming the issue to better reflect (I hope) what was discussed / what was asked, namely

To which I add :

mthh commented 2 months ago

In the v2, new lines are actually polylines and are customizable (thickness, color, opacity, dashed or not, arrow head or not).