This commit is contained in:
2020-12-25 13:29:34 +01:00
parent e242dc4add
commit 5df7cc5ec6
5 changed files with 38 additions and 4 deletions

View File

@@ -88,3 +88,14 @@ def FlatView(request, slug):
return render(request, 'flat/' + slug + '-de' + '.html')
else:
return render(request, 'flat/' + slug + '.html')
class OSMMapView(IsAuthenticatedMixin, View):
def get(self, request):
place_list = Place.objects.all()
context = {
'mapping_config': {
'all_points': place_list,
'map_center': Place.average_latlon(place_list)
}
}
return render(request, 'osm_map_full.html', context)