Fixed #106 and swapped LatLng for LatLngLiteral in map options

master
Keith Irwin 2017-09-26 03:08:26 +00:00
parent c394f55a01
commit 33fcaa5779
No known key found for this signature in database
GPG Key ID: 378933C743E2BBC0
1 changed files with 5 additions and 8 deletions

View File

@ -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,