# Ionic3 google map not showing in navstack

**URL:** <https://forum.ionicframework.com/t/ionic3-google-map-not-showing-in-navstack/143941>\
**Category:** ionic-v3\
**Created:** [October 8, 2018, 9:42am UTC](https://forum.ionicframework.com/t/ionic3-google-map-not-showing-in-navstack/143941 "2018-10-08T09:42:28Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![mehranReptal](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mehranreptal/32/122071_2.png) [@mehranReptal](https://forum.ionicframework.com/u/mehranReptal)\
**Post date:** [October 15, 2018, 9:40am UTC](https://forum.ionicframework.com/t/ionic3-google-map-not-showing-in-navstack/143941/8 "2018-10-15T09:40:53Z")

</div>

finally i was able to solve this problem using this thread:

> [@Google Maps not displayed on Navigation](https://forum.ionicframework.com/t/google-maps-not-displayed-on-navigation/58960/5):
>
> I’m a bit confused. I am using google.maps.Map, but the above article talks about plugin.google.maps.Map. Which should I use? If I use plugin.google.maps.Map, I get: [ts] Cannot find name 'plugin'. any If I use google.maps.Map, then backgroundColor() is undefined. let mapOptions = { center: bound.getCenter(), maxZoom: 15, backgroundColor: 'transparent', mapTypeId: google.maps.MapTypeId.ROADMAP }; var htmlElement: HTMLElement = document.getElementById("map"); this.map = new googl…

for anyone having same problem:

the point was i had to hide all navstacks before my google map ,so it can be shown with no problem.

```auto
ionViewDidLeave() {
    console.log('did leave');
    document.getElementById('rootpageorsomething').hidden = true;
  }
  ionViewWillEnter() {
    console.log('will enter');
    document.getElementById('rootpageorsomething').hidden = false;
  }

```

thanks.

---

_[View the full topic](https://forum.ionicframework.com/t/ionic3-google-map-not-showing-in-navstack/143941)._
