Maps BLANK on ANDROID if go again in the map page, iOS OK


#1

I’ve integrateing the cordova-plugin-googlemaps in my APP in this way:

maps.html

<ion-content><div #map id="map"></div></ion-content>

maps.ts

ionViewDidLoad(){
 
    this.platform.ready().then(() => {
    let latLng  = new GoogleMapsLatLng(x,y);
 
  let mapOptions = {
    'backgroundColor': 'white',
    'mapType': "roadmap",
    'controls': {
      'compass': false,
      'myLocationButton': true,
      'indoorPicker': true,
      'zoom': true // Only for Android
    },
    'gestures': {
      'scroll': true,
      'tilt': true,
      'rotate': true,
      'zoom': true
    },
    'camera': {
      'latLng': latLng,
      'zoom': 8,
      'bearing': 0
    }
  };
  this.map = new GoogleMap(this.mapElement,mapOptions);
  this.map.one(GoogleMapsEvent.MAP_READY).then(() => {});
});
}

When I go from sidemenu in this page, the map loading correct, but when I try to go again in this page, in iOS that all ok, but in ANDROID I see a blank page.

Why?


#2

Having this trouble on Android as well. Did you manage to fix it?