buskerudbyen / cycling-norway

3 stars 2 forks source link

Map tiles with contour lines and height colouring added to our design #86

Open tsobuskerudbyen opened 11 months ago

tsobuskerudbyen commented 11 months ago

Came across this solution - https://mathiash98.github.io/trail-map-generator/#11.43/61.8265/9.0876. Can this, or something similar be added to sykkelveier.no?

Beck-berry commented 9 months ago

He uses the Terrain-DEM template of mapbox. As far as I can see, we have a fully customized map style (e.g. custom layouts for landuses) and we should remove some of that. @leonardehrenfried do you know an easier solution? Am I on the wrong path?

Beck-berry commented 9 months ago

Also, this maplibre-gl PR might be interesting.

leonardehrenfried commented 7 months ago

@Beck-berry If you can investigate that, this would be great. The problem will be getting the data.

tsobuskerudbyen commented 6 months ago

Any news on this one? And isn't the data available on the Github link?

Beck-berry commented 3 months ago

I found another solution: openmaptiles/maptiler-terrain-gl-style Do you like this one, @tsobuskerudbyen?

tsobuskerudbyen commented 3 months ago

Perfect. Try it out. Thanks!

Beck-berry commented 2 months ago

The example you provided uses MapBox, which could generate additional costs: https://www.mapbox.com/pricing But there are multiple map styles, we could choose from: https://docs.mapbox.com/data/tilesets/reference/

I also found the "pure" elevation data without any styling for Norway, that would have a one-time (or annual if updated) cost: https://data.maptiler.com/downloads/europe/norway/


I experimented with onthegomap/maplibre-contour and used their source to create a (not too pretty) example for Drammen:

Image

However I'm unsure whether we should use their source in production.

I found another repo skylarmt/openmaptiles-contourlines that might help get the necessary data, I'll check that next. (Also tilezen/joerd could be useful for generating our own source.)