Mapping a Cloud Optimized Geotiff raster layer in Mapbox GL JS
I think I use a raster source, the source data need to be tiled. the URL would be like .../{z}/{x}/{y}.tif
.
But I don't know how to make above URL. how to make url??
I'm not exactly sure what you're asking. If you're asking "how do I turn this GeoTIFF into a tiled raster source", two options are:
mbtiles
, then host the .mbtiles
file somewhere (either on Mapbox, CloudTiler, or your own hosting.)In the latter case, that would look like:
gdal_translate myfile.tif mytiles.mbtiles