4 ms·
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.
by xrd 6y ago
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.
- alohec 6y agoAt least for simple GeoJSON you can use tippecanoe (https://github.com/mapbox/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)
- gorbypark 6y agoI’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).
- d-yakovlev 6y agoWhat 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.
- gorbypark 6y agoI 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.