Hi,
In the event where there isn’t any update of the vehicle location (after a certain period of time), the trail remains in the map.
The vehicles’ location is pulled from SQL database. May I know how can I remove the inactive vehicle/trail from the map ?
Bai
Removing Inactive breadcrumb trail
Hi Bai,
Thanks, for your post, one idea for your consideration is to use MsSql2008FeatureLayer to get the features from the database then put the features into a InMemoryFeatureLayer, then use InMemoryFeatureLayer to display the features, this way if there isn’t any updated, you could call InMemoryFeatureLayer.Clear() to remove the inactive vehicle/trail from the map.
Hope it helps
Summer
Hi Summer,
Thank you for the suggestions,
I got it working.
Regards,
Bai
Hi Bai,
You’re always welcome.if you have any more question , please feel free to let us know.
Best Regards
Summer