feat: Show search radius only if a search center is given and correct zoom level if no location is given

This commit is contained in:
2025-01-09 23:27:33 +01:00
parent c46a943c7f
commit 2dc038dfef
2 changed files with 12 additions and 9 deletions

View File

@@ -204,6 +204,7 @@ def search(request):
"searched": searched,
"adoption_notices_map": AdoptionNotice.get_active_ANs(),
"map_center": search.position,
"search_center": search.position,
"map_pins": [search],
"location": search.location,
"search_radius": search.max_distance,