How to change Icon Category on Device

astinaproject2 years ago

Hi everyone,

Is there a way to change the category icon on the device ?
I have used the default category and it appears as shown in this image.
As in the image, it can be seen in the red mark when the device is entered into a category, the device icon will appear. Is there a way to change the icon to another icon or add a new device category with a new icon?

Thank You.

Anton Tananaev2 years ago

It is possible to add or change those in the source code.

astinaproject2 years ago

Sorry to ask again, how do I add or change in the source code. Then how do I build the source code ?

Anton Tananaev2 years ago

We have the documentation available on how to build the source code.

Henrick Langner2 years ago

Hi Anton,
with version 5.8 you started to make individualisation much easier. What about to add a function to personalise the device images as easy as the server icon…? It would be very useful for people who aren’t this into coding. Thanks!

astinaproject2 years ago

I've build source code with "npm run build" and test run with "npm start" and it work. However, when I moved the files in the "build" folder from the source code to the Traccar Server folder, then restarted the service, the icon that appeared on the device still didn't change and displayed the old default icon.
Why did it happen ?

Nikolay 2 years ago

Google Chrome on Mac:
Command + Shift + R
Google Chrome on Windows & Linux: CTRL + F5
Firefox on Mac:
Command + Shift + R
Firefox on Windows & Linux:
CTRL + F5
Safari:
Command + Option + R
Opera on Mac:
Command + Alt + R
Opera on Windows:
Shift + F5

Anton Tananaev2 years ago

Basically you have to clear the browser cache.

eichenwinda year ago

Is the size of an icon limited to 24x24?

Anton Tananaeva year ago

Icons are vector, so dimensions are irrelevant.