Google Maps Fullscreencontrol shows blank image on Android and Chrome - Ionic

I have integrated google maps in my ionic 2 project and it worked fine until I received the requirement to add full screen. I added a line tested on google chrome and when I clicked full screen I got a blank screen. Compiled on Android, same problem. However, it works great on Mozilla and IE. This is my code.

   this.platform.ready().then(() => {

   let latLng = new google.maps.LatLng(-31.563910, 147.154312);

   let mapOptions = 
     {
       center: latLng,
       zoom: 5,
       mapTypeId: google.maps.MapTypeId.ROADMAP,
       fullscreenControl: true
     }

   this.map = google.maps.Map(this.mapElement.nativeElement, mapOptions);

   this.mapCluster.addCluster(this.customersView.paginatedCustomers, this.map);

});
+4
source share

Source: https://habr.com/ru/post/1680610/


All Articles