This is a library for creating beautyful map images with python.
pip install git+https://github.com/pfaion/pybeautymaps
Take a look at the examples folder for different renderings.
from pybeautymaps import Beautymap
m = Beautymap.square_centered(
center_latlon=(40.757667, -73.983715),
width=8.0
)
m.render_square_png(
filename='manhattan.png',
size=2000,
padding=50,
line_widths={
'trunk': 5,
'primary': 4,
'secondary': 3,
'tertiary': 2,
}
)
A brief list of what additional features are planned:
-
Add option to show rivers
-
Add option to use custom colors
-
Add more rendering shapes (rectangular, circular, ...)
-
Add more output formats (jpg, pdf, svg, ...)
-
Add debugging support via iPython
- Return image as iPython image
- Plot different road types in different colors
- Cache data for every road type separately