Enhancement: Map rotation and North orientation badge. Fixes #178#181
Enhancement: Map rotation and North orientation badge. Fixes #178#181juandesant wants to merge 12 commits intooriginalankur:mainfrom
Conversation
Needs fixes in sice and colors.
This reverts commit 0a6ad89.
Rotated and rotated with badge
Added maps of Granada with links to uploaded posters
Added applied rotation, badges
It was not the right angle.
|
@zkornbluth your open pr is also merged in resulting in the poster losing the parks and water layers for rotated maps or it's just @juandesant PR?. |
Just this PR. Mine doesn't have the rotation. |
- **theme** Grand Prix - **Rotation** Added rotation ([PR originalankur#181](originalankur#181))
Same here. Rotation loses water and parks (and other feature that i adedd like railways and airstrips) |
|
@zkornbluth @originalankur I managed to fix that problem (but need to test more on other cites and different land features) but here is the result. |
Removing option to add oceans (always display) Fixing some rotation issues (originalankur#181) Converting as much as possible OSMNX to GDF before ploting for performance optimizing --show-north argument by using argparse.BooleanOptionalAction
|
Thanks @PasikVN will be extensively testing today |




This change request provides three additional arguments to
create_map_poster.py:--offset-orientation/-Oarguments to provide a rotation from north (positive is towards the east) in decimal degrees.--show-north/--hide-northoptions which are complementary. When orientation is not changed (the default is zero), the default for this option is--hide-north, but still you can use--show-northto force the appearance of the orientation badge. Conversely, if there is a non-zero argument to--offset-orientation/-O, the default is for--show-north, but can be hidden with--hide-north.compass.svgfile, based on a wikimedia commons file. The comments acknowledge the origin as per its CC-BY-SA license.Please note that, in order not to introduce new dependencies, the SVG file is imported as a matplotlib Poligon, and uses the existing textures. More details on
ROTATION.md.