angular-ui / ui-map

Google Maps
http://angular-ui.github.io/ui-map
MIT License
288 stars 93 forks source link

Clicks on map pins stops working after a bit #24

Open getsetbro opened 10 years ago

getsetbro commented 10 years ago

Here is a page where clicks on map pins works at first but before long the clicks stop working. Meanwhile, clicks in the list on the left continue to select items on the map. http://run.plnkr.co/plunks/NFEyH8YDMigAr97vnFDp/ My sample uses angular-1.2.0-rc1 but I get the bug with any version of angular.

n8m commented 10 years ago

I have the same problem. The UI-event "map-click" stops working after zooming the map.

vysokyj commented 10 years ago

I have the same problem.

vysokyj commented 10 years ago

Problem appears when markers are reloaded. Problem solved changing $scope.markers = $scope.createMarkers(); to if ($scope.markers === undefined) $scope.markers = $scope.createMarkers(); in onMapIdle method. But I am still unable to reload markers after time period...

n8m commented 10 years ago

In my case your solution not solve the problem. Click event fires on few markers only..