Map Camera

Trackera year ago

Hi, I need help.

I have more than a thousand devices in the modern version of traccar, and when I select one the map takes too long to move and go to the location of the device.

Where can I configure, that the map does not move towards the location of any selected device, but that the map jumps directly to the location. In the legacy version of traccar this worked like this.

Anton Tananaeva year ago

Check the Maplibre API that does centering for both options, find it used in the code, replace the API and finally compile the app.

Trackera year ago

Sorry, could you help me more specifically, where can I find the exact function that does this?

Anton Tananaeva year ago

You can find their API documentation here:

https://maplibre.org/maplibre-gl-js-docs/api/

Trackera year ago

Thank you very much Anton.