You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 20, 2019. It is now read-only.
I have a map with a filter that shows or hide depending of category of the marker you choose.
so, depending of the choose i have to update the $scope.markers variable.
I have a function on click on marker and the model the first time the map is loaded is the correct but when I apply a filter and put the new markers on scope variable the model is different.
In the leafletEvent object when click i get the good lat,lng, the label and icon correctly, but not the model.
I've tested with object {} instead of array [], I've done controls.markers.clean(), etc without success.
Can anyone tell me what I have to do for do this change of markers correctly?
Thanks.
The text was updated successfully, but these errors were encountered:
I may have found the issue. When markers detects a change it checks watchTrap and aborts if this is true. watchTrap comes from modelChangeInDirective and acts as a throttling mechanism. The issue is if you abort you will miss your change until some other future change happens beyond the throttle timeout.
As a workaround I decorated leafletHelpers.modelChangeInDirective to do no throttling as i would much rather eat a possible performance hit then have wrong data.
Hi,
I have a map with a filter that shows or hide depending of category of the marker you choose.
so, depending of the choose i have to update the $scope.markers variable.
I have a function on click on marker and the model the first time the map is loaded is the correct but when I apply a filter and put the new markers on scope variable the model is different.
In the leafletEvent object when click i get the good lat,lng, the label and icon correctly, but not the model.
I've tested with object {} instead of array [], I've done controls.markers.clean(), etc without success.
Can anyone tell me what I have to do for do this change of markers correctly?
Thanks.
The text was updated successfully, but these errors were encountered: