Custom map

You ka year ago

Hello,

I'm using the newest version 5.3 and custom map still not showing even after disabling web.sanitize.

<entry key='web.sanitize'>false</entry>

Please what could be the reason ?

Anton Tananaeva year ago

How is sanitize related to the map? What's the error?

You ka year ago

Hello,

There is no error, when i enter preferences to add custom xyz i noticed that i can't clic on it still red

Anton Tananaeva year ago

No errors in the developer console? Please provide a screenshot.

You ka year ago
Anton Tananaeva year ago

What about the user/server attributes?

You ka year ago

It works now
Please is there a google satellite by default in the app ?

Anton Tananaeva year ago

No.

You ka year ago

How can we activate the red maps on the preference list ?

CGonITa year ago

Hi Anton,

I'm in the same situation. 5.4 version installed but quite difficult to understand the way of adding the Google Map Layer.
Understood from now:

  • URL should be like this: http://mt0.google.com/vt/lyrs=y,traffic&hl=es&x={x}&y={y}&z={z}&s=Ga
  • Sanitize attribute is in traccar.xml config file.
  • (Stuck) Server Preferences > Map > Custom (XYZ) (not selectable, looks red).
  • (Stuck) Going to User Account > Attribute, there is only selectable attributes, tried also typing "Custom (XYZ)" but still not working.

Can you describe a little bit in deep the full steps? As the documentation I think is for older versions, or I am not finding the correct doc link.

Thank you once!

CGonITa year ago

Well... I just found another entry in the forum right now. I you allow me, I will type here the steps:

  1. Edit Config file "traccar.xml", and add the next line:
   <entry key='web.sanitize'>false</entry>
  1. Save and reboot the Traccar service.
  2. Do login in Traccar.
  3. Go to Settings > Server and in the first text-box, type the Google URL you preffer (like this one http://mt0.google.com/vt/lyrs=y,traffic&hl=es&x={x}&y={y}&z={z}&s=Ga) (more info in this link to doc https://www.traccar.org/map-layers/)
  4. Go to Settings > Preferences > Map Section, and now should be available the "Custom (XYZ)" map.

Remember to enable it at user level.
Hope this helps another users.
Thanks and sorry!

Anton Tananaeva year ago

Please provide screenshots. By the way, in version 5.4 the sanitize flag is disabled by default, so you don't need to change/add it.

CGonITa year ago

So "sanitize" line is not needed anymore? Can I supress the step number 1?

Anton Tananaeva year ago

Yes, not needed if you're using the default 5.4 config.

CGonITa year ago