Suchinthana commited on
Commit
ed7f2a7
·
1 Parent(s): 0162762

adding bounds to empty map

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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) # 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")))
 
209
  "type": "FeatureCollection",
210
  "features": [] # Empty map contains no features
211
  }
212
+ empty_map_image = generate_static_map(empty_geojson, bounds=bounds) # 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")))