From 6eecdbf4ee9e8280a653c56925a431c2e2675d94 Mon Sep 17 00:00:00 2001 From: Michael Hall Date: Fri, 27 Apr 2018 23:20:18 -0400 Subject: [PATCH] Since Google Maps embeded API doesn't let us center by coordinates and highlight the place at the same time, I've changed it to lookup the place by name and full address, rather than just name and city, to avoid it showing the wrong location. Fixes #69 --- get_together/templates/get_together/places/show_place.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/get_together/templates/get_together/places/show_place.html b/get_together/templates/get_together/places/show_place.html index daac306..0293875 100644 --- a/get_together/templates/get_together/places/show_place.html +++ b/get_together/templates/get_together/places/show_place.html @@ -41,8 +41,8 @@ width="720" height="400" frameborder="0" style="border:0" - src="https://www.google.com/maps/embed/v1/place?key={{ settings.GOOGLE_MAPS_API_KEY }} - &q={{place.name}},{{place.city}}" allowfullscreen> + src="https://www.google.com/maps/embed/v1/place?key={{ settings.GOOGLE_MAPS_API_KEY }}&q={{place.name}}%2C%20{{place.address|urlencode}}&zoom=17" + allowfullscreen>