martindholmes / BreezeMap

BreezeMap is a project to create a simple user interface for interactive map and facsimile editing based on TEI XML and OpenLayers 4+.
MIT License
11 stars 3 forks source link

Arrow triangles for directional LineStrings should be proportionate to scale #35

Closed martindholmes closed 3 years ago

martindholmes commented 3 years ago

The triangles drawn to make LineStrings into arrowed routes are too large when at a high zoom level. They need to be proportionate to something, but it's not clear to me what that should be. It really depends on the pixel-length of the lines rather than the actual zoom level.

martindholmes commented 3 years ago

For the moment, I've taken a different approach to this: triangles are only added to LineString segments longer than 25px on the screen. Implemented in commit #59e5e70. May reopen if this doesn't prove ideal, or if it's deemed essential to add arrows to the first and last segments irrespective of their length.