针对图层配置
VectorTiledLayer
-
{
-
"LayerId": "矢量切片",
-
"LayerType": "VectorTiledLayer",
-
"ServerAddr": "https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer",
-
"DefineInfo": {
-
"Opacity": 0.5,
-
"Priority": 5,
-
"SubPriority": 15,
-
"QueryFlag": true,
-
"LoadFlag": false
-
}
-
}
- MapImageLayer
-
{
-
"LayerId": "要素图层",
-
"LayerType": "MapImageLayer",
-
"ServerAddr": "https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer/0",
-
"DefineInfo": {
-
"Opacity": 0.8,
-
"Priority": 5,
-
"SubPriority": 10,
-
"QueryFlag": true,
-
"LoadFlag": false
-
}
-
}
- FeatureLayer
```json
{
"LayerId": "要素图层",
"LayerType": "FeatureLayer",
"ServerAddr": "https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer/0",
"DefineInfo": {
"Opacity": 0.5,
"Priority": 5,
"SubPriority": 15,
"QueryFlag": true,
"LoadFlag": false
}
}
更多参考 https://xiaozhuanlan.com/topic/3952078164