2 ms·
Look into Planetiler [1] (which OP uses for tile generation). It supports downloading regions that are listed on Geofabrik [2] and converting them to mbtiles or
by puddingvlaai 2y ago
Look into Planetiler [1] (which OP uses for tile generation). It supports downloading regions that are listed on Geofabrik [2] and converting them to mbtiles or pmtiles. Geofabrik has separate extracts for all US states, for example. If you need to extract an even smaller area from that result, GDAL has support for mbtiles so you could use gdalwarp [3] to extract a new mbtiles file out of it using bounds.
Another option is to use the extract functionality in pmtiles [4] to extract your area of interest from their daily full-planet pmtiles builds. You can then statically host that file and use that in your client with one of their client libraries.
[1] https://github.com/onthegomap/planetiler https://github.com/onthegomap/planetiler
[2] https://download.geofabrik.de/ https://download.geofabrik.de/
[3] https://gdal.org/en/latest/programs/gdalwarp.html https://gdal.org/en/latest/programs/gdalwarp.html
[4] https://docs.protomaps.com/pmtiles/cli#extract https://docs.protomaps.com/pmtiles/cli#extract