Spaces:
Sleeping
Sleeping
Suchinthana
commited on
Commit
·
43f3bfb
1
Parent(s):
21c58a1
debug added
Browse files
app.py
CHANGED
@@ -205,9 +205,9 @@ def generate_static_map(geojson_data, invisible=False):
|
|
205 |
if geom_type == "Polygon":
|
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()
|
|
|
205 |
if geom_type == "Polygon":
|
206 |
feature["geometry"]["coordinates"] = sort_coordinates_for_simple_polygon(geojson_data)
|
207 |
coords = feature["geometry"]["coordinates"]
|
208 |
+
logger.info(f"coords: {coords}")
|
209 |
for polygon in coords:
|
210 |
logger.info(f"polygon: {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()
|