Spaces:
Runtime error
Runtime error
Suchinthana
commited on
Commit
Β·
7a1d390
1
Parent(s):
fe42fe7
color and radius update
Browse files
app.py
CHANGED
|
@@ -162,13 +162,13 @@ def generate_static_map(geojson_data, invisible=False):
|
|
| 162 |
coords = feature["geometry"]["coordinates"]
|
| 163 |
|
| 164 |
if geom_type == "Point":
|
| 165 |
-
m.add_marker(CircleMarker((coords[0][0], coords[0][1]), '#1C00ff00' if invisible else '
|
| 166 |
elif geom_type in ["MultiPoint", "LineString"]:
|
| 167 |
for coord in coords:
|
| 168 |
-
m.add_marker(CircleMarker((coord[0], coord[1]), '#1C00ff00' if invisible else '
|
| 169 |
elif geom_type in ["Polygon", "MultiPolygon"]:
|
| 170 |
for polygon in coords:
|
| 171 |
-
m.add_polygon(Polygon([(c[0], c[1]) for c in polygon], '#1C00ff00' if invisible else '
|
| 172 |
|
| 173 |
return m.render()
|
| 174 |
|
|
|
|
| 162 |
coords = feature["geometry"]["coordinates"]
|
| 163 |
|
| 164 |
if geom_type == "Point":
|
| 165 |
+
m.add_marker(CircleMarker((coords[0][0], coords[0][1]), '#1C00ff00' if invisible else '#42445A85', 100))
|
| 166 |
elif geom_type in ["MultiPoint", "LineString"]:
|
| 167 |
for coord in coords:
|
| 168 |
+
m.add_marker(CircleMarker((coord[0], coord[1]), '#1C00ff00' if invisible else '#42445A85', 100))
|
| 169 |
elif geom_type in ["Polygon", "MultiPolygon"]:
|
| 170 |
for polygon in coords:
|
| 171 |
+
m.add_polygon(Polygon([(c[0], c[1]) for c in polygon], '#1C00ff00' if invisible else '#42445A85', 3))
|
| 172 |
|
| 173 |
return m.render()
|
| 174 |
|