How can it be done - I\'ve tried combinations of
typings install [googlemaps | google.maps] [--ambient] --save
and end up with variations o
For users of Angular9+ I would STRONGLY recommend using their official component
Step 1: Installation:
npm install --save-dev @angular/google-maps
Step 2: Registration
@NgModule({
imports: [
GoogleMapsModule
]
})
export class AppModule { }
Step 3: Implementation
center = new google.maps.LatLng(-30.5595, 22.9375);
options: google.maps.MapOptions = {
mapTypeId: 'hybrid',
};
See https://medium.com/angular-in-depth/google-maps-is-now-an-angular-component-821ec61d2a0 for a more detailed guide