mirror of
https://github.com/marceloprates/prettymaps.git
synced 2025-08-31 18:12:56 +02:00
Compare commits
6 Commits
7914d6a840
...
508402f8ca
Author | SHA1 | Date | |
---|---|---|---|
|
508402f8ca | ||
|
4c530c6491 | ||
|
c090ade075 | ||
|
7343fc502d | ||
|
68323c567e | ||
|
f5fb002e03 |
@@ -561,7 +561,7 @@ def draw_text(params: Dict[str, dict], background: BaseGeometry) -> None:
|
||||
params (Dict[str, dict]): matplotlib style parameters for drawing text. params['text'] should contain the message to be drawn.
|
||||
background (BaseGeometry): Background layer
|
||||
"""
|
||||
# Override default osm_credit dict with provided parameters
|
||||
# Override default credit dict with provided parameters
|
||||
params = override_params(
|
||||
dict(
|
||||
text="\n".join(
|
||||
@@ -864,7 +864,7 @@ def plot(
|
||||
Specify the name of each layer and the OpenStreetMap tags to fetch
|
||||
style: dict
|
||||
Drawing params for each layer (matplotlib params such as 'fc', 'ec', 'fill', etc.)
|
||||
osm_credit: dict
|
||||
credit: dict
|
||||
OSM Caption parameters
|
||||
figsize: Tuple
|
||||
(Optional) Width and Height (in inches) for the Matplotlib figure. Defaults to (10, 10)
|
||||
|
@@ -157,6 +157,7 @@ def get_gdf(
|
||||
if layer in ["streets", "railway", "waterway"]:
|
||||
graph = ox.graph_from_polygon(
|
||||
bbox,
|
||||
retain_all=True,
|
||||
custom_filter=custom_filter,
|
||||
truncate_by_edge=True,
|
||||
)
|
||||
|
2
requirements.txt
Executable file → Normal file
2
requirements.txt
Executable file → Normal file
@@ -1,5 +1,5 @@
|
||||
numpy>=1.20,<1.25
|
||||
matplotlib>=3.9.0
|
||||
shapely>=2.0.0
|
||||
osmnx>=1.9.3
|
||||
osmnx>=1.9.3,<2.0
|
||||
ipykernel>=6.29.5
|
2
setup.py
2
setup.py
@@ -7,7 +7,7 @@ presets_dir = os.path.abspath(os.path.join(os.path.pardir, "presets"))
|
||||
|
||||
setup(
|
||||
name="prettymaps",
|
||||
version="v1.3.0",
|
||||
version="v1.3.1",
|
||||
description="A simple python library to draw pretty maps from OpenStreetMap data",
|
||||
long_description=parent_dir.joinpath("README.md").read_text(),
|
||||
long_description_content_type="text/markdown",
|
||||
|
Reference in New Issue
Block a user