-
DynamicMapLayer
動態Map圖層是指在啟用了動態圖層的Map服務中發布的圖層。此圖層類型可用於創建指向同一服務圖層的多個子圖層,但分配有不同的定義表達式、渲染器和其他屬性。
-
類型 說明 type String此值始終為
map-layer
,並在設置mapLayerId
屬性時推斷。值永遠是"map-layer".
mapLayerId Number服務子層的id。
gdbVersion String用於指定 GDB 版本的可選屬性。
屬性:
例子:
// Creates two sublayers that point to the same map service layer. // Each layer presents different features in the data using // definition expressions and renderers. let mapImageLayer = new MapImageLayer({ sublayers: [{ id: 10, definitionExpression: "POP < 50000", renderer: { type: "class-breaks" // autocasts as new ClassBreaksRenderer() // set renderer properties here }, source: { type: "map-layer", mapLayerId: 0 } }, { id: 11, definitionExpression: "GRADUATED_HS > 0.449", renderer: { type: "class-breaks" // autocasts as new ClassBreaksRenderer() // set renderer properties here }, source: { type: "map-layer", mapLayerId: 0 } }] });
-
基本信息
以下是所在類或對象的基本信息。
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.DynamicMapLayer
函數(或屬性)的定義如下:
相關用法
- JavaScript ArcGIS Sublayer.DynamicDataLayer用法及代碼示例
- JavaScript ArcGIS Sublayer.JoinTableDataSource用法及代碼示例
- JavaScript ArcGIS Sublayer.opacity用法及代碼示例
- JavaScript ArcGIS Sublayer.TableDataSource用法及代碼示例
- JavaScript ArcGIS Sublayer.visible用法及代碼示例
- JavaScript ArcGIS Sublayer.labelingInfo用法及代碼示例
- JavaScript ArcGIS Sublayer.createFeatureLayer用法及代碼示例
- 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.DynamicMapLayer。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。