Traccar 4.2 Custom map Working

superisc6 years ago

Hi, I have installed traccar 4.2 wich according with the bog post has fixed the custom map parsing error. But I can't made it work with google maps.

I put the url http://mt0.google.com/vt/lyrs=m&hl=es&x={x}&y={y}&z={z}&s=Ga
But the calls always are like this:

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

so it's not working.

I'm doing something wrong?

PS: Also I downloaded an app.min.js and Basemap.js but didn't work either. After that I reinstalled traccar, but the problems keeps...

Anton Tananaev6 years ago

Works fine for me on the demo server. You must be doing something wrong.

Slawek6 years ago

Maybe try via other browser or directly into database

Jeff6 years ago

Mine works BUT... re-checking the server config for google maps... in the field, the & is being character escaped... so if i save the server config, it will override the correct config entry.

thanks

Jake Stephens6 years ago

Just tested Google Maps on my server and if I paste URL1 into "Server Settings > Custom Map" and "Save" and set "Account > Preferences > Map Layer" to "Custom Map" and refresh the page it works.

But as soon as I edit anything in "Server Settings" again it breaks the Custom Map and has been replaced by URL2. So each time I edit the server settings I have to remember to change the Custom Map URL as well.

URL1: https://mt0.google.com/vt/lyrs=m&hl=es&x={x}&y={y}&z={z}&s=Ga
URL2: https://mt0.google.com/vt/lyrs=m&hl=es&x={x}&y={y}&z={z}&s=Ga

Anton Tananaev6 years ago

I have fixed the issue.

Jake Stephens6 years ago

Thanks Anton.. Much appreciated! :)

Xe 20165 years ago

Is there any release for this fix?

Anton Tananaev5 years ago

I believe you can easily answer your own question by looking at the dates.

Oscar Veloz5 years ago

Hi Im having the same problem is there any way of fixing it?