-
renderingRule
RasterFunction
autocast
指定应如何呈现所请求图像的规则。应用渲染规则时,服务器返回更新的服务信息,该信息反映了渲染规则定义的自定义处理。
例子:
const stretchFunction = new RasterFunction({ functionName: "Stretch", functionArguments: { StretchType: 5, // (0 = None, 3 = StandardDeviation, 4 = Histogram Equalization, 5 = MinMax, 6 = PercentClip, 9 = Sigmoid) Min: 0, Max: 255, Raster: "$$" // $$(default) refers to the entire image service, $2 refers to the second image of the image service }, outputPixelType: "u8" }); const colorFunction = new RasterFunction({ functionName: "Colormap", functionArguments: { ColorrampName: "Temperature", // other examples: "Slope", "Surface", "Blue Bright".... Raster: stretchFunction // chaining multiple rasterfunctions } }); const imageryLayer = new ImageryLayer({ url: "https://sampleserver6.arcgisonline.com/arcgis/rest/services/ScientificData/SeaTemperature/ImageServer" }); imageryLayer.renderingRule = colorFunction; // Set rendering rule to the raster function
基本信息
以下是所在类或对象的基本信息。
AMD:
require(["esri/layers/ImageryLayer"], (ImageryLayer) => { /* code goes here */ });
ESM:
import ImageryLayer from "@arcgis/core/layers/ImageryLayer";
类:
esri/layers/ImageryLayer
继承: ImageryLayer > Layer > Accessor
自从:用于 JavaScript 4.0 的 ArcGIS API
用法说明
ImageryLayer.renderingRule
函数(或属性)的定义如下:
相关用法
- JavaScript ArcGIS ImageryLayer.redraw用法及代码示例
- JavaScript ArcGIS ImageryLayer.refreshInterval用法及代码示例
- JavaScript ArcGIS ImageryLayer.rasterFields用法及代码示例
- JavaScript ArcGIS ImageryLayer.minScale用法及代码示例
- JavaScript ArcGIS ImageryLayer.timeInfo用法及代码示例
- JavaScript ArcGIS ImageryLayer.customParameters用法及代码示例
- JavaScript ArcGIS ImageryLayer.portalItem用法及代码示例
- JavaScript ArcGIS ImageryLayer.maxScale用法及代码示例
- JavaScript ArcGIS ImageryLayer.fullExtent用法及代码示例
- JavaScript ArcGIS ImageryLayer.pixelFilter用法及代码示例
- JavaScript ArcGIS ImageryLayer.queryRasterCount用法及代码示例
- JavaScript ArcGIS ImageryLayer.opacity用法及代码示例
- JavaScript ArcGIS ImageryLayer.timeOffset用法及代码示例
- JavaScript ArcGIS ImageryLayer.getSamples用法及代码示例
- JavaScript ArcGIS ImageryLayer.computeHistograms用法及代码示例
- JavaScript ArcGIS ImageryLayer.popupTemplate用法及代码示例
- JavaScript ArcGIS ImageryLayer.on用法及代码示例
- JavaScript ArcGIS ImageryLayer.url用法及代码示例
- JavaScript ArcGIS ImageryLayer.when用法及代码示例
- JavaScript ArcGIS ImageryLayer.effect用法及代码示例
- JavaScript ArcGIS ImageryLayer.getCatalogItemICSInfo用法及代码示例
- JavaScript ArcGIS ImageryLayer.timeExtent用法及代码示例
- JavaScript ArcGIS ImageryLayer.computeStatisticsHistograms用法及代码示例
- JavaScript ArcGIS ImageryLayer.useViewTime用法及代码示例
- JavaScript ArcGIS ImageryLayer.visible用法及代码示例
注:本文由纯净天空筛选整理自arcgis.com大神的英文原创作品 ImageryLayer.renderingRule。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。