-
visible
Boolean
指示图层在视图中是否可见。要查看是否可以使用此属性,请检查 MapImageLayer.capabilities 的
supportsSublayerVisibility
属性。例子:
let layer = new MapImageLayer({ url: "https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer", sublayers: [{ // this sublayer is visible by default id: 0 }, { // this sublayer will be added to the layer but not visible id: 1, visible: false }] // all other sublayers in the service are excluded from the layer });
基本信息
以下是所在类或对象的基本信息。
AMD:
require(["esri/layers/support/Sublayer"], (Sublayer) => { /* code goes here */ });
ESM:
import Sublayer from "@arcgis/core/layers/support/Sublayer";
类:
esri/layers/support/Sublayer
继承: Sublayer > Accessor
自从:用于 JavaScript 4.1 的 ArcGIS API
用法说明
Sublayer.visible
函数(或属性)的定义如下:
相关用法
- JavaScript ArcGIS Sublayer.JoinTableDataSource用法及代码示例
- JavaScript ArcGIS Sublayer.DynamicDataLayer用法及代码示例
- JavaScript ArcGIS Sublayer.opacity用法及代码示例
- JavaScript ArcGIS Sublayer.TableDataSource用法及代码示例
- JavaScript ArcGIS Sublayer.labelingInfo用法及代码示例
- JavaScript ArcGIS Sublayer.createFeatureLayer用法及代码示例
- JavaScript ArcGIS Sublayer.DynamicMapLayer用法及代码示例
- JavaScript ArcGIS Sublayer.title用法及代码示例
- JavaScript ArcGIS Sublayer.maxScale用法及代码示例
- JavaScript ArcGIS Sublayer.fields用法及代码示例
- JavaScript ArcGIS Sublayer.getFieldDomain用法及代码示例
- JavaScript ArcGIS Sublayer.labelsVisible用法及代码示例
- JavaScript ArcGIS Sublayer.fieldsIndex用法及代码示例
- JavaScript ArcGIS Sublayer.id用法及代码示例
- JavaScript ArcGIS Sublayer.definitionExpression用法及代码示例
- JavaScript ArcGIS Sublayer.when用法及代码示例
- JavaScript ArcGIS Sublayer.sublayers用法及代码示例
- JavaScript ArcGIS Sublayer.renderer用法及代码示例
- JavaScript ArcGIS Sublayer.minScale用法及代码示例
- JavaScript ArcGIS Sublayer.QueryTableDataSource用法及代码示例
- JavaScript ArcGIS Sublayer.RasterDataSource用法及代码示例
- JavaScript ArcGIS Sublayer.popupTemplate用法及代码示例
- JavaScript ArcGIS Sublayer.source用法及代码示例
- JavaScript ArcGIS Sublayer用法及代码示例
- JavaScript ArcGIS SubtypeSublayer.renderer用法及代码示例
注:本文由纯净天空筛选整理自arcgis.com大神的英文原创作品 Sublayer.visible。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。