Google Map Layer

YenikaCarlex2 years ago

@Anton I actually tried the link below with a couple of views but it didn't work. I'm not sure where I am going wrong.

https://mt0.google.com/vt/lyrs=s&hl=en&x={x}&y={y}&z={z}&s=Ga

All I did was to modify in settings -> Server -> preferences and pasted
Also added <entry key='web.sanitize'>false</entry> to the traccar.xml.

Please help, I know this is an old thread but for some reason I can't get a solution.

Anton Tananaev2 years ago

What do you mean exactly by "it didn't work"? What errors do you get?

YenikaCarlex2 years ago

No Errors but after save and refresh, when custom map is selected, I see my devices without a map layer

Anton Tananaev2 years ago

No errors in the browser console?

YenikaCarlex2 years ago

No errors

Anton Tananaev2 years ago

Can you share screenshots of the browser console and network tools.

YenikaCarlex2 years ago
Anton Tananaev2 years ago

What is this? You haven't provided either of the things I asked for.

YenikaCarlex2 years ago
Anton Tananaev2 years ago

Is that what you call "no errors"?

You have to fix your custom URL in the settings.

YenikaCarlex2 years ago

This is the URL I pasted.

http://mt0.google.com/vt/lyrs=s&hl=en&x={x}&y={y}&z={z}&s=Ga 

after saving, I get:
"&amp" for all & in the URL.

Could this be the issue? if that's the case please advice how to remove. I've tried %26 to encode but no luck.
If not I don't seem to identify the issue with the URL.

Anton Tananaev2 years ago

after saving, I get: "&amp" for all & in the URL

That means you haven't configured this:

<entry key='web.sanitize'>false</entry>
YenikaCarlex2 years ago

I did, or do I need to restart the server?

Anton Tananaev2 years ago

Obviously you have to restart if you change the config.

Gerard Iscala2 years ago

Hello, enable google map with this address

https://mt0.google.com/vt/lyrs=m,traffic&hl=en&x={x}&y={y}&z={z}&s=Ga

Without api key google can block the URL.?