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


JavaScript ArcGIS AuthoringInfoVisualVariable.clone用法及代码示例

基本信息

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

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

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

类: esri/renderers/support/AuthoringInfoVisualVariable

继承: AuthoringInfoVisualVariable > Accessor

自从:用于 JavaScript 4.6 的 ArcGIS API

用法说明

AuthoringInfoVisualVariable.clone函数(或属性)的定义如下:


创建实例的深层克隆。

返回:

类型 说明
AuthoringInfoVisualVariable 调用此方法的对象的深层克隆。

例子:

// Creates a deep clone of the authoring info visual variable
let authInfoVV = layer.renderer.authoringInfo.visualVariables.find(function(vv){
  return vv.type === "color";
}).clone();

相关用法


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