Re:A new way to make maps with OpenStreetMap
by xrd on Friday April 23, 2021 @05:14PM
(#26919283)
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.
[ Parent
| on HN ]
Re:A new way to make maps with OpenStreetMap
by gorbypark on Friday April 23, 2021 @05:41PM
(#26919550)
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
by d-yakovlev on Friday April 23, 2021 @07:30PM
(#26920492)
What issues have you run into with gzipped tiles? I store a lot of gzipped individual tiles for use in Mapbox GL maps on S3 with no problem - the only necessary change was making sure that S3 was emitting `content-encoding` headers.
Re:A new way to make maps with OpenStreetMap
by gorbypark on Saturday April 24, 2021 @05:54AM
(#26923683)
I couldn’t get the tiles to show up at all when they were compressed by tippecanoe. I’m not sure what the problems is, to be honest.
Re:A new way to make maps with OpenStreetMap
by alohec on Friday April 23, 2021 @05:37PM
(#26919516)
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)