Device icons not showing on map

Rwema Aimable 8 years ago

I am having a problem similar to this: https://www.traccar.org/forums/topic/no-icon-and-name-of-vehicle-showing-on-map/
I am using the huabao protocol on port 5015. Everything else is working perfectly (device status, alerts) for around 1500 devices, but icons are not showing on the map. Below is a sample of the browser console. I am trying to use the answer in that link but I don't know where to start

cdnjs.cloudflare.com/ajax/libs/ol3/4.6.5/ol.js:219 Uncaught TypeError: Cannot read property 'length' of undefined
    at f.xk (cdnjs.cloudflare.com/ajax/libs/ol3/4.6.5/ol.js:219)
    at f.vh (cdnjs.cloudflare.com/ajax/libs/ol3/4.6.5/ol.js:219)
    at f.Ca (cdnjs.cloudflare.com/ajax/libs/ol3/4.6.5/ol.js:216)
    at um.k.Ca (cdnjs.cloudflare.com/ajax/libs/ol3/4.6.5/ol.js:369)
    at U.k.Gb (cdnjs.cloudflare.com/ajax/libs/ol3/4.6.5/ol.js:690)
    at g.updateLatestMarker (/app.min.js:300)
    at g.updateLatest (/app.min.js:296)
    at F.fire (cdnjs.cloudflare.com/ajax/libs/extjs/6.2.0/ext-all.js:22)
    at F.dispatch (cdnjs.cloudflare.com/ajax/libs/extjs/6.2.0/ext-all.js:22)
    at g.a.doFireEvent (cdnjs.cloudflare.com/ajax/libs/extjs/6.2.0/ext-all.js:22)
57cdnjs.cloudflare.com/ajax/libs/ol3/4.6.5/ol.js:370 Uncaught TypeError: Cannot read property 'fa' of undefined
    at vm (cdnjs.cloudflare.com/ajax/libs/ol3/4.6.5/ol.js:370)
    at U.k.gj (cdnjs.cloudflare.com/ajax/libs/ol3/4.6.5/ol.js:696)
    at Hk.b (cdnjs.cloudflare.com/ajax/libs/ol3/4.6.5/ol.js:46)
    at Hk.Sc.b (cdnjs.cloudflare.com/ajax/libs/ol3/4.6.5/ol.js:49)
    at Hk.k.u (cdnjs.cloudflare.com/ajax/libs/ol3/4.6.5/ol.js:50)
    at Hk.k.Oe (cdnjs.cloudflare.com/ajax/libs/ol3/4.6.5/ol.js:302)
    at Hk.b (cdnjs.cloudflare.com/ajax/libs/ol3/4.6.5/ol.js:46)
    at Hk.Sc.b (cdnjs.cloudflare.com/ajax/libs/ol3/4.6.5/ol.js:49)
    at Yc (cdnjs.cloudflare.com/ajax/libs/ol3/4.6.5/ol.js:51)
    at Hk.k.set (cdnjs.cloudflare.com/ajax/libs/ol3/4.6.5/ol.js:51)
Anton Tananaev 8 years ago

The issue is that device reported invalid coordinates. Remove device that has the problem.

Rwema Aimable 8 years ago

Any hint how to spot the device. I have over 1400 devices just wondering if there is any easy to know the faulty one

Anton Tananaev 8 years ago

You can try to run an SQL script to find coordinates out of range.

Rwema Aimable 8 years ago

Could this be a protocol problem? I run a query and found more that 30% (or 400) of devices have sent invalid coordinates. I have sent you an email about with more details

Rwema Aimable 8 years ago

OK, I have found the problem. There was some junk positions that were submitted before using osmand. Deleting these solved the problem. Thank you