Custom map

You k2 years 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 Tananaev2 years ago

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

You k2 years 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 Tananaev2 years ago

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

You k2 years ago
Anton Tananaev2 years ago

What about the user/server attributes?

You k2 years ago

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

Anton Tananaev2 years ago

No.

You k2 years ago

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

CGonIT2 years 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!

CGonIT2 years 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 Tananaev2 years 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.

CGonIT2 years ago

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

Anton Tananaev2 years ago

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

CGonIT2 years ago