From 0b5250feb7d1fe903b3bdd17df96422fe694826c Mon Sep 17 00:00:00 2001 From: Miupro Date: Sun, 31 Oct 2021 00:56:00 +0200 Subject: [PATCH] map update --- apis/interactive_maps.py | 6 +-- ...onmap_customer=235_destinationZermatt.html | 48 +++++++++---------- static/travelhistorymap_customer235.html | 44 ++++++++--------- 3 files changed, 49 insertions(+), 49 deletions(-) diff --git a/apis/interactive_maps.py b/apis/interactive_maps.py index 3fd51ce..9f6a760 100644 --- a/apis/interactive_maps.py +++ b/apis/interactive_maps.py @@ -23,9 +23,9 @@ class SwissMap: def destination_map(self, customer_id, own_location, destination): local_m = self.m folium.Marker( - location=destination[1], # coordinates for the marker - popup=destination[0], # pop-up label for the marker - icon=folium.Icon(color="green") + location=own_location[1], # coordinates for the marker + popup=own_location[0], # pop-up label for the marker + icon=folium.Icon(color="blue") ).add_to(local_m) folium.Marker( location=destination[1], # coordinates for the marker diff --git a/static/destinationmap_customer=235_destinationZermatt.html b/static/destinationmap_customer=235_destinationZermatt.html index 78e33d8..1dc43a6 100644 --- a/static/destinationmap_customer=235_destinationZermatt.html +++ b/static/destinationmap_customer=235_destinationZermatt.html @@ -23,7 +23,7 @@