Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a direction of flow indicator to map_xs #17

Open
mpdougherty opened this issue Sep 20, 2020 · 1 comment
Open

Add a direction of flow indicator to map_xs #17

mpdougherty opened this issue Sep 20, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@mpdougherty
Copy link
Member

When zoomed in tight on a cross section, one has to remember from the reach overview map, what is the direction of flow. A "direction of flow indicator" would be helpful to orient the reader.

@mpdougherty mpdougherty added the enhancement New feature or request label Sep 20, 2020
@mpdougherty mpdougherty self-assigned this Sep 20, 2020
@mpdougherty
Copy link
Member Author

The traditional approach would be to add an arrow to the flowline pointing in the direction of flow. However, tmap::tm_line does not support adding arrows to lines.

Since the XS map is at such a fine scale, another approach could be to simply draw a small "director of flow indicator" in the upper left corner of the map. The flowline_points could be added as a new parameter and the upper and lower point can be identified from the map extent and used to calculate a direction vector used to draw an arrow.

image

@mpdougherty mpdougherty added this to the 2024.01 milestone Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant