If you are using standard web interface (not simple) you can add deviceId
URL parameter to make the device selected on load.
But you still need push follow button at least once, its state saved in cookies and you do not have to push it every time.
I would like to know how to do this - can you supply some details please - would be good to show the system via my website.
an old question, but I had to solve it yesterday, so I hope it will useful for those who want to make this. :)
if you modify the web\simple\app.js you can make it, and it is not complicated.
1,. use the deviceId in url,
2., later when the script put the markers, on the specific deviceID set the map's center
3., in the "else" set the center too
however if you add this line
map.addLayer(new ol.layer.Vector({source:new ol.source.Vector({url:user.poiLayer,format:new ol.format.KML})}));
you add the poi layer for the user too.
I have embedded traccar map in iframe and its working perfectly fine.
I would like to know if it is possible to pass a variable to that the map can "follow" a specific device.
Thank you in advance!