specify / specify6

Source Code for Specify 6, Biological Collections Management Platform
https://specifysoftware.org
GNU General Public License v2.0
14 stars 6 forks source link

Geolocate results cannot be viewed. #310

Closed timo11 closed 5 years ago

timo11 commented 5 years ago

The openstreetmaps tile server is rejecting specify's requests for tiles. So the map view in the geolocate results window is blank.

timo11 commented 5 years ago

Tile factory base url can now be set via the remote pref GEOLOCATE_TILE_FACTORY_URL.

for example: https://a.tile.opentopomap.org (the default) http://c.tile.stamen.com/watercolor

Specify assumes the tile location is specified in z/x/y order, and that the server provides .png files.

see: https://wiki.openstreetmap.org/wiki/Tile_servers

benanhalt commented 5 years ago

e87ac1a adds the User-Agent header to requests which seems to stop openstreetmaps from rejecting the requests.