Вам необходимо установить «agm / core» и «@ agm / snazzy-info-window» и добавить их в app.module
пакет. json
"@agm/core": "1.1.0",
"geofirex": "0.1.0",
"@agm/snazzy-info-window": "1.1.0",
app.module
...dependencies
export const config = {
apiKey: 'AIzaSyBTyQHGGFTooUvfR0_PpfVx8TI8Q7K-0HA',
authDomain: 'geo-test-c92e4.firebaseapp.com',
databaseURL: 'https://geo-test-c92e4.firebaseio.com',
projectId: 'geo-test-c92e4',
storageBucket: 'geo-test-c92e4.appspot.com',
messagingSenderId: '200126650097'
};
@NgModule({
declarations: [
AppComponent,
BasicGeoqueryComponent
],
imports: [
BrowserModule,
AppRoutingModule,
AgmCoreModule.forRoot({
apiKey: 'AIzaSyBTyQHGGFTooUvfR0_PpfVx8TI8Q7K-0HA'
}),
AngularFireModule.initializeApp(config),
AngularFirestoreModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule {}
Демо: https://stackblitz.com/github/codediodeio/geofirex/tree/master/example