Spaces:
Running
on
Zero
Running
on
Zero
Suchinthana
commited on
Commit
·
625985a
1
Parent(s):
9a9b5e3
Update app.py
Browse files
app.py
CHANGED
@@ -123,10 +123,10 @@ def generate_static_map(geojson_data, invisible=False):
|
|
123 |
coords = feature["geometry"]["coordinates"]
|
124 |
|
125 |
if geom_type == "Point":
|
126 |
-
m.add_marker(CircleMarker((coords[0], coords[1]), '#1C00ff00' if invisible == True else 'blue',
|
127 |
elif geom_type in ["MultiPoint", "LineString"]:
|
128 |
for coord in coords:
|
129 |
-
m.add_marker(CircleMarker((coord[0], coord[1]), '#1C00ff00' if invisible == True else 'blue',
|
130 |
elif geom_type in ["Polygon", "MultiPolygon"]:
|
131 |
for polygon in coords:
|
132 |
m.add_polygon(Polygon([(c[0], c[1]) for c in polygon], '#1C00ff00' if invisible == True else 'blue', 3))
|
|
|
123 |
coords = feature["geometry"]["coordinates"]
|
124 |
|
125 |
if geom_type == "Point":
|
126 |
+
m.add_marker(CircleMarker((coords[0], coords[1]), '#1C00ff00' if invisible == True else 'blue', 1000))
|
127 |
elif geom_type in ["MultiPoint", "LineString"]:
|
128 |
for coord in coords:
|
129 |
+
m.add_marker(CircleMarker((coord[0], coord[1]), '#1C00ff00' if invisible == True else 'blue', 1000))
|
130 |
elif geom_type in ["Polygon", "MultiPolygon"]:
|
131 |
for polygon in coords:
|
132 |
m.add_polygon(Polygon([(c[0], c[1]) for c in polygon], '#1C00ff00' if invisible == True else 'blue', 3))
|