Fixed #106 and swapped LatLng for LatLngLiteral in map options
parent
c394f55a01
commit
33fcaa5779
|
@ -60,15 +60,12 @@ loadGoogleMapsAPI({ key:mapKey })
|
||||||
|
|
||||||
// Create map and marker elements
|
// Create map and marker elements
|
||||||
map = new googlemaps.Map( mapElem, {
|
map = new googlemaps.Map( mapElem, {
|
||||||
center: new googlemaps.LatLng(
|
center: {
|
||||||
mapuser.last.lat,
|
lat: mapuser.last.lat,
|
||||||
mapuser.last.lon
|
lng: mapuser.last.lon
|
||||||
),
|
},
|
||||||
// center: {
|
|
||||||
// lat: mapuser.last.lat,
|
|
||||||
// lng: mapuser.last.lon
|
|
||||||
// },
|
|
||||||
panControl: false,
|
panControl: false,
|
||||||
|
scrollwheel: true,
|
||||||
scaleControl: (mapuser.settings.showScale)?true:false,
|
scaleControl: (mapuser.settings.showScale)?true:false,
|
||||||
draggable: false,
|
draggable: false,
|
||||||
zoom: mapuser.settings.defaultZoom,
|
zoom: mapuser.settings.defaultZoom,
|
||||||
|
|
Loading…
Reference in New Issue