From b25a8aeb23c32940d1e2774070939fa26d2b4a2d Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Sat, 9 Nov 2019 15:14:30 +0100 Subject: [PATCH] leaflet bug fix --- rowers/templates/panel_map.html | 7 ++----- rowers/templates/panel_mapview.html | 1 + rowers/templates/workflow.html | 3 +++ 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/rowers/templates/panel_map.html b/rowers/templates/panel_map.html index 77cfda5a..8e45af39 100644 --- a/rowers/templates/panel_map.html +++ b/rowers/templates/panel_map.html @@ -2,12 +2,9 @@
  • {{ mapdiv|safe }} - - + + {{ mapscript|safe }}
  • - - - diff --git a/rowers/templates/panel_mapview.html b/rowers/templates/panel_mapview.html index 87f00dc6..393b9d24 100644 --- a/rowers/templates/panel_mapview.html +++ b/rowers/templates/panel_mapview.html @@ -1,4 +1,5 @@ {% load rowerfilters %} +{% load leaflet_tags %}

    Map View diff --git a/rowers/templates/workflow.html b/rowers/templates/workflow.html index 13e93bf4..46eeea00 100644 --- a/rowers/templates/workflow.html +++ b/rowers/templates/workflow.html @@ -2,6 +2,7 @@ {% load staticfiles %} {% load rowerfilters %} {% load tz %} +{% load leaflet_tags %} {% get_current_timezone as TIME_ZONE %} @@ -13,6 +14,8 @@ {{ workout.date }} - {{ workout.distance }}m - {{ workout.duration |durationprint:"%H:%M:%S.%f" }}{% endblock %} {% block meta %} +{% leaflet_js %} +{% leaflet_css %}