You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm trying to use your package but after configuring the component module and adding the api key etc it just don't get displayed on the screen, the server opens but it just isn't shown, for further information I'm attaching my code just in case you need it.
The component that its using the code is Location:
location.module.ts
import { NgModule, CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from '@angular/core';
import { CommonModule } from '@angular/common';
import { GOOGLE_MAPS_API_CONFIG } from '@ng-maps/google';
@NgModule({
declarations: [],
imports: [
CommonModule
],
schemas: [ CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA],
providers: [
{
provide: GOOGLE_MAPS_API_CONFIG,
useValue: {
apiKey: '[ HERE GOES MY API KEY]'
}
}
]
})
export class LocationModule { }
I think you are missing the import of NgMapsCoreModule and NgMapsGoogleModule.
And you shouldn't use schemas: [ CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA], as this hides errors of not imported modules.
I have imported those libraries inside the location module but the component is still not showing anything to me, please can you give me an example of how to create a simple demo about ng maps, and please remain the issue open, I couldn't make it work properly.
Hi, I'm trying to use your package but after configuring the component module and adding the api key etc it just don't get displayed on the screen, the server opens but it just isn't shown, for further information I'm attaching my code just in case you need it.
The component that its using the code is Location:
location.module.ts
location.component.html
Thanks in advice.
The text was updated successfully, but these errors were encountered: