From 98d26a4b613d01726b4e596407119326382f1369 Mon Sep 17 00:00:00 2001 From: Kevin Dungs Date: Mon, 17 Nov 2014 16:59:10 +0100 Subject: [PATCH] Add marker. --- app.py | 2 +- views/map.html | 17 ++++++++++++----- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/app.py b/app.py index e125455..7264406 100755 --- a/app.py +++ b/app.py @@ -19,7 +19,7 @@ def index(): def showMap(threewords): try: lat, lng = these.decode(threewords) - return template('map', lat=lat, lng=lng) + return template('map', lat=lat, lng=lng, threewords=threewords) except: return template('index', err="Could not find location {}".format(threewords)) diff --git a/views/map.html b/views/map.html index f1fddb0..00a5676 100644 --- a/views/map.html +++ b/views/map.html @@ -15,12 +15,19 @@