angular-leaflet-directive icon indicating copy to clipboard operation
angular-leaflet-directive copied to clipboard

Update marker array messes up marker event

Open mhiemstrapodiumtv opened this issue 9 years ago • 0 comments

I am using v0.10.0 and I store my markers in an array and each marker has a property id which is the database id.

I have registered the marker onclick using this code: $scope.$on('leafletDirectiveMarker.map.click', function (event, data) When I click on a marker I get the right data (The correct marker id)

When I add a marker and then reload the data from json (I reload the markers array) the leafletDirectiveMarker.map.click returns the wrong data. The id is completely wrong!

I might have to do with the issue #1041.

mhiemstrapodiumtv avatar Sep 15 '16 09:09 mhiemstrapodiumtv