Spaces:
Runtime error
Runtime error
Suchinthana
commited on
Commit
Β·
b55e5ec
1
Parent(s):
c8f6cf0
Update app.py
Browse files
app.py
CHANGED
|
@@ -206,6 +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 |
m.add_polygon(Polygon([(c[0], c[1]) for c in polygon], '#1C00ff00' if invisible else '#42445A85', 3))
|
| 210 |
|
| 211 |
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 |
+
print(polygon)
|
| 210 |
+
print([(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()
|