From 9af55d3f24b4f504ce4c4d2685a4f5a7ddc662e9 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Thu, 20 Aug 2020 23:49:16 +0200 Subject: [PATCH] Made place urls dynamic, changed zoom level. Works so far - but div is still 0px high :P. --- lostplaces/lostplaces_app/templates/partials/osm_map.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lostplaces/lostplaces_app/templates/partials/osm_map.html b/lostplaces/lostplaces_app/templates/partials/osm_map.html index d925f87..6ca6642 100644 --- a/lostplaces/lostplaces_app/templates/partials/osm_map.html +++ b/lostplaces/lostplaces_app/templates/partials/osm_map.html @@ -13,7 +13,7 @@ ], view: new ol.View({ center: ol.proj.fromLonLat([{{place_map_center|last}}, {{place_map_center|first}}]), - zoom: 6 + zoom: 9 }) }); @@ -24,7 +24,7 @@ geometry: new ol.geom.Point( ol.proj.fromLonLat([{{place.longitude}},{{place.latitude}}]) ), - url: '/{{place.pk}}', + url: '{% url 'place_detail' pk=place.pk %}', name: '{{place.name}}' }), {% endfor %}