nrenner / brouter-web

Web client for BRouter, a routing engine based on OpenStreetMap
https://brouter.de/brouter-web/
MIT License
374 stars 74 forks source link

Hillshading and Hike&Bike layers show tile "Contact [[User:TheDJ]] ..." #475

Closed robobobeng closed 2 years ago

robobobeng commented 2 years ago

Since today (2022-01-22), OSM tiles don't appear properly. Some appear, some don't, and some just replaced by the following message:

image

Of course I tried to fix the issue by adding my own tiles, I tried the 4 following URLs : https://tile.openstreetmap.org/${z}/${x}/${y}.png https://a.tile.openstreetmap.de/${z}/${x}/${y}.png https://b.tile.openstreetmap.de/${z}/${x}/${y}.png https://c.tile.openstreetmap.de/${z}/${x}/${y}.png

Any of them yields the same result.

nrenner commented 2 years ago

It's not the OSM tiles, but the hillshading overlay ("Relief avec ombre" in your case), click on the checkbox to deactivate.

The website of that layer is https://hikebikemap.org/ (see the link bottom right), but fails to load due to other errors.

We probably need to look for alternatives, but I'm not sure if there are any we can use.

nrenner commented 2 years ago

According to this comment by TheDJ, all tiles from tiles.wmflabs.org are not available anymore, unless someone volunteers to keep maintaining that server:

FYI. I have now made tiles.wmflabs.org tiles return a static image. I don't feel like dragging this thing on for another 4 years as it is not really something i enjoy. Especially with the unreliability of the OSM database sync for wmflabs and no one invested in fixing that either. This means the following:

  1. Standard multilingual OSM mapnik tiles will no longer be available to the community. Use https://tile.openstreetmap.org/${z}/${x}/${y}.png instead
  2. The hillshading tiles will not longer be available (i know of no alternative)
  3. The hikebike map that we were hosting will no longer be available
  4. The OMS black and white and nolabels style will no longer be available

If anyone is interested in taking it over, i'm willing to show you around the server. If no one volunteers, it will likely be deleted soon in the upcoming purge: https://wikitech.wikimedia.org/wiki/News/Cloud_VPS_2021_Purge

HollyBoni2 commented 2 years ago

Any updates, is there any way to fix this issue? BRouter is my favourite route planner, and I always used OSM with hillshading. 😕

nrenner commented 2 years ago

I still hope the tile service will be resumed soon.

There are some comments in this Wikimedia task, from potential admins, maybe moving static hillshading tiles somewhere else and an ongoing database reload: https://phabricator.wikimedia.org/T187601#7642399

pou-lagah commented 2 years ago

is the integration of the Hillshade function (arcgis) possible ?

https://desktop.arcgis.com/en/arcmap/latest/manage-data/raster-and-images/hillshade-function.htm

nrenner commented 2 years ago

Thanks for the suggestion, but I don't see how.

I had searched there for hillshading tile layers before, but hadn't found one that is meant as overlay, i.e. that is transparent in flat regions: https://www.arcgis.com/home/search.html?q=hillshading

I do have other ideas but will need to check.

HollyBoni2 commented 2 years ago

BTW I live in Hungary and I just discovered that there was a "Hillshade Hungary" option in the optional layers menu... Not sure what it is but it works. So happy! opkopk

nrenner commented 2 years ago

The idea is to use Terrain Tiles from Open Data on AWS (Amazon Web Services): https://registry.opendata.aws/terrain-tiles/

I haven't seen any specific usage terms, but it seems they can be used without a key.

The tiles contain raw DEM (Digital Elevation Model) data encoded as PNG. So they need to be rendered to hillshading dynamically in the Browser (e.g. using WebGL).

I guess the way forward for that would be to include Maplibre GL JS.

Demo

The Maplibre bundle is a quite big - almost five times the size of Leaflet (minified but not compressed):

So the idea is to only load Maplibre when the layer is actually used, using Dynamic Imports:

Lazy loading demo (filter devtools Network tab by .js and observe when activating the Hillshading overlay)

I'm working on a PR for that.

nrenner commented 2 years ago

Resolved in 13efb48 and following.