angular-leaflet-directive
angular-leaflet-directive copied to clipboard
Update marker array messes up marker event
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.