# Google maps in Ion-view?

**URL:** <https://forum.ionicframework.com/t/google-maps-in-ion-view/6022>\
**Category:** uncategorized\
**Created:** [June 24, 2014, 8:37am UTC](https://forum.ionicframework.com/t/google-maps-in-ion-view/6022 "2014-06-24T08:37:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrNiamh](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@MrNiamh](https://forum.ionicframework.com/u/MrNiamh)\
**Post date:** [June 24, 2014, 8:37am UTC](https://forum.ionicframework.com/t/google-maps-in-ion-view/6022/1 "2014-06-24T08:37:54Z")

</div>

Hi there, I’m attempting to put google maps inside an ion-view but it doesn’t seem to work for me. I’m looking at the current demo [http://codepen.io/ionic/pen/uzngt](http://codepen.io/ionic/pen/uzngt) .

I noticed however that someone has had the exact same problem as me before, but my issue is that I don’t quite understand how to implement the initial solution, and the demo that is provided no longer works.

> **[Google Maps in ion-view, once again](http://forum.ionicframework.com/t/google-maps-in-ion-view-once-again/5145)**
>
> Hello everybody, I know there are a couple of threads on this or a similar topic, but I can't figure out what the problem is: The ionic-starter-maps template does work fine. However, if I change the structure that the map appears on a...

Anyone have ideas? Thank you in advance

---

<div class="post-metadata">

**Author:** ![aaronksaunders](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/aaronksaunders/32/13729_2.png) [@aaronksaunders](https://forum.ionicframework.com/u/aaronksaunders)\
**Post date:** [June 24, 2014, 12:43pm UTC](https://forum.ionicframework.com/t/google-maps-in-ion-view/6022/2 "2014-06-24T12:43:10Z")

</div>

where is you example that doesnt work?

---

<div class="post-metadata">

**Author:** ![MrNiamh](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@MrNiamh](https://forum.ionicframework.com/u/MrNiamh)\
**Post date:** [June 24, 2014, 12:47pm UTC](https://forum.ionicframework.com/t/google-maps-in-ion-view/6022/3 "2014-06-24T12:47:41Z")

</div>

Sorry it’s solved now, using the sample google maps in ion-view doesn’t work. But as mhartington suggested, [https://github.com/allenhwkim/angularjs-google-maps](https://github.com/allenhwkim/angularjs-google-maps) works nicely once you get it to work (which is actually really simple, I just forgot to include something)

---

<div class="post-metadata">

**Author:** ![soz](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@soz](https://forum.ionicframework.com/u/soz)\
**Post date:** [August 21, 2014, 6:58am UTC](https://forum.ionicframework.com/t/google-maps-in-ion-view/6022/4 "2014-08-21T06:58:18Z")

</div>

Can suppose, the reason is, that line  
**google.maps.event.addDomListener(window, ‘load’, initialize)**  
of example is never called.  
I just called initialize() function in my controller instead.
