Problem with Google Maps not showing

Hey guys,

I have added the Ionic Google Maps code integration into my project but it doesnt show me a map where it should and I cant figure out why.

CSS is set and included, the controller is added to the ion content.

Here is my CodePen to my code:

Can you provide me some advices how to solve that ?

Thanks in advance for your help.

Greetings, Jule

Edit: It seems like when I copy the controller into my controllers.js the “Erkunden !” Button is not working anymore. So the controller is only “working” in the app.js, not the controllers.js. My controllers.js looks like that without the controller:

angular.module(‘mapApp.controllers’, [])

Can someone explain me why the button is not working when I change the controller location ?

Solution Edit: Stackoverflow brought me the answer, I just had to replace

google.maps.event.addDomListener(window, ‘load’, initialize);