diff --git a/django_lostplaces/lostplaces/templates/partials/osm_map.html b/django_lostplaces/lostplaces/templates/partials/osm_map.html index 9ed5d40..ff1a388 100644 --- a/django_lostplaces/lostplaces/templates/partials/osm_map.html +++ b/django_lostplaces/lostplaces/templates/partials/osm_map.html @@ -11,7 +11,7 @@ }), ], view: new ol.View({ - center: ol.proj.fromLonLat([{{config.map_center.longitude}}, {{config.map_center.latitude}}]), + center: ol.proj.fromLonLat([{{config.map_center.longitude|safe}}, {{config.map_center.latitude|safe}}]), zoom: 9 }) }); @@ -21,7 +21,7 @@ {% for point in config.all_points %} new ol.Feature({ geometry: new ol.geom.Point( - ol.proj.fromLonLat([{{point.longitude}},{{point.latitude}}]) + ol.proj.fromLonLat([{{point.longitude|safe}},{{point.latitude|safe}}]) ), url: '{{point.get_absolute_url}}', name: ' {{point.name}}' diff --git a/django_lostplaces/lostplaces/templates/place/place_detail.html b/django_lostplaces/lostplaces/templates/place/place_detail.html index 8fb7eca..1852d58 100644 --- a/django_lostplaces/lostplaces/templates/place/place_detail.html +++ b/django_lostplaces/lostplaces/templates/place/place_detail.html @@ -47,9 +47,9 @@ {% include 'partials/osm_map.html' with config=mapping_config%}