angular-ui / angular-google-maps

AngularJS directives for the Google Maps Javascript API
http://angular-ui.github.io/angular-google-maps
2.52k stars 1.07k forks source link

When marker labels are used, quick scrolling/zooming outside viewable map area freezes/locks-up map #1270

Open mmukhin opened 9 years ago

mmukhin commented 9 years ago

This issue only occurs when I turn on marker labels, plain makers without a label do not cause this bug

Device: phonegap webview on iOS (iphone 5s)

When I render makers with a custom label or custom label css and drag/zoom the map around pretty fast (when dragging slowly, the bug does not show up), and the map is moved so the makers with labels disappear from the map, the map basically freezes at a specific location ("Location1"), and when I try to move/zoom the map again it snaps back to "Location1". Redrawing, resetting, changing $scope.map updates the marker positions but the actual map image stays the same frozen on "Location1". The "resize" event doesn't work either.

An error I see is: "Error NotFoundError: DOM Exception 8: An attempt was made to reference a Node in a context where it does not exist"

Temporary solution question: I would like to at least destroy the current map completely & redraw it with the same $scope.map - how could I do this without a refresh?

Thanks!

nmccready commented 9 years ago

Sounds like the Marker Label code needs some digging into. Is there any way to reproduce his in a sim?

grawk commented 8 years ago

In trying to use this within an angular-material context, I'm finding that the drawing of markers freezes the UI as well. Doesn't matter whether there are labels on the markers or not.

nmccready commented 8 years ago

1714 please check master

grawk commented 8 years ago

Thanks @nmccready. Has this fix been published to npm yet?

nmccready commented 8 years ago

No it would be nice to get some other fixes in. It is sucks to keep bumping milestones.

nmccready commented 8 years ago

Did it help? It is quite easy to add a master branch / sha to npm as a dependency.

"angular-google-maps": "git://github.com:angular-ui/angular-google-maps.git#someshanum or branch"

grawk commented 8 years ago

Oh yeah. Understood regarding releases. This is quite a popular module and you've got a lot to balance.

I referenced the master branch directly and it does indeed resolve the issue. Thanks!