nobleo / rviz_satellite

Display internet satellite imagery in RViz
Apache License 2.0
569 stars 238 forks source link

How to replace openstreetmap with Google Map #46

Closed yanliang-wang closed 5 years ago

yanliang-wang commented 5 years ago

Compared with Google,OpenStreetMap and MapBox are updated slowly.So I found the URI of Google tiles Maps on the Internet. Then I directly replaced the object uri with the uri of Google Maps on AerialMapDisplay. In the end, although Google Maps can be displayed on the rviz, the scale of the map is incorrect, so some people know how to modify the scale?

Thank you.

beetleskin commented 5 years ago

what link-template and other settings are you using?

yanliang-wang commented 5 years ago

This is my link to use the Google map, you can try it.This link has a lot of parameters to adjust. http://mt2.google.cn/vt/lyrs=y&scale=1&hl=zh-CN&gl=cn&x={x}&y={y}&z={z}

beetleskin commented 5 years ago

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

Maybe play a bit with the other params? However, using those links without api is deprecated and might have some legal issues. Just fyi.

yanliang-wang commented 5 years ago

Yes, your link is useful. I compared your link to my link and modified some params. I found the parameter in my link that caused my problem is "&gl=cn". Thank you for your answer.

yanliang-wang commented 5 years ago

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

Maybe play a bit with the other params? However, using those links without api is deprecated and might have some legal issues. Just fyi.

@beetleskin Thanks for your answer.

atasoglou commented 3 years ago

Is the google link still working to date? We are getting "Bad request" errors.

bruce-almon commented 3 years ago

Is the google link still working to date? We are getting "Bad request" errors.

It works fine. Just tested