From 33fcaa5779b130b9f80af1fe149879f936068224 Mon Sep 17 00:00:00 2001 From: Keith Irwin Date: Tue, 26 Sep 2017 03:08:26 +0000 Subject: [PATCH] Fixed #106 and swapped LatLng for LatLngLiteral in map options --- static/js/map.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/static/js/map.js b/static/js/map.js index b0cb427..99b4cc3 100644 --- a/static/js/map.js +++ b/static/js/map.js @@ -60,15 +60,12 @@ loadGoogleMapsAPI({ key:mapKey }) // Create map and marker elements map = new googlemaps.Map( mapElem, { - center: new googlemaps.LatLng( - mapuser.last.lat, - mapuser.last.lon - ), - // center: { - // lat: mapuser.last.lat, - // lng: mapuser.last.lon - // }, + center: { + lat: mapuser.last.lat, + lng: mapuser.last.lon + }, panControl: false, + scrollwheel: true, scaleControl: (mapuser.settings.showScale)?true:false, draggable: false, zoom: mapuser.settings.defaultZoom,