Live data from Hacker News

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

github.com

41–50 of 84 posts

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

#42
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?

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

#43

Image, screenshot, Gifs, anything really so I can see what it looks like before allocating 90GBS would be nice.

90 is okay, when I did years ago I was on 300+ but it doesn't really state which zoom level is available.

It seems to be 0-14 according to the GitHub repo.

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

#44
post #32

Earlier quoted context omitted.

90 is okay, when I did years ago I was on 300+ but it doesn't really state which zoom level is available.

Is there any explanation why it has decreased in size?

There are two ways to store map tile data like OSM. One is as pre-rendered raster tiles (256x256 png images) and the other is as tiles of vector data that get rendered either on the fly by dedicate rendering middleware or rendered client side by the browser. Vector tiles are anywhere between 20-50% smaller that corresponding raster tiles. Raster tiles was the standard way of doing web maps up until a few years ago, when client side rendering in the browser became feasible and now most people use vector tiles.

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

#45
post #42

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?

You can simply pre-render them and store the png tiles in a folder. The folder structure and naming has to be such that e.g. leaflet understands it. Did this for a research demo here: https://map2seq.schumann.pub/nllni/demo/

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

#46
post #2

I wish the readme explained what this project actually was instead of the incredibly vague and unhelpful "self host the entire planet".

> incredibly vague and unhelpful As is very common with projects on Github. They should have a paragraph at the start explaining simply what they do.

They 'could' have a paragraph at the beginning to help potential users understand the purpose of the project.

It might seem inconsequential, but maintainers often deal with a lot of angry entitled users and it could be helpful to stay away from language that implies that the people giving away their code for free (and for fun) have any obligation to provide anyone anything.

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

#47
post #42

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?

I had success with Protomaps (https://protomaps.com/).

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

#48
post #42

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?

Look at https://protomaps.com/ - You can have a single file in a that represents the vector data for a region at multiple zoom levels. There used to be a really nice UI where you could just select a region. They've changed things around a bit since then so I'm not sure how it works now.

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

#49
post #42

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?

You can simply pre-render them and store the png tiles in a folder. The folder structure and naming has to be such that e.g. leaflet understands it. Did this for a research demo here: https://map2seq.schumann.pub/nllni/demo/

Is there actually a simple way to pre-render? AFAIK it's a lot of work and learning at least if you're coming from scratch.

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

#50
post #12

Same feedback as everyone else: You fell into the trap of assuming that everyone else understands this topic/project/thing that you're deeply familiar with because you've been living it for so long. Not everyone knows what "OSM" is. 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.

On the other hand if you don't know what "OSM" is, then you probably don't need this, and probably don't need to care.
Post reply on HN