angular-ui / ui-leaflet

AngularJS directive to embed an interact with maps managed by Leaflet library
http://angular-ui.github.io/ui-leaflet
Other
314 stars 134 forks source link

Is there anyway to still update the markers that are outside of the viewport? #214

Open joshting opened 8 years ago

joshting commented 8 years ago

I encountered this problem with moving markers (gps tracked). I wish to display some details of certain markers such as their coordinates and other information pushed from the server. The information is bound to the marker model. So, the problem occurs when the marker is out of view. Even the server still push the new data and the javascript attempts to update the model but its not updated.

I understand that leaflet did this for performance but I need to selectively choose to see live updates of certain markers even though it is out of view. Is there a way to conditionally override the default behavior under these circumstances?

elesdoar commented 8 years ago

Please, could you replicate in http://jsfiddle.net?