mirror of
https://github.com/marceloprates/prettymaps.git
synced 2025-01-17 13:08:14 +01:00
Merge pull request #34 from mei-se/main
fix issue when querying within a polygon
This commit is contained in:
commit
348dd92e20
@ -92,7 +92,7 @@ def plot_shapes(shapes, ax, vsketch = None, palette = None, **kwargs):
|
||||
|
||||
# Parse query (by coordinates, OSMId or name)
|
||||
def parse_query(query):
|
||||
if isinstance(query, (Polygon, MultiPolygon)):
|
||||
if isinstance(query, GeoDataFrame):
|
||||
return 'polygon'
|
||||
elif isinstance(query, tuple):
|
||||
return 'coordinates'
|
||||
|
Loading…
x
Reference in New Issue
Block a user