Live data from Hacker News

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

github.com

61–70 of 84 posts

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

#61
post #58

Earlier quoted context omitted.

I've always wondered why people keep adding the s. Is it marketing because Google Map sounds like a spelling mistake (missing 's after Google) and we're noticing the effect of that other brand, or is there something about OpenStreetMap that makes it seem like a plural project? People don't say Linuxes, Signals, or Androids

Maybe because "Google Map" is actually called "Google Maps" (with the s)?

But where does the plural come from?

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

#62

Earlier quoted context omitted.

Still barely more detailed. The problem with the whole OSM ecosystem is that it expects a lot of domain knowledge of technologies, formats, tools, their relations and features, limitations, that is rarely explained well, or explanaitions are often terribly outdated. Feels much like the JavaScript Frontend frameworks for an outsider, it is a lot of effort to get to an overview and understanding, despite the concepts a…

Usually this is a sign of a project that isn't ready for a lot of attention. It's very brave and a little bit stupid to offer Open Source to the world (especially without a sustainability plan), if you put a lot of effort into 'marketing' at an early stage you've probably just overpromised to people not focused on that domain, won't be able to deliver, and will burn out, and it will become yet another abandoned proje…

I don't think this project is looking for a lot of attention.

It is more like a sample of cool stuff you can do.

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

#63
post #29

While useful, this still uses a server to process tile requests. Why not https://github.com/protomaps/PMTiles ? For the record, I am currently using maptiler over at https://citybik.es to serve tiles, and I am evaluating moving to serving static pmtiles on range requests to cut the middle man

Hosting maps of the entire planet in a single file doesn't seem practical. How do you keep it updated? PMTiles is good for small local maps, but I don't think they're meant for this scale.

For updates you're probably better off just regenerating and replacing the mbtiles file from scratch every time you want a new version, rather than trying to incrementally update it.

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

#64
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've used maptiler to do this. You can give it a boundary and zoom levels, along with a theme, and generate prerendered tiles that you can then server just using http. This has worked well with leaflet.

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

#65
post #37

Earlier quoted context omitted.

I assumed you would keep it updated the same way you do with mbtiles, but I see that mbtiles are an sqlite so I guess you can do atomic updates with mbtiles. Note though that there are many cases on which served tile information rarely changes. A lot of us are serving a once-downloaded mbtile file and are using this just to _not_ use a provider (mapbox, ...)

> Note though that there are many cases on which served tile information rarely changes. It depends on what you're doing, but outdated maps can be worse than no maps. On low zoom values that probably works fine, but new buildings and streets are built everyday all over the world.

everyday all over the world

If you need updates more often than once a week, you're going to have to take a different approach, since OSM only publish their database exports once a week. In that case you're going to have to use the OSM API to query their database for changes directly and it is only reasonable to track and manage continuous updates on a relatively small surface area.

All of this is of course ignoring the fact that there can be a time lag of anything from hours to decades between a house being built and that house being added to OSM.

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

#67

Earlier quoted context omitted.

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.

QGIS can make a tile pyramid of the current map/project at a specific set of bounds.

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

#68

Earlier quoted context omitted.

Maybe because "Google Map" is actually called "Google Maps" (with the s)?

But where does the plural come from?

Maybe the old days when you needed multiple maps folded up on paper instead of one zoomable super map containing the entire world.

Also "Google Map" sounds like a map of Google.

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

#70
post #29

While useful, this still uses a server to process tile requests. Why not https://github.com/protomaps/PMTiles ? For the record, I am currently using maptiler over at https://citybik.es to serve tiles, and I am evaluating moving to serving static pmtiles on range requests to cut the middle man

[deleted]
Post reply on HN