feat: Show position of shelter on the map

This commit is contained in:
2025-01-06 08:36:51 +01:00
parent ab837ee80e
commit e3833b4505
4 changed files with 90 additions and 44 deletions

View File

@@ -608,7 +608,8 @@ def external_site_warning(request):
def detail_view_rescue_organization(request, rescue_organization_id):
org = RescueOrganization.objects.get(pk=rescue_organization_id)
return render(request, 'fellchensammlung/details/detail-rescue-organization.html', context={"org": org})
return render(request, 'fellchensammlung/details/detail-rescue-organization.html',
context={"org": org, "map_center": org.position, "zoom_level": 6, "map_pins": [org.position]})
def export_own_profile(request):