Map Camera

Tracker2 years 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 Tananaev2 years 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.

Tracker2 years ago

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

Anton Tananaev2 years ago

You can find their API documentation here:

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

Tracker2 years ago

Thank you very much Anton.