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

This commit is contained in:
Michael Hall 2018-04-27 23:20:18 -04:00
parent d654bbb1ca
commit 6eecdbf4ee

View file

@ -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>
</iframe>
</div>