Spaces:
Running
on
Zero
Running
on
Zero
Suchinthana
commited on
Commit
·
bde9aab
1
Parent(s):
ed7f2a7
Revert "adding bounds to empty map"
Browse filesThis reverts commit ed7f2a78901adf6d79051145e0d53e576413948a.
app.py
CHANGED
@@ -209,7 +209,7 @@ def handle_query(query):
|
|
209 |
"type": "FeatureCollection",
|
210 |
"features": [] # Empty map contains no features
|
211 |
}
|
212 |
-
empty_map_image = generate_static_map(empty_geojson
|
213 |
|
214 |
# Create the mask
|
215 |
difference = np.abs(np.array(map_image.convert("RGB")) - np.array(empty_map_image.convert("RGB")))
|
|
|
209 |
"type": "FeatureCollection",
|
210 |
"features": [] # Empty map contains no features
|
211 |
}
|
212 |
+
empty_map_image = generate_static_map(empty_geojson) # Empty map with the same bounds
|
213 |
|
214 |
# Create the mask
|
215 |
difference = np.abs(np.array(map_image.convert("RGB")) - np.array(empty_map_image.convert("RGB")))
|