Dynamic Layers (Network Diagrams)

URL:
https://<root>/<serviceName>/NetworkDiagramServer/diagrams/<diagramName>/dynamicLayers
Methods:
POST
Version Introduced:
10.6

Description

The dynamicLayers resource describes the sublayers under a 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

Diagram of Dynamic Layers REST endpoint resource

Request parameters

ParameterDetails

gdbVersion

The name of the geodatabase version.

Syntax: gdbVersion=<version>

Example: gdbVersion=ABV1

sessionId

The token (guid) used to lock the version.

Syntax: sessionId=<guid>

Example: sessionId=44G259DE-87B0-407D-8F2E-DCB7665DD0F0

allLayers

Added in 10.8.1

The mode to use to cache the dynamic layers for the diagram. When allLayers is set as true , all layers are cached whether they contain diagram features or not. When allLayers is set as false , only the layers that contain diagram features are cached.

Syntax: allLayers=<true |false>

Example: allLayers=false

f

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

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
 "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

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
{
 "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}'"
  }
 ]
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.