nobleo / rviz_satellite

Display internet satellite imagery in RViz
Apache License 2.0
530 stars 226 forks source link

Set a HTTP user agent header #29

Closed Earthwings closed 7 years ago

Earthwings commented 7 years ago

Some tile servers (e.g. openstreetmap.org) require a valid user agent. Fixes using http://a.tile.openstreetmap.org/{z}/{x}/{y}.png as tile url (Object URI).

gareth-cross commented 7 years ago

The enum value UserAgentHeader is Qt5, while this project supports both Qt4 and Qt5. If you use setRawHeader w/ the key User-Agent this should be fine on both.

Earthwings commented 7 years ago

Good point, I changed it accordingly.