hyperknot / openfreemap

Free and open-source map hosting solution with custom styles for websites and apps, using OpenStreetMap data
https://openfreemap.org/
Other
2.91k stars 60 forks source link

Outdoor style possible? #31

Open ravenfeld opened 1 month ago

ravenfeld commented 1 month ago

I wanted to propose an outdoor style to openfreemap but I have the impression that it lacks data to succeed in doing something like.

https://www.maptiler.com/maps/outdoor/

After all, I'm just starting out, so maybe I'm looking in the wrong place, but the relationship between a hiking trail doesn't seem to be there for the drawing or the trail_visibility tag.

I'm having trouble I suppose because I know OSM and I can't manage to do the mapping properly.

hyperknot commented 1 month ago

I never made an outdoor map, but I believe there are two components required:

Elevation data is tracker here: https://github.com/hyperknot/openfreemap/issues/19

For hiking specific tags, you'd need to use the inspector and see what is and what isn't visible. Can you check for the tags using the inspector? https://github.com/hyperknot/openfreemap/blob/main/docs/debugging_names.md

zbycz commented 1 week ago

We are using maptiler outdoor map extensively at osmapp.org – there are 2 vector map sources in their outdoor style:

  1. standard maptiler_planet, which is the same as OpenFreeMap planet
  2. specific hiking source outdoor, which holds the geometries of the marked trails and some additional hiking POIs – https://api.maptiler.com/tiles/outdoor/tiles.json?key=${apiKey}, see source: 'outdoor' in the style here

Of course there are also 2 sources for digital elevation models (terrain-rgb + countours), but this is probably beyond the scope of OFR project. See here.

I wonder how much bigger would get the OFR planet, if we included the hiking tags. Maptiler decided to split it in two, but if I understand it correctly, they are basically duplicating all the geometries in both tiles, so just adding the hiking tags in OFR planet could be doable and awesome! 🙂

hyperknot commented 4 days ago

I'd love to include the hiking tags. I don't have capacity to dedicate for this effort, but if you can figure out how to include custom tags in planetiler, I'd be happy to include those in the official OFM planet source. I'd recommend opening an issue/discussion in planetiler GitHub.

Terrain related data will be included in the long term future: https://github.com/hyperknot/openfreemap/issues/19

ravenfeld commented 20 hours ago

I don't have the skills yet but I'm trying to understand how it works. If one day I can advance the technical subject I would be delighted.

hyperknot commented 17 hours ago

There'll be ready-made styles when this is done, you won't need to have advanced technical understanding to add outdoor maps to a website/app at that point.