Skip to content

Instantly share code, notes, and snippets.

@c-manna
Last active Mar 28, 2021
Embed
What would you like to do?
Angular google maps (agm) complete guide - appModule
import { NgModule } from "@angular/core";
import { BrowserModule } from "@angular/platform-browser";
import { AppComponent } from "./app.component";
import { HelloComponent } from "./hello.component";
import { AgmCoreModule } from "@agm/core";
import { AgmJsMarkerClustererModule } from '@agm/js-marker-clusterer';
import { AgmSnazzyInfoWindowModule } from '@agm/snazzy-info-window';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
@NgModule({
imports: [
BrowserModule,
FormsModule,
ReactiveFormsModule,
AgmJsMarkerClustererModule,
AgmSnazzyInfoWindowModule,
AgmCoreModule.forRoot({
apiKey: 'AIzaSyCI97YoHaUedCufy1KTPMjRdtt-TZejU8s',
language: "en",
libraries: ['places','geometry']
})
],
declarations: [AppComponent, HelloComponent],
bootstrap: [AppComponent]
})
export class AppModule {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment