I have installed the google maps plugin like instructed, with valid keys.
My HTML has
<div #map class="map-wrapper" id="map" style="height:100%;"></div>
And my TS is:
ngAfterViewInit() {
alert();
let element: HTMLElement = document.getElementById('map');
let map: GoogleMap = this.googleMaps.create(element);
map.one(GoogleMapsEvent.MAP_READY).then(() => alert('Map is ready!'));
}
The first alert fires, but the second alert doesn’t. The element is ok (console logged it, it shows the correct element), so I don’t know what I am missing.
I also tried on
instead of once
, with no luck.
There are no errors in console.
Anyone encountered this before?
(This is on an iOS emulator by the way)