#46 Large Map
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user