6 ms·
Can any of you suggest a nice tutorial or something for rendering maps for self-hosting at much higher zoom levels? Many of these examples are for larger areas
by c0nsumer 4y ago
Can any of you suggest a nice tutorial or something for rendering maps for self-hosting at much higher zoom levels? Many of these examples are for larger areas where zoom level 10 is sufficient, but I make hobby maps of mountain bike / hiking trails where the displayed area is only ~10km wide at the most with lots of fine detail. Thus, my maps tend to be shown at zoom levels 12-18, which is much higher than any of the free tilesets.
(Ideally I'd like to take a sane style, tweak some things like making paths clearer and offsetting the text labels, then making tiles. The Thunderforest maps are exactly what I want, but tiny and local and self-hosted.)
- pbronez 4y agoThis might be what you’re looking for: https://protomaps.com/docs/pmtiles https://protomaps.com/docs/pmtiles Looks like protomaps supports up to zoom level 14 for free: https://app.protomaps.com/downloads/small_map https://app.protomaps.com/downloads/small_map
- c0nsumer 4y agoThanks, but that's the problem, the data downloads they offer are not zoomed enough. So I want to know how to go closer. This presumes you already have tiles.
- bdon 4y agoThe z0-14 tilesets from https://app.protomaps.com/downloads/small_map https://app.protomaps.com/downloads/small_map should be good enough for street-level mapping with overzooming. You can email me at brandon@protomaps.com if this doesn't fit your needs yet.
- c0nsumer 4y agoThanks, I'll give it a look, but I need a different style as well. This is the sort of thing I'm looking to completely self-host: https://trailmaps.app/ramba/ https://trailmaps.app/ramba/
- kylebarron 4y agoMost of these examples go up to zoom 10 or so because they cover a wide area. It's not prohibitive to increase that zoom in a small area because the total number of tiles will still be low. Also keep in mind that for vector data it's possible to "overzoom" and allow the client zoom levels to be higher than the physical data levels. In terms of self hosted maps for outdoors use, I have some open source repos from a few years ago that may help with that. [0] is a style based on the openmaptiles vector tile schema for outdoors purposes. I believe that readme has some overall instructions, plus other repos in the org are for making data. (Nowadays planetiler is probably the best way to make OSM vector tiles though) [0]: https://github.com/nst-guide/osm-liberty-topo https://github.com/nst-guide/osm-liberty-topo
- c0nsumer 4y agoThanks! I'll give that a look. I agree it's very reasonable to have highly zoomed small area stuff, I just seem to be missing the gap between the OSM data and the tiles. I'll give that a read, thank you!
- caspg 4y agoThis basemap looks awesome. Need to play with this and see how hard is to run it on my own. It would totally fit nicely with my website https://travelermap.net https://travelermap.net.
- breunigs 4y agoYou might want to peek at https://github.com/headwaymaps/headway https://github.com/headwaymaps/headway . I have never used it myself, but it at least shows how to integrate the different pieces. The individual software components often have alternative with a similar scope. So if you don't like a choice headwaymaps made, browse around. The data sources are mostly "unique", i.e. everybody downloads from the pages (Geofabrik, Who's On First, etc), so not much to gain here. Editing styles has some alternatives, but the OpenSource editors are far away from the quality of the Mapbox editor. Maputnik or editing the 1000+ SLOC JSON by hand are the way to go, imo. Personally I use GeoFabrik to download OSM extracts → osmconvert to extract the smaller bounding box I am interested in → tilemaker to render vector tiles to individual .pbf files I can serve like it's 1999. The bounding box extract is not necessary, but it's much faster if you need to tweak things in tilemaker. Both tilemaker and osmconvert are packaged for at least Debian out of the box, so setup is easy enough. Rendering a decently sized metro area takes < 30mins with this from scratch of compute, < 5min with the bounding box extract. Note that adding icons (sprites) or fonts is extra work that comes on top. And while the tools themselves are great, there's still a lot of gluing/plumbing/fitting things together that you'll need to do. If headwaymaps works for you, it's probably the easiest choice.
- jmnicolas 4y agoI'm not sure of exactly what you need but a few years ago I toyed with my own OSM server. There was a tuto on a site named linuxbabe to install everything on Ubuntu. FWIW I generated all the tiles up to zoom 18 for France (which is the best mapped country as far as OSM go), it represented about 300 GB of data. You will need a big SSD, 16 GB ram for a big country, 32 GB for Europe, I think you can do the world with 64 GB but ofc more is always better. Count a few weeks to generate everything, probably less if you have a very good computer / server (mine was quite old, 2012ish I think).
- c0nsumer 4y agoThanks! I'm talking something /much/ smaller. Probably... 25km^2 at most. It, thankfully, won't be nearly that complicated.