基本信息
以下是所在類或對象的基本信息。
AMD:
require(["esri/layers/support/SubtypeSublayer"], (SubtypeSublayer) => { /* code goes here */ });
ESM:
import SubtypeSublayer from "@arcgis/core/layers/support/SubtypeSublayer";
類:
esri/layers/support/SubtypeSublayer
自從:用於 JavaScript 4.20 的 ArcGIS API
用法說明
表示 SubtypeGroupLayer 中的子層。每個SubtypeSublayer 不是一個獨立的服務,而是每個子圖層對應於源要素服務中的一個子類型。此模式允許每個子圖層相互獨立地進行符號化,而無需每個子圖層提供單獨的服務。這種關係不同於MapImageLayer 與其子層之間的關係。在 MapImageLayer 的情況下,它的子圖層代表單獨的Map服務。
SubtypeSublayers 由其唯一的子類型代碼標識。您可以在初始化SubtypeGroupLayer時配置每個子層的屬性
例子:
// Only includes one SubtypeSublayer from the SubtypeGroupLayer
let layer = new SuptypeGroupLayer({
url: "https://sampleserver7.arcgisonline.com/server/rest/services/UtilityNetwork/NapervilleElectric/FeatureServer/0",
sublayers: [{ // autocasts as a Collection of SubtypeSublayers
subtypeCode: 14,
visible: true,
renderer: {
type: "simple", // autocasts as a SimpleRenderer()
symbol: {
type: "simple-marker", // autocasts as a SimpleMarkerSymbol()
style: "circle",
color: [120, 120, 120, 255],
size: 6
}
}
}]
});
相關用法
- JavaScript ArcGIS SubtypeSublayer.renderer用法及代碼示例
- JavaScript ArcGIS SubtypeSublayer.labelingInfo用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.on用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.sublayers用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.timeOffset用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.fields用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.maxScale用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer layerview-create-error事件用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.layerId用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer refresh事件用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.queryFeatureCount用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.queryAttachments用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.timeExtent用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.objectIdField用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer layerview-create事件用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.queryExtent用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.fieldsIndex用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.getFieldDomain用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.visible用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.refreshInterval用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.createQuery用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer edits事件用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.fullExtent用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.when用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.addAttachment用法及代碼示例
注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 SubtypeSublayer。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。