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
I have an asset whose position is coming from a database that I am plotting on a map. Every few seconds I want to refresh its position to display its current position. While doing that the complete map gets refreshed showing a small blip for a split second. Is there a way I can avoid that?
Here is a reproducible example below where I am using Sys.sleep(5) to show an update from the database. Ideally, I would expect the point to be updated on the same map itself instead of refreshing the complete map. It becomes really annoying when the map gets updated 10 times in a minute.
I have an asset whose position is coming from a database that I am plotting on a map. Every few seconds I want to refresh its position to display its current position. While doing that the complete map gets refreshed showing a small blip for a split second. Is there a way I can avoid that?
Here is a reproducible example below where I am using
Sys.sleep(5)
to show an update from the database. Ideally, I would expect the point to be updated on the same map itself instead of refreshing the complete map. It becomes really annoying when the map gets updated 10 times in a minute.I found a few examples on stack overflow but they don't have a concrete answer and none of them has an R answer so I don't know how to implement this.
https://stackoverflow.com/questions/8673111/how-to-update-google-map-pins-without-refreshing-the-whole-map
https://stackoverflow.com/questions/43906523/how-to-update-markers-on-google-map-without-refresh
https://stackoverflow.com/questions/40491947/how-to-update-location-without-refresh-google-map-using-javascript
The text was updated successfully, but these errors were encountered: