Skip to content
This repository was archived by the owner on Jun 28, 2022. It is now read-only.

Update helper.js #328

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions js/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down