Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return new Promise((resolve, reject) => {
LocationService.getMyLocation().then(
(position) => {
console.log("initDeviceMap - geolocation answered");
this.userLocation = new MapLocation( "Ma Position",
"",
String(position.latLng.lat),
String(position.latLng.lng),
"MYPOS");
//let latLng = new LatLng(position.coords.latitude, position.coords.longitude);
let latLng = position.latLng;
let mapOptions = {
center: latLng,
zoom: 15,
mapTypeId: GoogleMapsMapTypeId.ROADMAP
}
// create CameraPosition