No icon and name of vehicle showing on map

Hans Vis7 years ago

I'm using version 3.14 with OSM and the following reverse geoding config, moving away from google geocoding because of too many requests:

<entry key='geocoder.enable'>true</entry>
<entry key='geocoder.type'>nominatim</entry>
<entry key='geocoder.url'>https://locationiq.org/v1/reverse.php</entry>
<entry key='geocoder.key'>***********</entry>

It used to work ok with the google geocoding

Clicking on the vehicle in the left hand list does move the map to the position where the vehicle is, however there is no icon showing.
Also after logging in there is no map with all vehicles.

What am I doing wrong?

Anton Tananaev7 years ago

I would recommend to check browser console for errors. Are you sure you are using official release without any modifications?

Hans Vis7 years ago

I've only changed traccar.xml to the following:

<?xml version='1.0' encoding='UTF-8'?>

<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>

<properties>

    <!--

    This is the main configuration file. All your configuration parameters should be placed in this file.

    Default configuration parameters are located in the "default.xml" file. You should not modify it to avoid issues
    with upgrading to a new version. Parameters in the main config file override values in the default file. Do not
    remove "config.default" parameter from this file unless you know what you are doing.

    For list of available parameters see following page: https://www.traccar.org/configuration-file/


-->


    <entry key="config.default">./conf/default.xml</entry>
<!--

    <entry key='database.driver'>org.h2.Driver</entry>
    <entry key='database.url'>jdbc:h2:./data/database</entry>
    <entry key='database.user'>sa</entry>
    <entry key='database.password'></entry>
-->

<entry key='database.driver'>com.microsoft.sqlserver.jdbc.SQLServerDriver</entry>
<entry key='database.url'>jdbc:sqlserver://************;databaseName=TRACCAR</entry>
<entry key='database.user'>traccar</entry>
<entry key='database.password'>traccar</entry>

<entry key='sms.smpp.enable'>true</entry>
<entry key='sms.smpp.host'>***********</entry>
<entry key='sms.smpp.port'>****</entry>
<entry key='sms.smpp.username'>smpp</entry>
<entry key='sms.smpp.password'>smpp</entry>
<entry key='sms.smpp.notificationsCharset'>GSM</entry>
<entry key='sms.smpp.notificationsDataCoding'>0</entry>
<entry key='sms.smpp.sourceAddress'>**********</entry>

<entry key="h02.timeout">930</entry>

<entry key="status.timeout">940</entry>

<entry key='geocoder.enable'>true</entry>
<entry key='geocoder.type'>nominatim</entry>
<entry key='geocoder.url'>https://locationiq.org/v1/reverse.php</entry>
<entry key='geocoder.key'>*</entry>

</properties>
Hans Vis7 years ago

Good morning,

I removed all existing Java, installed default open-jre, reinstalled Traccar but problem is still there.
No errors / warnings in the log. if i log in I see the map, zoomed in at a location of a device, no icon. Normally i would see all devices shown on the map, now i only see them in the list on the left hand side. Could it be a database corruption?
Are there any other things I could look at?

Hope you can get me on track again ;)

Anton Tananaev7 years ago

I'm not sure why you are trying to guess something. You need to check browser developer console, as I said earlier.

Hans Vis7 years ago

I was just trying to make sure it was not because of a wrong Java version (oracle).
Checked the web console, got some errors after refresh screen, don't know whether they are related?

TypeError: d is undefined[Learn More] ol.js:240:723
TypeError: b.children is undefined[Learn More]  ol.js:236:413
TypeError: d is undefined[Learn More]  ol.js:240:723
TypeError: b.children is undefined[Learn More]  ol.js:236:413
unreachable code after return statement[Learn More]  ext-all.js:22:366125
This site appears to use a scroll-linked positioning effect. This may not work well with asynchronous panning; see https://developer.mozilla.org/docs/Mozilla/Performance/ScrollLinkedEffects for further details and to join the discussion on related tools and features!
Anton Tananaev7 years ago

As you can see, the problem is in JavaScript. Can I have access to the website to check myself?

Hans Vis7 years ago

Sure..

how can send link without showing sensitive data?

Anton Tananaev7 years ago

You can send it to support email.

Hans Vis7 years ago

Thank you Anton!!!!,

now solved thanks to your quick and to the point troubleshooting.

One device did not have a proper GPS fix. The coordinates uploaded where non-existing, causing the map and icons not to show. After removal of the broken device, the software acted as usual ('usual' meaning very good...!!!)