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