Dynamic Layers (Network Diagrams)
- URL:http://<diagram-url>/dynamicLayers
- Version Introduced: 10.6
Description
The Dynamic Layers resource describes the sublayers under the diagram layer. It is returned as an array of JSON objects layers with their SQL query. Each JSON object layer item in the array provides the following info:
- id—the ID of the layer
- source—the layer source internal info, that is:
- type—"workspaceLayer"
- workspaceID—"Diagram"
- layerID—the internal layer ID
- defintionExpression—the filtering expression based on the diagram GUID.

License:The ArcGIS Utility Network Management extension
is required 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 |
| f | Description: The response format. The default response format is html. Values: <html | json> |
Example Usage
http://batz.esri.com/server/rest/services/Naperville/NetworkDiagramServer/diagrams/Basic_RMT003/dynamicLayers?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}'"
}
]
}