首页 / 浏览问题 / WebGIS / 问题详情
leaflet加载本地tif问题
4EXP 2024年05月16日

使用的leaflet1.9    加载本地tif文件   

const renderer = L.LeafletGeotiff.plotty({
        displayMin: 0,
        displayMax: 30,
        clampLow: false,
        clampHigh: true,
        colorScale: "rainbow",
        arrowSize: 20,
    });
    L.leafletGeotiff("./lib/geotiff/wind_speed.tif", {
        band: 0,
        renderer: renderer,
    }).addTo(mymap);

控制台的请求tif和找的demo一样   但是项目中未看到叠加的图层

1个回答

您好!

leafletGeotiff方法是方leaflet-geotiff 插件提供,加载本地tif问题建议在插件github提issues即可https://github.com/stuartmatthews/leaflet-geotiff

对于您所遇到的问题,似乎已有issue,您可以参考一下:  https://github.com/stuartmatthews/leaflet-geotiff/issues/33

希望可以帮助到您!

1,442EXP 2024年05月16日
...