之前有过通过arcgis for js 通过加载arcgis server 的动态空间的方式来加载arcgis
现在找到一种方式通过leaflet-geotiff-2-master 来进行加载 具体效果如下

上面加载的tif可以渲染不同的颜色,通过更改他的配置参数
const options = {
// Optional. Minimum values to plot.
displayMin: 0,
// Optional. Maximum values to plot.
displayMax: 1,
// Optional. If true values outside `displayMin` to `displayMax` will be rendered as if they were valid values.
clampLow: true,
clampHigh: true,
// Optional. Plotty color scale used to render the image.
colorScale: "viridis",
};
const renderer = L.LeafletGeotiff.plotty(options);
后对代码进行了一定量的修改,以及测试文件补充
139

被折叠的 条评论
为什么被折叠?



