Google maps in Ion-view?

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 .

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.

Anyone have ideas? Thank you in advance

where is you example that doesnt work?

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 works nicely once you get it to work (which is actually really simple, I just forgot to include something)

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.

2 Likes