4.1 - Custom Google Maps no longer work (amp's..)

Sean Hay6 years ago

Hello Anton & other developers.

Well done on version 4.1. As a non developer this version for me was mind blowing. Version 4.0 on Centos and Linux made me grey. (did not have to do a manual install for the first time)

Problem: Custom Google maps worked fine in previous versions.

Scenario:

  1. Log onto server > server > server settings > customer map
  2. Insert the string: http://mt0.google.com/vt/lyrs=y&hl=en&x={x}&y={y}&z={z}&s=Ga
  3. Save, no map.

Note: when I go back to the above string it has changed to:
http://mt0.google.com/vt/lyrs=y&hl=en&x={x}&y={y}&z={z}&s=Ga

(Other note to maybe help, being a non programmer: in version 4.0 it used to change the database url in the traccar.xml file with a whole lot of amp's. Now I see in 4.1, it no longer does this. But now does this to the above Google Map string.)

Thank you in advance
Sean

Anton Tananaev6 years ago

Have you checked other forum threads before creating a new one?

Sean Hay6 years ago

Anton apologies I posted the same string twice.

On version 4.0: this string worked great and did not change: http://mt0.google.com/vt/lyrs=y&hl=en&x={x}&y={y}&z={z}&s=Ga
Now on version 4.1 it changes that string to: http://mt0.google.com/vt/lyrs=y&hl=en&x={x}&y={y}&z={z}&s=Ga

I keep pasting the above string in and saving and it auto changes it to the second string.

Yes I have looked at other forum threads found nothing. I guess as this is a new issue to do with 4.1.

Thanks
Sean

Mathias6 years ago

Hello Anton
We experience the same issue with the custom map feature

Mathias6 years ago

I found another forum post about this topic:
https://www.traccar.org/forums/topic/upgraded-to-41-no-map/

Georges Goebel6 years ago

Hi
I have the same issue. It worked correctly in version 4.0 and I am encountering this issue after updating from 4.0 to 4.1

When you save in server settings the url http://mt0.google.com/vt/lyrs=y&hl=en&x={x}&y={y}&z={z}&s=Ga and you reopen the server settings the URL in the textbox shows http://mt0.google.com/vt/lyrs=y&hl=en&x={x}&y={y}&z={z}&s=Ga

In the Database, the correct value is saved.

sql> select * from tc_servers;
ID | REGISTRATION | LATITUDE | LONGITUDE | ZOOM | MAP    | BINGKEY | MAPURL                                                                | READONLY | TWELVEHOURFORMAT | ATTRIBUTES | FORCESETTINGS | COORDINATEFORMAT | DEVICEREADONLY | LIMITCOMMANDS | POILAYER
1  | FALSE        | 0.0      | 0.0       | 0    | custom |         | https://mt0.google.com/vt/lyrs=m,traffic&hl=en&x={x}&y={y}&z={z}&s=Ga | FALSE    | FALSE            | {}         | FALSE         |                  | FALSE          | FALSE         | 
(1 row, 6 ms)

However when you open the application in the browser, the url used to fetch the map is the following :
https://mt0.google.com/vt/lyrs=m,traffic&hl=en&x=530&y=347&z=10&s=Ga
Replacing & with & in the URL works for fetching manually the pictures. So the URL is correct however the GUI tries to replace the & caracter

Georges

Eddie6 years ago

Right, that's exactly what happens. Is there any foresight to solve the problem?

There are also some warnings when the traccar service starts in debian:

Oct 26 17:03:33 RPi3 traccar [6405]: WARNING: An illegal reflective access operation has occurred
Oct 26 17:03:33 RPi3 traccar [6405]: WARNING: Illegal reflective access by com.google.inject.internal.cglib.core. $ ReflectUtils $ 1 (file: / op ... onDomain)
Oct 26 17:03:33 RPi3 traccar [6405]: WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core. $ ... ctUtils $ 1
Oct 26 17:03:33 RPi3 traccar [6405]: WARNING: Use --illegal-access = warn to enable warnings of further illegal reflective access operations
Oct 26 17:03:33 RPi3 traccar [6405]: WARNING: All illegal access operations will be denied in a future release
codemirror5 years ago

Did someone solved the issue of extra amp; in url
for me in traccar 4.5 version on DigitalOcean it is:

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

and throws 400 error