UI: Hide Position Attributes keys

Claudio Carrasco4 years ago

Hi!,
I want to hide some items of state's table using user attributes, specifically the "UI: Hide Position Attributes" value. I would like to know what are the values that I can hide from here. According to the info I checked, the keys are in this document: https://github.com/traccar/traccar/blob/master/src/org/traccar/model/Position.java , but the document is no longer available.

I appreciate any help, greetings!

Anton Tananaev4 years ago

Check Position class on GitHub.

Claudio Carrasco4 years ago

Thanks Anton, it works partially for me.

I found the "status" key here (fine), but I didn't find the io1, io2, io3, io4 keys here that also work on the value "UI: Hide Position Attributes". I also did not find any address or altitude key.

Editing (and minifying) the StateController.js file I can remove this fields but I don't know if this causes a conflict with another function.

Anton Tananaev4 years ago

There are custom attributes like "ioX" that are not listed, but you should be able to use those as well. Attributes that are directly defined in the position model, like address and altitude, are not affected by this configuration.

Claudio Carrasco4 years ago

thanks Anton :)

br04 years ago

Подскажите Антон, а как скрыть атрибуты координат, высоты и адрес ?

Anton Tananaev4 years ago

Никак на данный момент.

br04 years ago

Спасибо, ждем эту возможность в будущем :)