I’ve a car which is on move and I’d like to see the roads in real time.
I’ve created a tile server (as it is a stand alone app), and can successfully read the real time data.
The code below is the one responsible for the path drawing.
The problem is that due to each call of the callback function (every 2 secs), the map is resized to it’s original size - i.e. if I perform a zoom, move to some area - it is always returns to the first map which was generated.
How to fix it so that it will show my preferred map?
You just need to pass the uirevision parameter to the figure layout and assign it to an object that “persists” over your callback updates (ex: a click counter for a “Reset Zoom” button). When I used it (in, a bubble chart), I saw some comments about not working in mapbox/geo, but this should be fixed now.