TileLayerPlugin
TileLayerPlugin copied to clipboard
referer setting
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
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