Live data from Hacker News

A new way to make maps with OpenStreetMap

protomaps.com

21–30 of 102 posts

Re: A new way to make maps with OpenStreetMap

#21
post #2

> Existing formats like MBTiles are based on SQLite. This limits the ability to self-host maps to those confident running a server in production. Is that comical, or is there a deeper meaning I don't understand?

I read it as: existing solutions are too hard for simple people with less technical skill.

[deleted]

Re: A new way to make maps with OpenStreetMap

#23
post #7
post #2

> Existing formats like MBTiles are based on SQLite. This limits the ability to self-host maps to those confident running a server in production. Is that comical, or is there a deeper meaning I don't understand?

AFAIU MBTiles still need some application server to transform x/y/z into proper tiles to be served, which means provisioning a server, scaling it, maintaning it, and all the fun that comes with it; PMTiles is a simple blob that the frontend will download (only desired parts) and render directly in the browser.

You can use tippecanoe (https://github.com/mapbox/tippecanoe) with the --output-to-directory flag to output the individual .pbf tiles instead of a single MBTiles file. These tiles can then be hosted on something like s3 and your map-rendering client can query the necessary tiles, no server required.

Re: A new way to make maps with OpenStreetMap

#24

Super excited for your project. I have been using map tiles from Mapbox, MapTiler, OSM Buildings for my project and am coming to the point that I need to merge elevation data with building height data in order to cast realistic shadows across the earth. Unfortunately elevation data and building data come from two different tile sets from two different tile providers and it's a lot of download/processing overhead to m…

I’ve had success using tippecanoe to generate mvt tiles from geojson sources, which in turn came from various sources (osm and otherwise) from QGIS. I didn’t look into this project too much but it appears to be bundling mvt tiles into a single file? Either way, straight up mvt tiles are easy to generate and can be easily hosted statically on any web server/s3 bucket/cdn.

Re: A new way to make maps with OpenStreetMap

#25
post #17

You can already host vector tiles within S3 that work with Mapbox and other libraries. Not really sure what problem this is trying to solve.

Is this a simple process? Can you share a link to how this is done, I'm interested. I always assumed it was fairly complicated.

At least for simple GeoJSON you can use tippecanoe (https://github.com/mapbox/tippecanoe) with --output-to-directory to get individual .pbf tiles. Most rendering clients will have some scheme where you can provide a root url and then the tiles need to be stored in some defined structure beneath that (e.g. root/z/x/y.pbf)

(posted something similar to another response)

Re: A new way to make maps with OpenStreetMap

#26
post #17

You can already host vector tiles within S3 that work with Mapbox and other libraries. Not really sure what problem this is trying to solve.

Is this a simple process? Can you share a link to how this is done, I'm interested. I always assumed it was fairly complicated.

I’ve used the utility tippecanoe with success to generate vector tiles from geojson sources and am hosting them statically. It’s been overall pretty easy. The only gotcha I can remember is I needed to pass the no compression flag since mapbox gl can’t read compressed tiles (and the file host will gzip everything anyways).

Re: A new way to make maps with OpenStreetMap

#27

Super excited for your project. I have been using map tiles from Mapbox, MapTiler, OSM Buildings for my project and am coming to the point that I need to merge elevation data with building height data in order to cast realistic shadows across the earth. Unfortunately elevation data and building data come from two different tile sets from two different tile providers and it's a lot of download/processing overhead to m…

I’ve had success using tippecanoe to generate mvt tiles from geojson sources, which in turn came from various sources (osm and otherwise) from QGIS. I didn’t look into this project too much but it appears to be bundling mvt tiles into a single file? Either way, straight up mvt tiles are easy to generate and can be easily hosted statically on any web server/s3 bucket/cdn.

Thanks for sharing your experience. Much of this vocabulary is still foreign to me but you've given me some the relevant keywords to Google.

One of the main challenges when entering a highly specialised field is finding the vocabulary to express yourself.

Re: A new way to make maps with OpenStreetMap

#28

Super excited for your project. I have been using map tiles from Mapbox, MapTiler, OSM Buildings for my project and am coming to the point that I need to merge elevation data with building height data in order to cast realistic shadows across the earth. Unfortunately elevation data and building data come from two different tile sets from two different tile providers and it's a lot of download/processing overhead to m…

What kind of project can this tool be used for?

Re: A new way to make maps with OpenStreetMap

#29

Earlier quoted context omitted.

I’ve had success using tippecanoe to generate mvt tiles from geojson sources, which in turn came from various sources (osm and otherwise) from QGIS. I didn’t look into this project too much but it appears to be bundling mvt tiles into a single file? Either way, straight up mvt tiles are easy to generate and can be easily hosted statically on any web server/s3 bucket/cdn.

Thanks for sharing your experience. Much of this vocabulary is still foreign to me but you've given me some the relevant keywords to Google. One of the main challenges when entering a highly specialised field is finding the vocabulary to express yourself.

I'd also recommend having a look at https://openmaptiles.org/. They have workflows and editors for working with MVT and Maplibre. You can combine a base map from maplibre with other sources using Openlayers [0]

[0]: https://openlayers.org/en/latest/examples/mapbox-layer.html

Re: A new way to make maps with OpenStreetMap

#30

You can already host vector tiles within S3 that work with Mapbox and other libraries. Not really sure what problem this is trying to solve.

The typical way to build and distribute Mapbox vector tiles has been by packing them into a sqlite database with individual rows for each Z/X/Y quad tree coordinate. This is what tools like tippecanoe typically produce.

The problem with this is it still requires a running server process colocated with that sqlite db in order to service requests for individual tiles, like what you'll receive from a client-side mapping library.

This project has a lot of different parts, but one of them is a spec for serving this type of data at low latency without a server by combining a custom packing format with S3 range-get requests to read individual tiles direct from blob storage. So that is certainly interesting for this kind of use-case.

Post reply on HN