-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change icon #41
Comments
+add a possibility to add custom icon (upload) |
I think the link to uploaded custom icon should be stored in devices tables because each device should have its own icon. |
@Jeferex +1 :) |
Actually there should be five icons:
Thus, I am thinking about hard coding some set of default icons (as on above picture - truck, bike, etc.) without ability to upload your custom icon. Icon will be a setting of each device (vehicle). This should be a good start from my point of view. |
I agree.This should be a good start. |
…sal. Also now it's possible to select them in device profile.
First version with possibility to change icons is available here http://myultrashare.appspot.com/s/traccar-web/dev/latest/traccar-web.war Right now it has following icons: History will still be printed as set of markers. If it works, then I will add icons for following device types:
|
Seems to be OK. (did not try when my car was on the go) |
Hello, |
…, car truck, bus, plane, ship and train
Thanks for testing. I have added all icons from my previous comment. Latest version with default english language is available as usual at http://myultrashare.appspot.com/s/traccar-web/dev/latest/traccar-web.war Latest version with default hungarian is available at http://myultrashare.appspot.com/s/traccar-web/dev/latest/hu/traccar-web.war |
Hello, I had not yet the possibility to test the new version, while the vehicle Am 09.12.2014 um 23:39 schrieb Vitaly Litvak:
|
Thanks again for testing. Actually right now this change is applied only on next latest position query, which happens by default every 15 seconds. I think I will make it updating right after saving device settings. Regarding archive, I think it's better to draw it with markers rather than device icons just in terms of look and feel. Also it didn't require to create couple of additional icons per every device :) Anyway, this device icon is now drawn in popups, so once mouse is over an archive point it will show that icon. |
In latest version icon on map will update right after saving device settings. Please check. |
Thank you very much.
|
I just chequed and everything worked fine. |
Sounds good. Thank you for testing. To close this issue I think I should put same icons to the mobile version, but I'm not sure. |
I did not check the mobile version, but I think the mobile version should be equal. I know now I am outrageous, but it when I was watching today the truck moving, I was thinking about, that it would be fine if the direction of the icon would be pointing towards the direction of the moving vehicle. But I think this ist too hard to realize. |
I tried to check the mobile version, but it did not work. |
try in incognito mode. 2014-12-15 11:54 GMT+01:00 bospre notifications@github.com:
|
Well, actually I haven't made any changes to the mobile version related to device icons, so it would be a big surprise if it will work :) I don't know how to clear cookies in mobile web browser, I guess you should refer to the OS documentation (iOS, android, etc.) |
No, I meant the "website" did not work. I got a blank screen without loading the site correct. |
I tried to test with my mobile device, but I only got a dark screen. Clearing browser cache did not help. |
Sounds like it cannot load OpenStreetMap. This is most probably a connectivity issue. Does mobile version work for you when you open it from desktop? |
Yes, from desktop PC it is working. |
Thank you for testing. Also you can try switching map provider (i.e. to google or bing). You may consider creating new user for testing. |
I just got a new device and tried to configure. |
Thank you, but how can I change th map provider in the mobile version? Am 16.12.2014 um 11:50 schrieb Vitaly Litvak:
|
Regarding your issue with inability to add new/edit existing devices - please create new issue in this issue tracker and paste there wrapper.log file.
You can change map provider in Settings >> Preferences menu. |
Sorry, but I just had a look at the mobile version again (the dark screen). But where are the settings? I only can see "+", "-" and ">". And with ">" I can change devices and logout. I can't find settings. |
There are no settings in mobile version (for now). You should change them in 'desktop' version. |
Hello, |
Default icons (except 'offline' icon) are stored on cloudflare CDN. All other icons are stored in |
Hello, |
Of course, it is possible. However, I don't see any reason to do that. Right now these icons are hosted on CloudFlare CDN, which tends to be reliable. Moreover, not only icons, but external javascripts are also stored on CDNs. This approach helps traccar web server save resources from additional HTTP requests for icons and scripts and also helps browser cache to act more effectively (it should cache remote javascripts and images based on CDN URL, so if you switch sites that are using them it will simply take javascript from cache). |
Completed this feature, included in latest available and demo versions. |
So here ist my feature request, as you wanted me to open a new issue.
It would be nice if the icon of the tracked item could be changed.

Just now it is some kind of double triangle, which, I guess, is easily drawn.
I would like to change this icon in some kind of symbols e.g. for car, truck, motorcycle, bicycle, boat and so on.
Sorry for my description, I hope you can understand now.
Sincerely
Boris
I try to attach two pictures:
The text was updated successfully, but these errors were encountered: