当前位置: 首页>>代码示例 >>用法及示例精选 >>正文


JavaScript ArcGIS new AttributeColorInfo用法及代码示例


基本信息

以下是所在类或对象的基本信息。

AMD: require(["esri/renderers/support/AttributeColorInfo"], (AttributeColorInfo) => { /* code goes here */ });

ESM: import AttributeColorInfo from "@arcgis/core/renderers/support/AttributeColorInfo";

类: esri/renderers/support/AttributeColorInfo

继承: AttributeColorInfo > Accessor

自从:用于 JavaScript 4.11 的 ArcGIS API

用法说明

new AttributeColorInfo函数(或属性)的定义如下:

new AttributeColorInfo (properties)


参数:

类型说明
properties Object
可选的

请参阅属性以获取可以传递到构造函数中的所有属性的列表。

例子:

// Typical usage in a dot density renderer
renderer.attributes = [{
  field: "Population",
  color: "black"
}];

相关用法


注:本文由纯净天空筛选整理自arcgis.com大神的英文原创作品 new AttributeColorInfo。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。