Spaces:
Running
on
Zero
Running
on
Zero
Suchinthana
commited on
Commit
·
d3f3276
1
Parent(s):
f68693b
doubling invisible markers
Browse files
app.py
CHANGED
@@ -134,8 +134,9 @@ def generate_static_map(geojson_data, bounds=None):
|
|
134 |
if not geojson_data["features"]:
|
135 |
# Add a small invisible marker to prevent rendering error
|
136 |
#log marker
|
137 |
-
logging.info(f"Adding invisible marker to {
|
138 |
-
m.add_marker(CircleMarker((
|
|
|
139 |
return m.render()
|
140 |
|
141 |
# Process each feature in the GeoJSON
|
|
|
134 |
if not geojson_data["features"]:
|
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]), '#FFFFFF', 0)) # White marker with size 0
|
139 |
+
m.add_marker(CircleMarker(tuple(bounds[1]), '#FFFFFF', 0)) # White marker with size 0
|
140 |
return m.render()
|
141 |
|
142 |
# Process each feature in the GeoJSON
|