Spaces:
Running
on
Zero
Running
on
Zero
Suchinthana
commited on
Commit
·
21c58a1
1
Parent(s):
b55e5ec
Update app.py
Browse files
app.py
CHANGED
@@ -206,8 +206,8 @@ def generate_static_map(geojson_data, invisible=False):
|
|
206 |
feature["geometry"]["coordinates"] = sort_coordinates_for_simple_polygon(geojson_data)
|
207 |
coords = feature["geometry"]["coordinates"]
|
208 |
for polygon in coords:
|
209 |
-
|
210 |
-
|
211 |
m.add_polygon(Polygon([(c[0], c[1]) for c in polygon], '#1C00ff00' if invisible else '#42445A85', 3))
|
212 |
|
213 |
return m.render()
|
|
|
206 |
feature["geometry"]["coordinates"] = sort_coordinates_for_simple_polygon(geojson_data)
|
207 |
coords = feature["geometry"]["coordinates"]
|
208 |
for polygon in coords:
|
209 |
+
logger.info(f"polygon: {polygon}")
|
210 |
+
logger.info([(c[0], c[1]) for c in polygon])
|
211 |
m.add_polygon(Polygon([(c[0], c[1]) for c in polygon], '#1C00ff00' if invisible else '#42445A85', 3))
|
212 |
|
213 |
return m.render()
|