Closed shiweihappy closed 7 years ago
gdal2tiles generates tiles with TMS numbering scheme, so you need to set "scheme": "tms"
in the source options. Sorry for not having documentation for this property yet -- it'll be documented on https://www.mapbox.com/mapbox-gl-js/style-spec/#sources-raster in the next release.
@jfirebaugh , thank you very much!
hi, when i use mapbox-gl-js to render pyramid image and image not find correct.
https://github.com/shiweihappy/mapbox-gl-js-source
source
python gdal2tiles.py -r near -s EPSG:3857 -z "0-15" -w openlayers a4.tif ./a4/
xxxx/tiles/a4/xxxxx
nginx already set cors and other vector tiles use correctly
html render code: