@ng-maps/google is a simple, modular and tree-shakable library for displaying google-maps inside an angular application
npm install @ng-maps/google
yarn add @ng-maps/google
Then you will need to install typings for google maps as a dev dependency
npm install -D @types/googlemaps
yarn add -D @types/googlemaps
Add NgMapsGoogleModule
to your AppModule.
Provide your API key with the token provider
{
provide: GOOGLE_MAPS_API_CONFIG,
useValue: {
apiKey: 'YOUR_API_KEY'
}
}