Spaces:
Running
on
Zero
Running
on
Zero
Suchinthana
commited on
Commit
·
8f22ee9
1
Parent(s):
f219d44
Removing zoom
Browse files
app.py
CHANGED
@@ -117,7 +117,7 @@ def generate_static_map(geojson_data, bounds=None):
|
|
117 |
center_lat = (bounds[0][0] + bounds[1][0]) / 2
|
118 |
center_lng = (bounds[0][1] + bounds[1][1]) / 2
|
119 |
zoom = 10 # Adjust zoom level as needed
|
120 |
-
m.set_center(center_lat, center_lng
|
121 |
|
122 |
# Check if there are no features to avoid an empty map
|
123 |
if not geojson_data["features"]:
|
@@ -138,7 +138,7 @@ def generate_static_map(geojson_data, bounds=None):
|
|
138 |
for polygon in coords:
|
139 |
m.add_polygon(Polygon([(c[0], c[1]) for c in polygon], 'blue', 3))
|
140 |
|
141 |
-
return m.render(zoom=10
|
142 |
|
143 |
|
144 |
# ControlNet pipeline setup
|
@@ -230,7 +230,7 @@ def update_query(selected_query):
|
|
230 |
return selected_query
|
231 |
|
232 |
query_options = [
|
233 |
-
"
|
234 |
"Due to considerable rainfall in the up- and mid- stream areas of Kala Oya, the Rajanganaya reservoir is now spilling at a rate of 17,000 cubic feet per second, the department said."
|
235 |
]
|
236 |
|
|
|
117 |
center_lat = (bounds[0][0] + bounds[1][0]) / 2
|
118 |
center_lng = (bounds[0][1] + bounds[1][1]) / 2
|
119 |
zoom = 10 # Adjust zoom level as needed
|
120 |
+
m.set_center(center_lat, center_lng) #zoom
|
121 |
|
122 |
# Check if there are no features to avoid an empty map
|
123 |
if not geojson_data["features"]:
|
|
|
138 |
for polygon in coords:
|
139 |
m.add_polygon(Polygon([(c[0], c[1]) for c in polygon], 'blue', 3))
|
140 |
|
141 |
+
return m.render() #zoom=10
|
142 |
|
143 |
|
144 |
# ControlNet pipeline setup
|
|
|
230 |
return selected_query
|
231 |
|
232 |
query_options = [
|
233 |
+
"Area covering south asian subcontinent",
|
234 |
"Due to considerable rainfall in the up- and mid- stream areas of Kala Oya, the Rajanganaya reservoir is now spilling at a rate of 17,000 cubic feet per second, the department said."
|
235 |
]
|
236 |
|