Skip to content

Instantly share code, notes, and snippets.

@c-manna
Last active March 28, 2021 06:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save c-manna/1bd93572d9927f60a659b6a4e7bfd8fa to your computer and use it in GitHub Desktop.
Save c-manna/1bd93572d9927f60a659b6a4e7bfd8fa to your computer and use it in GitHub Desktop.
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