- URL:https://<diagram-url>/dynamicLayers
- Version Introduced: 10.6
Description
The Dynamic Layers resource describes the sublayers under the diagram layer. It returns an array of JSON object layers with their SQL query. Each JSON object layer item in the array provides the following information:
- id—The ID of the layer
- source—The layer source internal information:
- type—"workspaceLayer"
- workspaceID—"Diagram"
- layerID—The internal layer ID
- definitionExpression—The filtering expression based on the diagram GUID
License:
The active portal account must be assigned a license with the ArcGIS Advanced Editing user type extension to use this resource.Request parameters
Parameter | Details |
---|---|
gdbVersion | Description: The name of the geodatabase version. Syntax: gdbVersion=<version> Example: gdbVersion=ABV1 |
sessionId | Description: The token (guid) used to lock the version. Syntax: sessionId=<guid> Example: sessionId=44G259DE-87B0-407D-8F2E-DCB7665DD0F0 |
allLayers | Added in 10.8.1 Description: The mode to use to cache the dynamic layers for the diagram. When allLayers=true, all layers are cached whether they contain diagram features or not. When allLayers=false, only the layers that contain diagram features are cached. Syntax: allLayers=<true |false> Example: allLayers=false |
f | Description: The response format. The default response format is html. Values: <html | json> |
Example usage
https://myserver.esri.com/server/rest/services/Naperville/NetworkDiagramServer/diagrams/Basic_RMT003/dynamicLayers?allLayers=false&f=pjson
JSON Response syntax
{
"dynamicLayers": [
{
"id": < layerID1 >,
"source": {
"type": "workspaceLayer",
"workspaceId": "Diagram",
"layerId": "< internalLayerID1 >"
}
"definitionExpression": < DiagramGUIDFilteringExpression >"
},
...,
{
"id": < layerIDN >,
"source": {
"type": "workspaceLayer",
"workspaceId": "Diagram",
"layerId": "< internalLayerIDN >"
}
"definitionExpression": < DiagramGUIDFilteringExpression >"
}
]
}
JSON Response example
{
"dynamicLayers": [
{
"id": 101,
"source": {
"type": "workspaceLayer",
"workspaceId": "Diagram",
"layerId": "0_ElectricDistributionAssembly"
},
"definitionExpression": "MAP.UN_6_Junctions.DIAGRAMGUID = '{FDA323D6-4868-4375-9773-06AFF80B2F02}'"
},
{
"id": 102,
"source": {
"type": "workspaceLayer",
"workspaceId": "Diagram",
"layerId": "0_ElectricDistributionDevice"
},
"definitionExpression": "MAP.UN_6_Junctions.DIAGRAMGUID = '{FDA323D6-4868-4375-9773-06AFF80B2F02}'"
},
{
"id": 103,
"source": {
"type": "workspaceLayer",
"workspaceId": "Diagram",
"layerId": "0_ElectricDistributionJunction"
},
"definitionExpression": "MAP.UN_6_Junctions.DIAGRAMGUID = '{FDA323D6-4868-4375-9773-06AFF80B2F02}'"
},
{
"id": 104,
"source": {
"type": "workspaceLayer",
"workspaceId": "Diagram",
"layerId": "0_StructureJunction"
},
"definitionExpression": "MAP.UN_6_Junctions.DIAGRAMGUID = '{FDA323D6-4868-4375-9773-06AFF80B2F02}'"
},
{
"id": 105,
"source": {
"type": "workspaceLayer",
"workspaceId": "Diagram",
"layerId": "0_System Junctions"
},
"definitionExpression": "MAP.UN_6_Junctions.DIAGRAMGUID = '{FDA323D6-4868-4375-9773-06AFF80B2F02}'"
},
{
"id": 106,
"source": {
"type": "workspaceLayer",
"workspaceId": "Diagram",
"layerId": "0_Structure Boundary"
},
"definitionExpression": "MAP.UN_6_Junctions.DIAGRAMGUID = '{FDA323D6-4868-4375-9773-06AFF80B2F02}'"
},
{
"id": 107,
"source": {
"type": "workspaceLayer",
"workspaceId": "Diagram",
"layerId": "0_Structure Line"
},
"definitionExpression": "MAP.UN_6_Junctions.DIAGRAMGUID = '{FDA323D6-4868-4375-9773-06AFF80B2F02}'"
},
{
"id": 108,
"source": {
"type": "workspaceLayer",
"workspaceId": "Diagram",
"layerId": "0_Electric Distribution Line"
},
"definitionExpression": "MAP.UN_6_Junctions.DIAGRAMGUID = '{FDA323D6-4868-4375-9773-06AFF80B2F02}'"
},
{
"id": 109,
"source": {
"type": "workspaceLayer",
"workspaceId": "Diagram",
"layerId": "0_ElectricDistributionLine"
},
"definitionExpression": "MAP.UN_6_Edges.DIAGRAMGUID = '{FDA323D6-4868-4375-9773-06AFF80B2F02}'"
},
{
"id": 110,
"source": {
"type": "workspaceLayer",
"workspaceId": "Diagram",
"layerId": "0_StructureLine"
},
"definitionExpression": "MAP.UN_6_Edges.DIAGRAMGUID = '{FDA323D6-4868-4375-9773-06AFF80B2F02}'"
},
{
"id": 111,
"source": {
"type": "workspaceLayer",
"workspaceId": "Diagram",
"layerId": "0_Connectivity Associations"
},
"definitionExpression": "MAP.UN_6_Edges.DIAGRAMGUID = '{FDA323D6-4868-4375-9773-06AFF80B2F02}'"
},
{
"id": 112,
"source": {
"type": "workspaceLayer",
"workspaceId": "Diagram",
"layerId": "0_Structural Attachments"
},
"definitionExpression": "MAP.UN_6_Edges.DIAGRAMGUID = '{FDA323D6-4868-4375-9773-06AFF80B2F02}'"
},
{
"id": 113,
"source": {
"type": "workspaceLayer",
"workspaceId": "Diagram",
"layerId": "0_Reduction Edges"
},
"definitionExpression": "DIAGRAMGUID = '{FDA323D6-4868-4375-9773-06AFF80B2F02}'"
},
{
"id": 114,
"source": {
"type": "workspaceLayer",
"workspaceId": "Diagram",
"layerId": "0_Structure Junction"
},
"definitionExpression": "MAP.UN_6_Containers.DIAGRAMGUID = '{FDA323D6-4868-4375-9773-06AFF80B2F02}'"
},
{
"id": 115,
"source": {
"type": "workspaceLayer",
"workspaceId": "Diagram",
"layerId": "0_Electric Distribution Assembly"
},
"definitionExpression": "MAP.UN_6_Containers.DIAGRAMGUID = '{FDA323D6-4868-4375-9773-06AFF80B2F02}'"
},
{
"id": 116,
"source": {
"type": "workspaceLayer",
"workspaceId": "Diagram",
"layerId": "0_StructureBoundary"
},
"definitionExpression": "MAP.UN_6_Containers.DIAGRAMGUID = '{FDA323D6-4868-4375-9773-06AFF80B2F02}'"
}
]
}