Spaces:
Runtime error
Runtime error
Suchinthana
commited on
Commit
Β·
24b7949
1
Parent(s):
d3f3276
making invisible visible
Browse files
app.py
CHANGED
|
@@ -135,8 +135,8 @@ def generate_static_map(geojson_data, bounds=None):
|
|
| 135 |
# Add a small invisible marker to prevent rendering error
|
| 136 |
#log marker
|
| 137 |
logging.info(f"Adding invisible marker to {bounds[0], bounds[1]}")
|
| 138 |
-
m.add_marker(CircleMarker(tuple(bounds[0]), '
|
| 139 |
-
m.add_marker(CircleMarker(tuple(bounds[1]), '
|
| 140 |
return m.render()
|
| 141 |
|
| 142 |
# Process each feature in the GeoJSON
|
|
|
|
| 135 |
# Add a small invisible marker to prevent rendering error
|
| 136 |
#log marker
|
| 137 |
logging.info(f"Adding invisible marker to {bounds[0], bounds[1]}")
|
| 138 |
+
m.add_marker(CircleMarker(tuple(bounds[0]), 'blue', 10)) # White marker with size 0 #FFFFFF
|
| 139 |
+
m.add_marker(CircleMarker(tuple(bounds[1]), 'blue', 10)) # White marker with size 0
|
| 140 |
return m.render()
|
| 141 |
|
| 142 |
# Process each feature in the GeoJSON
|