angular-ui / ui-leaflet

AngularJS directive to embed an interact with maps managed by Leaflet library
http://angular-ui.github.io/ui-leaflet
Other
315 stars 137 forks source link

Map not refreshing after state change #69

Open nmccready opened 8 years ago

nmccready commented 8 years ago

From @itree on June 24, 2015 1:57

Ok, I have being stuck on this for over 2 weeks now. I am using the directive in Ionic. However, at this point I am pretty certain that the problem is with the directive and how it refreshes it self. I have a screen shot of the bug, but not sure how to fix it. This happens when I create 2 states.

  1. with the angular-leaflet-directive
  2. Just any state with a button that calls a modal.

Go to state 1 the map is fine.
Now go to state 2 and click the button and open the modal. Close the window and in the menu go to the state 1 (the map).

Now the map looks all screwed up. See screenshot attached. fr_3793_size880

(If I turn phone the orientation landscape <-> portrait. It fixes the problem. But that will not be an option in production (as we will need to lock the screen orientation). How can I get the map to just refresh and behave. Any pointer appreciated.

I have even created a repository of the bug that you can check out.

https://github.com/itree/leaflet-refresh-issues

Copied from original issue: tombatossals/angular-leaflet-directive#818

MrHakala commented 8 years ago

+1