Corrected map_center_coords variables.

This commit is contained in:
Marcus Scholz 2020-08-20 22:08:35 +02:00
parent 55fe79b82c
commit a660763ea4
2 changed files with 3 additions and 3 deletions

View File

@ -5,9 +5,9 @@
{% block maincontent %}
{% include 'partials/osm_map.html' %}
<div class="LP-PlaceGrid">
<h1 class="LP-Headline LP-Headline">Explore the latest locations</h1>
{% include 'partials/osm_map.html' %}
<ul class="LP-PlaceGrid__Grid">
{% for place in place_list %}
<li class="LP-PlaceGrid__Item">

View File

@ -3,7 +3,7 @@
<div id="map" class="map"></div>
<div id="info" class="map-popup"></div>
<script src="{% static 'ol.js' %}"></script>
<script type="text/javascript">
var map = new ol.Map({
target: 'map',
@ -13,7 +13,7 @@
}),
],
view: new ol.View({
center: ol.proj.fromLonLat([{{average_latlon|last}}, {{average_latlon|first}}]),
center: ol.proj.fromLonLat([{{place_map_center|last}}, {{place_map_center|first}}]),
zoom: 6
})
});