TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Simple Mbtiles Server – Self-host the entire planet of OpenStreetMaps

203 pointsby markuman1239 months ago

22 comments

xrd9 months ago
Does anyone know if there is a way to host just a few of the tiles in a static way? For example, if I wanted to build a web page which just shows a map at zoom level 6 for a lat/lng point, and then go to zoom level 13. That would require a tiny subset of tiles; is there a simple way to add the tiles plus the JS code in a static way so no external downloads were necessary?
评论 #41226786 未加载
评论 #41225433 未加载
评论 #41224308 未加载
评论 #41224169 未加载
评论 #41224265 未加载
jakepage919 months ago
Image, screenshot, Gifs, anything really so I can see what it looks like before allocating 90GBS would be nice.
评论 #41223223 未加载
kh_hk9 months ago
While useful, this still uses a server to process tile requests. Why not <a href="https:&#x2F;&#x2F;github.com&#x2F;protomaps&#x2F;PMTiles">https:&#x2F;&#x2F;github.com&#x2F;protomaps&#x2F;PMTiles</a> ?<p>For the record, I am currently using maptiler over at <a href="https:&#x2F;&#x2F;citybik.es" rel="nofollow">https:&#x2F;&#x2F;citybik.es</a> to serve tiles, and I am evaluating moving to serving static pmtiles on range requests to cut the middle man
评论 #41223701 未加载
评论 #41223869 未加载
评论 #41226198 未加载
评论 #41226224 未加载
dschep9 months ago
without a means to update the map, this isn&#x27;t a breakthrough. I&#x27;d rather use protomaps[0](which has regular builds, from a better-known source) with caddy.<p>[0] <a href="https:&#x2F;&#x2F;protomaps.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;protomaps.com&#x2F;</a>
andrewshadura9 months ago
It&#x27;s OpenStreetMap, without the &quot;s&quot; at the end, please fix the title.
elashri9 months ago
Entire planet maps&#x2F;topology I guess. But my mind had much much more ambitious first thought.
IgorPartola9 months ago
I remember when I worked on a project in 2010-2012 that relied on OSM it took days to set up a part of the system, the documentation was mostly in German or if you were lucky in an arcane bash script, and which part did what required a deep understanding of the entire thing. I don’t need this anymore but this is really nice.
gregoryw39 months ago
Tangentially related, does anyone know of an open source 3D terrain system?<p>I’ve been thinking of making a native map and globe program similar to Google earth to embed inside a dashboard (visually similar to kerbal space program).<p>So far I was thinking about just using ArcGIS (or something else) and taking in free Lidar data and imposing the depth to satellite or OSM tiles then rendering them as OBJs in OpenGL (or maybe a full 3d engine like unity). This unfortunately wouldn’t be an automatic process as lidar data is taxing to process in real time, especially for a SBC.<p>I do see that there are some 3D tiles sets out there but I don’t see where I can pull them from nor how it compares to the lidar data.<p>However, the main goal is a 3D terrain viewer in an offline native program.
评论 #41226904 未加载
mosselman9 months ago
So I assume if I run this I can aim something like leaflet at it for the map tiles?<p>Any information you have on how production-ready this is would be nice. Things such as performance, stability, max expected clients with a small vps or something.
评论 #41223678 未加载
trojan139 months ago
Where is my .exe file to run the entire planet in ~30 minutes?<p>To add some value to my joke comment: I would assume this is running &quot;Open Street Map&quot; locally on a webserver.
leighleighleigh9 months ago
A lotta negativity in here... My immediate reaction was &quot;fuck yeah I always wanted to host OSM but I couldn&#x27;t figure out how last time&quot;. thanks dude :)
808essa9 months ago
explanation of what this is would be nice
评论 #41224369 未加载
Borg39 months ago
Hmm, Im not really sure why MBTiles are popular? They seems to be cache unfriendly. Good old tiles via &#x2F;{x}&#x2F;{y}&#x2F;{z}.png seems to be better. And you can slap web cache in front.<p>Hosting those is super simple. The problem I have is how to generate them efficently w&#x2F;o big resources.
simlevesque9 months ago
I&#x27;d like to find a cheap way to self-host a stripped version of Nominatim planet. There&#x27;s lots of data that I don&#x27;t really need to deal with and I don&#x27;t want to have to use 32&#x2F;64gb of ram.
fareesh9 months ago
Looks like every single &quot;tile&quot; image from OpenStreetMaps (OSM) a service that hosts them so that you can pass the same OSM parameters to the URL and get maps
sbarre9 months ago
Same feedback as everyone else: You fell into the trap of assuming that everyone else understands this topic&#x2F;project&#x2F;thing that you&#x27;re deeply familiar with because you&#x27;ve been living it for so long.<p>Not everyone knows what &quot;OSM&quot; is.<p>Even a 2-3 sentence paragraph in your TL;DR that explains (a) what this is and (b) why people should care or want this, would be immensely helpful.
评论 #41224327 未加载
评论 #41223440 未加载
lopkeny12ko9 months ago
[flagged]
评论 #41225560 未加载
评论 #41231327 未加载
archerx9 months ago
I wish the readme explained what this project actually was instead of the incredibly vague and unhelpful &quot;self host the entire planet&quot;.
评论 #41222817 未加载
评论 #41222744 未加载
评论 #41223560 未加载
评论 #41223447 未加载
评论 #41223441 未加载
评论 #41223424 未加载
dsr_9 months ago
OSM is OpenStreetMaps. This appears to be a server to locally mirror the ~90GB global tile set and serve them with your choice of style to OSM client applications.
评论 #41224041 未加载
robertlagrant9 months ago
Because various comments are upset that this isn&#x27;t actually self-hosting a planet simulation[0] or that the readme isn&#x27;t good enough - this is really cool. Premade tile server for OpenStreetMaps is lovely.<p>[0] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=41223091">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=41223091</a>
hk__29 months ago
Why copy the README as a gist instead of posting a link to the repo? <a href="https:&#x2F;&#x2F;github.com&#x2F;markuman&#x2F;sms?tab=readme-ov-file">https:&#x2F;&#x2F;github.com&#x2F;markuman&#x2F;sms?tab=readme-ov-file</a>
hakube9 months ago
It would be great if it&#x27;s an actual planet with its own ecosystem. This is just a tile map