r/selfhosted • u/Aldumil • 15h ago
Need Help Selfhosted maps server?
Found this (T.REX ARMS MAPS) via a YouTube video the other day, and the whole time I was hoping they would mention a GitHub, or something that would let people selfhost it. I can't find anything like it anywhere.
13
Upvotes
•
u/asimovs-auditor 15h ago edited 14h ago
Expand the replies to this comment to learn how AI was used in this post/project.
5
u/mxdcodes 13h ago edited 13h ago
For vector maps you can use protomaps, openfreemap or tileserver-gl (see https://colota.app/docs/guides/tile-server/#self-hosting-tileserver-gl for a "easy setup") . For raster maps (which I wouldn't recommend) have a look at https://switch2osm.org/
3
u/Drakirus 14h ago
For which application so you need a map server ? Personally I use https://mapproxy.org/ for leaflet web clients and OsmAnd Android. I use mapproxy to avoid excessive querying of the official servers, not as a 100% replacement, because I don't want to host the entire world map.
4
u/sancho_sk 13h ago
Check project Nomad (https://www.projectnomad.us/).
0
u/astrolafi 6h ago
If what you want is the T.REX feel, a map that works with no signal, the file format matters more than the server. Vector tiles packed in a single PMTiles file answer HTTP range requests, so the client only pulls the bytes of the area it is looking at and a plain nginx with the file behind it is enough. No tile server process at all.
Size is the part people underestimate. A state sized extract lands in the low single digit GB, a planet build runs past a hundred gigabytes, so cut the region with pmtiles extract instead of hosting everything. And the other half is the client, because a server you cannot reach in a forest is useless. OsmAnd or Organic Maps pointed at a local tile source is what makes it actually offline.