Route replay from device popup window.

Track-tracea year ago

Today i installed fresh 5.9 and did some tests to compare it to 5.7

On 5.7 when you click on the device popup window to show a replay of the route. Then when you double click on a dot on the map it will open up the popup window again for that position. This way you can scroll through the route and see the details for those positions in the popup window.

On 5.9 when you do the same as above it will not open the popup window when you double click on a dot / position (it will only zoom in more on the position). Is this correct?

It would be great if it can work as the same function as 5.7

Cristiana year ago

Are you sure that version 5.7 is an official version?

Track-tracea year ago

Yes im sure about that.

Cristiana year ago

It happens that I had to program that in the platform, that's why I was asking

Track-tracea year ago

Ok, as far as i remember i did not enable anyything on 5.7 to make that work. So actually now that is not working on 5.9

This is what the replay looks on 5.7 when you double click on a dot.

https://postimg.cc/GB689Cyj

So if we can get that back in 5.9 that would be great because the popup window in that case is very informative.

Cristiana year ago

I recommend that you enter a feature request. Then Anton and his team can review it.

Track-tracea year ago

Why should it be a feature request when it already was working?
Sounds more like a bug to me.

Cristiana year ago

You are absolutely right, I checked the code and it is as you say.

Track-tracea year ago

Good, can you show me where (whice file(s)) the code is different. Will save me some time so i can recompile traccar server.

Cristiana year ago

I haven't found the solution yet, but it depends on this code snippet to display the popup.

  {showCard && index < positions.length && (
    <StatusCard
      deviceId={selectedDeviceId}
      position={positions[index]}
      onClose={() => setShowCard(false)}
      disableActions
    />
  )}

https://github.com/traccar/traccar-web/blob/master/modern/src/other/ReplayPage.jsx

Track-tracea year ago

I did compare both files ReplayPage.js from 5.7 and ReplayPage.jsx from 5.9 and they are actually exactly the same.

So it seems some other code/file is responsible for the change. Will be great if we can find the solution.

Track-tracea year ago

I did some testing. Actually i think we need to look at the modern app code (not the server code).

Because i have moved the 5.9 server install directory to a test directory and then removed the modern app directory from it and then replaced it with the modern directory from traccar 5.7

Then when i start the 5.9 server it will show correctly the server and app version:

https://postimg.cc/5HmqxMvR

Then when i do the same replay from the popup window the double click works again and opens a new popup for the replay.

Thus the issue is in the modern app code.

Track-tracea year ago

Meaby this comparison between traccar-web 5.7 and 5.9 can give some insight.

https://github.com/traccar/traccar-web/compare/v5.7...v5.9

Cristiana year ago

the problem is in the modifications that were made to the MapPositions.js file, following what you did, in my case I just changed that file from version 5.8 that I had to 5.9 and the popup worked again.

Anton Tananaeva year ago