TileLayerPlugin icon indicating copy to clipboard operation
TileLayerPlugin copied to clipboard

referer setting

Open umlublin opened this issue 8 years ago • 1 comments

in some Tile providers there is required "referer" HTTP header, (ex. http://tiles.mapire.eu/mercator/firstsurvey_v1/{z}/{x}/{y} ) its ok if i set this to same url // request.setRawHeader("Referer",url) in downloader.py but good if you can be set from config file

umlublin avatar May 25 '17 08:05 umlublin

http://tiles.mapire.eu uses cloudfront which needs referer. You can bypass it by putting direct url http://tiles.mapire.eu.s3-website-eu-west-1.amazonaws.com/mercator/firstsurvey_v1/XXXX or using entry in system "hosts" file to point directly to s3 server 52.218.16.146 tiles.mapire.eu

cyprianno avatar Apr 05 '18 16:04 cyprianno