Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
loadMap() {
// This code is necessary for browser
Environment.setEnv({
'API_KEY_FOR_BROWSER_RELEASE': 'API-KEY',
'API_KEY_FOR_BROWSER_DEBUG': 'API-KEY'
});
let mapOptions: GoogleMapOptions = {
camera: {
target: {
lat: 13.0380523,
lng: 80.21371
},
zoom: 18,
tilt: 30
}
};
this.map = GoogleMaps.create('map', mapOptions);