Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
create(element: ElementRef) {
const mapOptions: GoogleMapOptions = {
camera: {
target: {
lat: 43.0741904,
lng: -89.3809802
},
zoom: 18,
tilt: 10
},
mapType: GoogleMapsMapTypeId.NORMAL,
controls: {
compass: true,
myLocationButton: true,
indoorPicker: true,
zoom: true
},
gestures: {
scroll: true,
tilt: true,
rotate: true,
zoom: true
},
preferences: null
};
this.map = this.googleMaps.create(element.nativeElement, mapOptions);