From 03e49019bf682118fbce8d6d8633cf3a4f4b5023 Mon Sep 17 00:00:00 2001 From: Cameron Pittman Date: Thu, 18 Jun 2015 17:06:26 -0700 Subject: [PATCH] Update helper.js Updates to most recent Google Maps API --- js/helper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/helper.js b/js/helper.js index 2f72380286..ba8826e7dd 100644 --- a/js/helper.js +++ b/js/helper.js @@ -149,8 +149,8 @@ function initializeMap() { function createMapMarker(placeData) { // The next lines save location data from the search result object to local variables - var lat = placeData.geometry.location.k; // latitude from the place service - var lon = placeData.geometry.location.B; // longitude from the place service + var lat = placeData.geometry.location.lat(); // latitude from the place service + var lon = placeData.geometry.location.lng(); // longitude from the place service var name = placeData.formatted_address; // name of the place from the place service var bounds = window.mapBounds; // current boundaries of the map window