You can try to split the map into your own page and use the selector to load it through the ngSwitch directive. This way you can work with ion hooks such as ionViewDidEnter () and ionViewWillEnter ();
in the console.
ionic generate page map
then in your HTML try using something like this.
<div [ngSwitch]="report_details"> <div *ngSwitchCase="'details'"> <page-map #map id="map"></page-map> </div> </div>
map.ts
ionicViewDidEnter(){
then you can do whatever you want in map.ts / map.html and it will connect to its own navCtrl to have much more flexibility.
source share