4 ms·
The maps on openstreetmap are nice of course. But most websites using openstreetmap don't get their maps from there but from companies like mapbox, maptiler, an
by jillesvangurp 3y ago
The maps on openstreetmap are nice of course. But most websites using openstreetmap don't get their maps from there but from companies like mapbox, maptiler, and others that typically already provided vector maps. Openstreetmap itself has been lagging behind a bit.
Protomaps, mentioned elsewhere in this thread, is awesome for self hosting vector maps. The way it works is that you upload a single large pbf (protobuf) file with all map content and then use lambda functions to extract vector tiles from there. Put a CDN in front of it and you have cheap map hosting. Amazing stuff. I met Brandon Liu, the person that built this, some time ago at a meetup. Well worth checking out his stuff.
There's also https://demo.f4map.com/#lat=47.5933049&lon=12.1748491&zoom=18&camera.phi=119.462 https://demo.f4map.com/#lat=47.5933049&lon=12.1748491&zoom=1..., which is a 3D rendering engine filled with openstreetmap data. Pretty nice stuff and be sure to fiddle with the options to change the time of day, turn on the moving ships, etc.
- hokkos 3y agoyou don't need a lambda function if it can use the range header to get what it needs, also it is an aggregated pbf on a pyramid of space filling hilbert curve.
- globular-toast 3y agoIndeed, you can use pmtiles files on a completely static site which is the main benefit for me. I wrote it up on my blog: https://blog.gpkb.org/posts/hugo-static-site-maps/ https://blog.gpkb.org/posts/hugo-static-site-maps/ I have since started making my own pmtiles from pbf extracts using planetiler, though. I should add that as an addendum...
- jillesvangurp 3y agoWe're actually looking into using hugo for our main website currently. However, running pm-tiles at build/deploy time for the whole world is a bit expensive and time consuming. The point of using lambda functions is to run it on demand for just the tiles that are needed and then cache the results via a CDN.
- globular-toast 3y agoHmm... I don't really understand what pmtiles adds in that setup. I thought you'd need to have a pmtiles basemap in order to efficiently extract tiles in a Lambda function. Or are you generating much small pmtiles files from the pbf on demand? Do you need an initial sweep of the whole world to make this performant on first hit of each region?
- RamblingCTO 3y agoThis thing is awesome! In the city I live in (outside the US!) you have special renderings for sky scrapers and even a crane where one is being built right now: https://demo.f4map.com/#lat=50.1134349&lon=8.6709344&zoom=19 https://demo.f4map.com/#lat=50.1134349&lon=8.6709344&zoom=19 Awesome! Although it's lagging behind. Four is almost finished but you only see cranes here: https://demo.f4map.com/#lat=50.1121791&lon=8.6738090&zoom=18&camera.theta=55.6&camera.phi=76.203 https://demo.f4map.com/#lat=50.1121791&lon=8.6738090&zoom=18...
- habi 3y agoThis is because no-one mapped the outline of the `building=construction` yet. You can do so if you know more, go to https://www.openstreetmap.org/way/592118388 https://www.openstreetmap.org/way/592118388 and click the 'Edit' button. The currently available 'best' aerial imagery shows the foundations being built.