Devices not showing on map

RastreameMX17 days ago

Hi good day.

Yesterday some users of our Traccar Server being complaint because they were not able to see their devices in the map.

We have looking for javascript errors, 404 errors on server of something that were not being loaded, but everything were ok.

Apparently "openFreeMap" for some reason cannot be loaded, so in layers menu (three layers button on map) it appears as "undefined". As this is the default layer, for those users that didn't selected another specific map, this mistake appeared.

traccar_undefined.png

Somebody else experienced same problem with "openFreeMap"?

I'm looking inside map>core>MapView.jsx and on line 83 it shows this :

const activeMapStyles = useAttributePreference('activeMapStyles', 'openFreeMap,locationIqStreets,locationIqDark');

That's the line that sets default layers when specific active maps attribute it's nos set on user account,, it's this correct?

Thank you.

Anton Tananaev17 days ago

Looks like you're not using an official release.

RastreameMX17 days ago

Hi Anton.

I'm using traccar-web 6.5 git clone with some modifications to improve our use. None of these modifications is related with maps.

Modifications made are on :
main/DeviceRow (to make icons bigger)
settings/DevicePage (To add device connections on bottom when exists item.id)
common/components/StatusCard (To add device name label when device image is set)
settings/UserConnectionsPage (to restrict items to administrator user and hide them to common users)
settings/UserPage (To improve user creation from manager accounts)
main/MainPage (To add header line to write announcements to users)

And that's all. But it comes from a cloned traccar-web 6.5.

Anton Tananaev17 days ago

You're not using 6.5. You're using unstable master, with very expected result.

RastreameMX17 days ago

I'm not very familiar with use of github. How should i download stable release? Selecting tag of version number desired as this?

ScreenCapture

Thank you.

Anton Tananaev17 days ago

I recommend using git to clone the source code.

RastreameMX17 days ago

Thank you, going to investigate use of cloning.