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);
});
source
share