I’m trying to add a map inside a view, using the google-map directive. First time it’s fine, it loads without a problem. But if I navigate around and come back to the view containing the map, it gets resized like in this plunker http://plnkr.co/edit/9uKA2e56iTt7IllxRJvs?p=preview
What I want to know is if I you can think about something that could be related to the side menus or ionic specific.
I will try to create a plunker based on this to see if it’s angular-google-maps specific or not and I wil update this post.
It looks like I’m doing something wrong, for me the viewState.viewEnter event is not triggering. I have my <view> elements inside divs because I use an ng-switch to load different “partials” depending on what I have to display. Something like this:
And inside each partial I have the content wrapped in <view>.
I something wrong with this approach?
Edit:
Found the problem, I’m using ui-view and not nav-view because I don’t want the back button to appear in the navigation bar. Tried using nav-view and set the attribute hide-back-button="true" to the <view> but it doesn’t work.
Edit 2:
Did a bower update and guess what? Now it’s working even without your hack. Maybe it’s something in the latest angular that fixed it, I tried angular 1.2.9 and it still worked.