From 326e34a4b8325f880e6e10a9a8afa5df2c6fff50 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Sun, 11 Oct 2020 06:55:12 +0200 Subject: [PATCH] Fixed i18n to invalidate decimal geocoords. --- .../lostplaces/templates/partials/osm_map.html | 4 ++-- .../lostplaces/templates/place/place_detail.html | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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%}