Google map not displaying in Ionic


I’m looking at the example on this page:

And I’m not able to display google map. I was wondering if I’m missing something that is not mentioned on that page?

    this.mapElement = document.getElementById('map');
    let mapOptions: GoogleMapOptions = {
      camera: {
        target: {
          lng: location.lng
        zoom: 18,
        tilt: 30

    this.googleMap = this.googleMaps.create(this.mapElement, mapOptions);

    // console.log(JSON.stringify(this.googleMap)); => {
      console.log('map is ready');      // it gets here but map doesn't show up

edit: nevermind it works now

did u change anything?