Display Name and Icon Together

rahulzeel10 years ago

Hello,

We wish to display device name and icon together on the Traccer Map. Is there any option, we can configure

Anton Tananaev10 years ago

No, unfortunately there is no option in current web interface, but I plan to add it in future.

Plof9 years ago

Is this option now available?

Anton Tananaev9 years ago

Not yet, but I plan to add it with next release.

Plof9 years ago

Ahh very nice to hear! It is possible to tackle the problem with upload a picture with the name of the device, using this fork: http://traccar.litvak.su/features/change-device-icon.html

Will it be possible in the next update to show the realtime speed of several devices...?

Thank you for you fast response!

Anton Tananaev9 years ago

How do you want the speed to be shown for several devices?

Pat4 years ago

Hi Anton,

Firstly thank-you for leading such a great piece of software.

My post is relevant to the above, in regards to the real time display of speed on the map.
Software I used years ago showed the current vehicle speed next to the name as it moved around the map.
Is this an easy integration into the Traccar system or more complex?
I believe that it would be a beneficial feature as the current speed can easily get lost in the attributes list, despite hiding what isn't relevant from the UI.

Kind Regards,

Pat

Anton Tananaev4 years ago

Probably easy to do.

Pat3 years ago

Thanks for your response Anton.
Would this be something that I need to personally modify the code in order to achieve or a possible feature request.
I have been looking through the code but so far haven't had any luck locating the correct file & line that outputs the device name onto the map (in order to display the speed after the device name).
More then happy to spend the time modifying the code but would appreciate any pointers you might have.

Pat

Anton Tananaev3 years ago

We don't plan to implement something like that in the official version, so you'll have to do it yourself.

Pat3 years ago

I have trawled through source code for a couple hours now and made changes where I think controls the name displayed on the map (MapMarkerController.js) but it is making no difference to the output displayed.
Can you please point me in the right direction as to which specific file will require modification in order to achieve this.

Kindest Regards,

Pat

Anton Tananaev3 years ago

That is the right file.

stavragi3 years ago

In case someone is still interested, the reason the changes where not visible is explained here ( https://www.traccar.org/build/ )
Basically Traccar uses minified version where all files are combined into one and compressed.
If you modify web interface files, there are two deployment options:
Upload new files into the server web folder and use debug.html to load non-compressed version of the web interface
Generate minified version of the web interface using Sencha CDM tool