@esri/solution-workflow 5.2.1 → 5.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/README.md +3 -6
  2. package/dist/esm/index.js.map +1 -0
  3. package/dist/esm/{workflow/src/workflow.d.ts → workflow.d.ts} +12 -3
  4. package/dist/esm/workflow.js +112 -0
  5. package/dist/esm/workflow.js.map +1 -0
  6. package/package.json +3 -3
  7. package/dist/cjs/common/src/generalHelpers.d.ts +0 -400
  8. package/dist/cjs/common/src/generalHelpers.js +0 -877
  9. package/dist/cjs/common/src/generalHelpers.js.map +0 -1
  10. package/dist/cjs/common/src/getItemTypeAbbrev.d.ts +0 -19
  11. package/dist/cjs/common/src/getItemTypeAbbrev.js +0 -186
  12. package/dist/cjs/common/src/getItemTypeAbbrev.js.map +0 -1
  13. package/dist/cjs/common/src/interfaces.d.ts +0 -1344
  14. package/dist/cjs/common/src/interfaces.js +0 -77
  15. package/dist/cjs/common/src/interfaces.js.map +0 -1
  16. package/dist/cjs/common/src/libConnectors.d.ts +0 -73
  17. package/dist/cjs/common/src/libConnectors.js +0 -115
  18. package/dist/cjs/common/src/libConnectors.js.map +0 -1
  19. package/dist/cjs/common/test/mocks/templates.d.ts +0 -71
  20. package/dist/cjs/common/test/mocks/templates.js +0 -1220
  21. package/dist/cjs/common/test/mocks/templates.js.map +0 -1
  22. package/dist/cjs/common/test/mocks/utils.d.ts +0 -605
  23. package/dist/cjs/common/test/mocks/utils.js +0 -1222
  24. package/dist/cjs/common/test/mocks/utils.js.map +0 -1
  25. package/dist/cjs/workflow/src/index.js +0 -25
  26. package/dist/cjs/workflow/src/index.js.map +0 -1
  27. package/dist/cjs/workflow/src/workflow.d.ts +0 -32
  28. package/dist/cjs/workflow/src/workflow.js +0 -51
  29. package/dist/cjs/workflow/src/workflow.js.map +0 -1
  30. package/dist/esm/common/src/generalHelpers.d.ts +0 -400
  31. package/dist/esm/common/src/generalHelpers.js +0 -829
  32. package/dist/esm/common/src/generalHelpers.js.map +0 -1
  33. package/dist/esm/common/src/getItemTypeAbbrev.d.ts +0 -19
  34. package/dist/esm/common/src/getItemTypeAbbrev.js +0 -182
  35. package/dist/esm/common/src/getItemTypeAbbrev.js.map +0 -1
  36. package/dist/esm/common/src/interfaces.d.ts +0 -1344
  37. package/dist/esm/common/src/interfaces.js +0 -72
  38. package/dist/esm/common/src/interfaces.js.map +0 -1
  39. package/dist/esm/common/src/libConnectors.d.ts +0 -73
  40. package/dist/esm/common/src/libConnectors.js +0 -105
  41. package/dist/esm/common/src/libConnectors.js.map +0 -1
  42. package/dist/esm/common/test/mocks/templates.d.ts +0 -71
  43. package/dist/esm/common/test/mocks/templates.js +0 -1195
  44. package/dist/esm/common/test/mocks/templates.js.map +0 -1
  45. package/dist/esm/common/test/mocks/utils.d.ts +0 -605
  46. package/dist/esm/common/test/mocks/utils.js +0 -1177
  47. package/dist/esm/common/test/mocks/utils.js.map +0 -1
  48. package/dist/esm/workflow/src/index.d.ts +0 -21
  49. package/dist/esm/workflow/src/index.js.map +0 -1
  50. package/dist/esm/workflow/src/workflow.js +0 -45
  51. package/dist/esm/workflow/src/workflow.js.map +0 -1
  52. /package/dist/{cjs/workflow/src → esm}/index.d.ts +0 -0
  53. /package/dist/esm/{workflow/src/index.js → index.js} +0 -0
@@ -1,1220 +0,0 @@
1
- "use strict";
2
- /** @license
3
- * Copyright 2018 Esri
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.sampleStylesRootTemplatizedJson = exports.sampleInfoRootTemplatizedJson = exports.sampleStylesRootJson = exports.sampleInfoRootJson = exports.removeEditFieldsInfoField = exports.getItemTemplateResourcesAsTemplatizedFiles = exports.getItemTemplateResourcesAsSourceFiles = exports.getItemTemplateResources = exports.getItemTemplateData = exports.getWebMappingApplicationTemplateNoWebmapOrGroup = exports.getWebMappingApplicationTemplateGroup = exports.getWebMappingApplicationTemplate = exports.getGroupTemplatePart = exports.getFeatureServiceTemplatePartNoRelationships = exports.getTemplatePartNoExtent = exports.getTemplatePartNoData = exports.getDashboardTemplatePartNoWidgets = exports.getItemTemplate = exports.getDeployedItemTemplate = exports.getItemTemplateSkeleton = exports.getSolutionTemplateItem = exports.getFailedItem = exports.getFailedDeployment = exports.getEmptyItem = exports.getEmptyGeneralizedItem = void 0;
19
- const tslib_1 = require("tslib");
20
- // This file contains examples of templates of AGOL items.
21
- const generalHelpers = tslib_1.__importStar(require("../../src/generalHelpers"));
22
- const getItemTypeAbbrev = tslib_1.__importStar(require("../../src/getItemTypeAbbrev"));
23
- const utils = tslib_1.__importStar(require("./utils"));
24
- // -- Exports -------------------------------------------------------------------------------------------------------//
25
- function getEmptyGeneralizedItem() {
26
- return {
27
- id: "",
28
- type: ""
29
- };
30
- }
31
- exports.getEmptyGeneralizedItem = getEmptyGeneralizedItem;
32
- function getEmptyItem() {
33
- return {
34
- created: 0,
35
- id: "",
36
- modified: 0,
37
- numViews: 0,
38
- owner: "",
39
- size: 0,
40
- tags: [],
41
- title: "",
42
- type: ""
43
- };
44
- }
45
- exports.getEmptyItem = getEmptyItem;
46
- function getFailedDeployment(failedItemIds = []) {
47
- return {
48
- success: false,
49
- itemIds: failedItemIds,
50
- error: "One or more items cannot be deployed"
51
- };
52
- }
53
- exports.getFailedDeployment = getFailedDeployment;
54
- function getFailedItem(itemType) {
55
- return {
56
- item: null,
57
- id: "",
58
- type: itemType,
59
- postProcess: false
60
- };
61
- }
62
- exports.getFailedItem = getFailedItem;
63
- function getSolutionTemplateItem(templates = []) {
64
- return {
65
- item: {
66
- commentsEnabled: false,
67
- id: "sln1234567890",
68
- itemType: "text",
69
- name: null,
70
- title: "title",
71
- type: "Solution",
72
- typeKeywords: ["Solution", "Template"],
73
- url: utils.PORTAL_SUBSET.portalUrl + "/home/item.html?id=sln1234567890"
74
- },
75
- data: {
76
- metadata: {
77
- version: "x",
78
- resourceStorageItemId: "sln1234567890"
79
- },
80
- templates
81
- }
82
- };
83
- }
84
- exports.getSolutionTemplateItem = getSolutionTemplateItem;
85
- function getItemTemplateSkeleton() {
86
- return {
87
- itemId: "",
88
- type: "",
89
- key: "",
90
- item: {
91
- id: "",
92
- type: "",
93
- typeKeywords: []
94
- },
95
- data: {},
96
- resources: [],
97
- properties: {},
98
- dependencies: [],
99
- relatedItems: [],
100
- groups: [],
101
- estimatedDeploymentCostFactor: 0
102
- };
103
- }
104
- exports.getItemTemplateSkeleton = getItemTemplateSkeleton;
105
- function getDeployedItemTemplate(itemId, type, dependencies = []) {
106
- return {
107
- itemId,
108
- type,
109
- dependencies,
110
- groups: []
111
- };
112
- }
113
- exports.getDeployedItemTemplate = getDeployedItemTemplate;
114
- function getItemTemplate(type, dependencies = [], url = "") {
115
- let templatePart = {};
116
- // Supported item types
117
- switch (type) {
118
- case "ArcGIS Pro Add In":
119
- break;
120
- case "Code Attachment":
121
- break;
122
- case "Code Sample":
123
- break;
124
- case "Dashboard":
125
- templatePart = getItemTemplateFundamentals(type, getItemTypeAbbrev.getItemTypeAbbrev(type), dependencies, url);
126
- templatePart.data = getItemTemplateData(type);
127
- templatePart.resources = [];
128
- break;
129
- case "Desktop Add In":
130
- break;
131
- case "Desktop Application Template":
132
- break;
133
- case "Document Link":
134
- break;
135
- case "Feature Collection":
136
- break;
137
- case "Feature Service":
138
- templatePart = getItemTemplateFundamentals(type, getItemTypeAbbrev.getItemTypeAbbrev(type), dependencies, url || "{{svc1234567890.itemId}}");
139
- templatePart.item.url = url || "{{svc1234567890.url}}";
140
- templatePart.data = getItemTemplateData(type);
141
- templatePart.resources = [];
142
- templatePart.estimatedDeploymentCostFactor = 10;
143
- const layer0 = getLayerOrTableTemplate(
144
- // removeEditFieldsInfoField(
145
- 0, "ROW Permits", "Feature Layer", [createItemTemplateRelationship(0, 1, "esriRelRoleOrigin")]);
146
- // );
147
- const table1 = getLayerOrTableTemplate(
148
- // removeEditFieldsInfoField(
149
- 1, "ROW Permit Comment", "Table", [createItemTemplateRelationship(0, 1, "esriRelRoleDestination")]);
150
- // );
151
- const properties = {
152
- service: getServiceTemplate(),
153
- layers: [layer0],
154
- tables: [table1]
155
- };
156
- templatePart.properties = properties;
157
- break;
158
- case "Form":
159
- templatePart = getItemTemplateFundamentals(type, getItemTypeAbbrev.getItemTypeAbbrev(type), dependencies, url);
160
- break;
161
- case "Geoprocessing Package":
162
- break;
163
- case "Geoprocessing Sample":
164
- break;
165
- case "Group":
166
- templatePart = getGroupTemplatePart(dependencies);
167
- break;
168
- case "Hub Site Application":
169
- templatePart = getItemTemplateFundamentals(type, getItemTypeAbbrev.getItemTypeAbbrev(type), dependencies, url);
170
- break;
171
- case "Layer Package":
172
- break;
173
- case "Map Template": // // ??? temporary definition
174
- templatePart = getItemTemplateFundamentals(type, getItemTypeAbbrev.getItemTypeAbbrev(type), dependencies, url);
175
- templatePart.resources = [];
176
- break;
177
- case "Notebook":
178
- templatePart = getItemTemplateFundamentals(type, getItemTypeAbbrev.getItemTypeAbbrev(type), dependencies, url);
179
- templatePart.data = getItemTemplateData(type);
180
- templatePart.resources = [];
181
- break;
182
- case "Operation View":
183
- break;
184
- case "Oriented Imagery Catalog":
185
- templatePart = getItemTemplateFundamentals(type, getItemTypeAbbrev.getItemTypeAbbrev(type), dependencies, url);
186
- templatePart.data = getItemTemplateData(type);
187
- templatePart.resources = [];
188
- break;
189
- case "Pro Map":
190
- break;
191
- case "Project Package":
192
- break;
193
- case "Project Template":
194
- break;
195
- case "QuickCapture Project":
196
- templatePart = getItemTemplateFundamentals(type, getItemTypeAbbrev.getItemTypeAbbrev(type), dependencies, url);
197
- templatePart.data = getItemTemplateData(type);
198
- break;
199
- case "Real Time Analytic":
200
- templatePart = getItemTemplateFundamentals(type, getItemTypeAbbrev.getItemTypeAbbrev(type), dependencies, url);
201
- templatePart.data = getItemTemplateData(type);
202
- break;
203
- case "StoryMap":
204
- templatePart = getItemTemplateFundamentals(type, getItemTypeAbbrev.getItemTypeAbbrev(type), dependencies, url || "https://storymaps.arcgis.com/stories/{{sto1234567890.itemId}}");
205
- templatePart.data = getItemTemplateData(type);
206
- templatePart.resources = [];
207
- break;
208
- case "Vector Tile Service":
209
- templatePart = getItemTemplateFundamentals(type, getItemTypeAbbrev.getItemTypeAbbrev(type), dependencies, url ||
210
- "https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer");
211
- templatePart.resources = getItemTemplateResources(type, templatePart.itemId);
212
- break;
213
- case "Web Map":
214
- templatePart = getItemTemplateFundamentals(type, getItemTypeAbbrev.getItemTypeAbbrev(type), dependencies, url ||
215
- "{{portalBaseUrl}}/home/webmap/viewer.html?webmap={{map1234567890.itemId}}");
216
- templatePart.data = getItemTemplateData(type);
217
- templatePart.resources = [];
218
- break;
219
- case "Web Mapping Application":
220
- templatePart = getItemTemplateFundamentals(type, getItemTypeAbbrev.getItemTypeAbbrev(type), dependencies, url ||
221
- "{{portalBaseUrl}}/apps/CrowdsourcePolling/index.html?appid={{wma1234567890.itemId}}");
222
- templatePart.data = getItemTemplateData(type);
223
- templatePart.resources = [];
224
- break;
225
- case "Workflow":
226
- templatePart = getItemTemplateFundamentals(type, getItemTypeAbbrev.getItemTypeAbbrev(type), dependencies, url);
227
- break;
228
- case "Workforce Project":
229
- templatePart = getItemTemplateFundamentals(type, getItemTypeAbbrev.getItemTypeAbbrev(type), dependencies, url);
230
- templatePart.data = getItemTemplateData(type);
231
- templatePart.resources = [];
232
- break;
233
- case "Undefined":
234
- templatePart = getItemTemplateFundamentals(type, "und", dependencies, url);
235
- templatePart.data = getItemTemplateData(type);
236
- templatePart.resources = [];
237
- break;
238
- case "Unsupported":
239
- templatePart = getItemTemplateFundamentals(type, "unk", dependencies, url);
240
- templatePart.data = getItemTemplateData(type);
241
- templatePart.resources = [];
242
- break;
243
- default:
244
- fail("Unsupported template item type");
245
- break;
246
- }
247
- return templatePart;
248
- }
249
- exports.getItemTemplate = getItemTemplate;
250
- function getDashboardTemplatePartNoWidgets() {
251
- const templatePart = getItemTemplate("Dashboard");
252
- templatePart.data.widgets = [];
253
- return templatePart;
254
- }
255
- exports.getDashboardTemplatePartNoWidgets = getDashboardTemplatePartNoWidgets;
256
- function getTemplatePartNoData(type) {
257
- const templatePart = getItemTemplate(type);
258
- templatePart.data = null;
259
- return templatePart;
260
- }
261
- exports.getTemplatePartNoData = getTemplatePartNoData;
262
- function getTemplatePartNoExtent(type) {
263
- const templatePart = getItemTemplate(type);
264
- templatePart.item.extent = null;
265
- return templatePart;
266
- }
267
- exports.getTemplatePartNoExtent = getTemplatePartNoExtent;
268
- function getFeatureServiceTemplatePartNoRelationships() {
269
- const templatePart = getItemTemplate("Feature Service");
270
- templatePart.properties.layers[0].relationships = [];
271
- templatePart.properties.tables[0].relationships = [];
272
- return templatePart;
273
- }
274
- exports.getFeatureServiceTemplatePartNoRelationships = getFeatureServiceTemplatePartNoRelationships;
275
- /* export function getFourItemFeatureServiceTemplatePart(): any {
276
- const templatePart: any = getItemTemplate("Feature Service");
277
-
278
- // Update data section
279
- templatePart.data.layers.push({
280
- id: 2,
281
- popupInfo: {
282
- title: "layer 2"
283
- },
284
- layerDefinition: {
285
- defaultVisibility: true
286
- }
287
- });
288
- templatePart.data.layers.push({
289
- id: 3,
290
- popupInfo: {
291
- title: "layer 3"
292
- },
293
- layerDefinition: {
294
- defaultVisibility: true
295
- }
296
- });
297
-
298
- // Update service properties
299
- const layer2: any = getLayerOrTableTemplate(
300
- // removeEditFieldsInfoField(
301
- 2,
302
- "ROW Permits layer 2",
303
- "Feature Layer"
304
- );
305
- // );
306
- const layer3: any = getLayerOrTableTemplate(
307
- // removeEditFieldsInfoField(
308
- 3,
309
- "ROW Permits layer 3",
310
- "Feature Layer"
311
- );
312
- // );
313
- addCondensedFormOfLayer(
314
- [layer2, layer3],
315
- templatePart.properties.service.layers
316
- );
317
-
318
- // Update layers section
319
- templatePart.properties.layers.push(layer2);
320
- templatePart.properties.layers.push(layer3);
321
-
322
- return templatePart;
323
- } */
324
- function getGroupTemplatePart(dependencies = []) {
325
- return {
326
- itemId: "grp1234567890",
327
- type: "Group",
328
- key: "i1a2b3c4",
329
- item: {
330
- id: "{{grp1234567890.itemId}}",
331
- title: "An AGOL group",
332
- isInvitationOnly: true,
333
- description: "Description of an AGOL group",
334
- snippet: "Snippet of an AGOL group",
335
- tags: ["JavaScript"],
336
- typeKeywords: [],
337
- phone: null,
338
- sortField: "title",
339
- sortOrder: "asc",
340
- isViewOnly: true,
341
- thumbnail: utils.PORTAL_SUBSET.restUrl +
342
- "/community/groups/grp1234567890/info/ROWPermitManager.png",
343
- access: "public",
344
- capabilities: [],
345
- isFav: false,
346
- isReadOnly: false,
347
- protected: false,
348
- autoJoin: false,
349
- notificationsEnabled: false,
350
- provider: null,
351
- providerGroupName: null,
352
- userMembership: {
353
- username: "casey",
354
- memberType: "none"
355
- },
356
- collaborationInfo: {},
357
- type: "Group"
358
- },
359
- groups: [],
360
- dependencies: dependencies,
361
- estimatedDeploymentCostFactor: 2
362
- };
363
- }
364
- exports.getGroupTemplatePart = getGroupTemplatePart;
365
- function getWebMappingApplicationTemplate() {
366
- const template = [
367
- getItemTemplate("Web Mapping Application", ["map1234567890"], "{{portalBaseUrl}}/apps/CrowdsourcePolling/index.html?appid={{wma1234567890.itemId}}"),
368
- getItemTemplate("Web Map", ["svc1234567890"], "{{portalBaseUrl}}/home/webmap/viewer.html?webmap={{map1234567890.itemId}}"),
369
- getItemTemplate("Feature Service")
370
- ];
371
- return template;
372
- }
373
- exports.getWebMappingApplicationTemplate = getWebMappingApplicationTemplate;
374
- function getWebMappingApplicationTemplateGroup() {
375
- const template = [
376
- getItemTemplate("Web Mapping Application", ["map1234567890"], "{{portalBaseUrl}}/apps/CrowdsourcePolling/index.html?appid={{wma1234567890.itemId}}"),
377
- getItemTemplate("Web Map", ["svc1234567890"], "{{portalBaseUrl}}/home/webmap/viewer.html?webmap={{map1234567890.itemId}}"),
378
- getItemTemplate("Feature Service", [])
379
- ];
380
- // Switch from webmap to group
381
- template[0].data.values.group = template[0].data.values.webmap;
382
- delete template[0].data.values.webmap;
383
- // Give the WMA a resource
384
- template[0].resources = [
385
- utils.PORTAL_SUBSET.restUrl +
386
- "/content/items/wma1234567890/resources/anImage.png"
387
- ];
388
- return template;
389
- }
390
- exports.getWebMappingApplicationTemplateGroup = getWebMappingApplicationTemplateGroup;
391
- function getWebMappingApplicationTemplateNoWebmapOrGroup() {
392
- const template = [
393
- getItemTemplate("Web Mapping Application", undefined, "{{portalBaseUrl}}/apps/CrowdsourcePolling/index.html?appid={{wma1234567890.itemId}}")
394
- ];
395
- // Change the dependencies from null to an empty array
396
- template[0].dependencies = [];
397
- // Remove folderId & values.webmap
398
- delete template[0].data.folderId;
399
- delete template[0].data.values.webmap;
400
- return template;
401
- }
402
- exports.getWebMappingApplicationTemplateNoWebmapOrGroup = getWebMappingApplicationTemplateNoWebmapOrGroup;
403
- // -- Internals ------------------------------------------------------------------------------------------------------//
404
- function createItemTemplateRelationship(id, relatedTableId, role) {
405
- const relationship = {
406
- id: id,
407
- name: "",
408
- relatedTableId: relatedTableId,
409
- cardinality: "esriRelCardinalityOneToMany",
410
- role: role,
411
- "": "globalid",
412
- composite: true
413
- };
414
- relationship.keyField =
415
- role === "esriRelRoleOrigin"
416
- ? "{{svc1234567890.layer" + id + ".fields.globalid.name}}"
417
- : "{{svc1234567890.layer" + relatedTableId + ".fields.globalid.name}}";
418
- return relationship;
419
- }
420
- function getServiceTemplate() {
421
- const service = {
422
- currentVersion: 10.61,
423
- serviceItemId: "{{svc1234567890.itemId}}",
424
- isView: true,
425
- isUpdatableView: true,
426
- sourceSchemaChangesAllowed: true,
427
- serviceDescription: "",
428
- hasVersionedData: false,
429
- supportsDisconnectedEditing: false,
430
- hasStaticData: false,
431
- maxRecordCount: 1000,
432
- supportedQueryFormats: "JSON",
433
- supportsVCSProjection: false,
434
- capabilities: "Create,Query,Editing",
435
- description: "",
436
- copyrightText: "",
437
- spatialReference: {
438
- wkid: 102100,
439
- latestWkid: 3857
440
- },
441
- initialExtent: {
442
- xmin: -14999999.999989873,
443
- ymin: 2699999.9999980442,
444
- xmax: -6199999.9999958146,
445
- ymax: 6499999.99999407,
446
- spatialReference: {
447
- wkid: 102100,
448
- latestWkid: 3857
449
- }
450
- },
451
- fullExtent: {
452
- xmin: -14999999.999989873,
453
- ymin: 2699999.9999980442,
454
- xmax: -6199999.9999958146,
455
- ymax: 6499999.99999407,
456
- spatialReference: {
457
- wkid: 102100,
458
- latestWkid: 3857
459
- }
460
- },
461
- allowGeometryUpdates: true,
462
- units: "esriMeters",
463
- supportsAppend: true,
464
- syncEnabled: false,
465
- supportsApplyEditsWithGlobalIds: true,
466
- editorTrackingInfo: {
467
- enableEditorTracking: true,
468
- enableOwnershipAccessControl: false,
469
- allowOthersToQuery: true,
470
- allowOthersToUpdate: true,
471
- allowOthersToDelete: true,
472
- allowAnonymousToQuery: true,
473
- allowAnonymousToUpdate: true,
474
- allowAnonymousToDelete: true
475
- },
476
- xssPreventionInfo: {
477
- xssPreventionEnabled: true,
478
- xssPreventionRule: "InputOnly",
479
- xssInputRule: "rejectInvalid"
480
- }
481
- };
482
- return service;
483
- }
484
- function getLayerOrTableTemplate(id, name, type, relationships = []) {
485
- return {
486
- currentVersion: 10.61,
487
- id: id,
488
- name: name,
489
- type: type,
490
- serviceItemId: "{{svc1234567890.itemId}}",
491
- isView: true,
492
- isUpdatableView: true,
493
- sourceSchemaChangesAllowed: true,
494
- displayField: "appname",
495
- description: "PermitApplication",
496
- copyrightText: "",
497
- defaultVisibility: true,
498
- editFieldsInfo: {
499
- creationDateField: "CreationDate",
500
- creatorField: "Creator",
501
- editDateField: "EditDate",
502
- editorField: "Editor"
503
- },
504
- editingInfo: {
505
- lastEditDate: 1538579807130
506
- },
507
- fields: [
508
- {
509
- name: "appname",
510
- type: "esriFieldTypeString",
511
- alias: "appname",
512
- sqlType: "sqlTypeOther",
513
- length: 0,
514
- nullable: true,
515
- editable: true,
516
- visible: true,
517
- domain: null,
518
- defaultValue: null
519
- },
520
- {
521
- name: "BoardReview",
522
- type: "esriFieldTypeString",
523
- alias: "Board Review",
524
- sqlType: "sqlTypeOther",
525
- length: 0,
526
- nullable: true,
527
- editable: true,
528
- visible: true,
529
- domain: null,
530
- defaultValue: null
531
- },
532
- {
533
- name: "globalid",
534
- type: "esriFieldTypeGlobalID",
535
- alias: "globalid",
536
- sqlType: "sqlTypeOther",
537
- length: 0,
538
- nullable: false,
539
- editable: true,
540
- visible: true,
541
- domain: null,
542
- defaultValue: null
543
- },
544
- {
545
- name: "CreationDate",
546
- type: "esriFieldTypeDate",
547
- alias: "CreationDate",
548
- sqlType: "sqlTypeOther",
549
- length: 0,
550
- nullable: true,
551
- editable: true,
552
- visible: true,
553
- domain: null,
554
- defaultValue: null
555
- },
556
- {
557
- name: "Creator",
558
- type: "esriFieldTypeString",
559
- alias: "Creator",
560
- sqlType: "sqlTypeOther",
561
- length: 0,
562
- nullable: true,
563
- editable: true,
564
- visible: true,
565
- domain: null,
566
- defaultValue: null
567
- },
568
- {
569
- name: "EditDate",
570
- type: "esriFieldTypeDate",
571
- alias: "EditDate",
572
- sqlType: "sqlTypeOther",
573
- length: 0,
574
- nullable: true,
575
- editable: true,
576
- visible: true,
577
- domain: null,
578
- defaultValue: null
579
- },
580
- {
581
- name: "Editor",
582
- type: "esriFieldTypeString",
583
- alias: "Editor",
584
- sqlType: "sqlTypeOther",
585
- length: 0,
586
- nullable: true,
587
- editable: true,
588
- visible: true,
589
- domain: null,
590
- defaultValue: null
591
- },
592
- {
593
- name: "OBJECTID",
594
- type: "esriFieldTypeOID",
595
- alias: "OBJECTID",
596
- sqlType: "sqlTypeOther",
597
- length: 8,
598
- nullable: false,
599
- editable: false,
600
- visible: true,
601
- domain: null,
602
- defaultValue: null
603
- }
604
- ],
605
- relationships: relationships,
606
- geometryType: "esriGeometryPoint",
607
- minScale: 0,
608
- maxScale: 0,
609
- extent: {
610
- xmin: -14999999.999989873,
611
- ymin: -13315943.826968452,
612
- xmax: 1604565.8194646926,
613
- ymax: 6499999.99999407,
614
- spatialReference: {
615
- wkid: 102100,
616
- latestWkid: 3857
617
- }
618
- },
619
- allowGeometryUpdates: true,
620
- hasAttachments: true,
621
- viewSourceHasAttachments: false,
622
- attachmentProperties: [
623
- {
624
- name: "name",
625
- isEnabled: true
626
- },
627
- {
628
- name: "size",
629
- isEnabled: true
630
- },
631
- {
632
- name: "contentType",
633
- isEnabled: true
634
- },
635
- {
636
- name: "keywords",
637
- isEnabled: true
638
- }
639
- ],
640
- objectIdField: "OBJECTID",
641
- uniqueIdField: {
642
- name: "OBJECTID",
643
- isSystemMaintained: true
644
- },
645
- globalIdField: "globalid",
646
- capabilities: "Create,Query,Editing",
647
- viewDefinitionQuery: "status = '{{svc1234567890.layer" + id + ".fields.boardreview.name}}'",
648
- definitionQuery: "status = 'BoardReview'"
649
- };
650
- }
651
- function getItemTemplateFundamentals(type, typePrefix, dependencies = [], url = "", groups = []) {
652
- return {
653
- itemId: typePrefix + "1234567890",
654
- type: type,
655
- key: "i1a2b3c4",
656
- item: {
657
- id: "{{" + typePrefix + "1234567890.itemId}}",
658
- name: "Name of an AGOL item",
659
- title: "An AGOL item",
660
- type: type,
661
- typeKeywords: ["JavaScript"],
662
- description: "Description of an AGOL item",
663
- tags: ["test"],
664
- snippet: "Snippet of an AGOL item",
665
- thumbnail: utils.PORTAL_SUBSET.restUrl +
666
- "/content/items/" +
667
- typePrefix +
668
- "1234567890/info/thumbnail/ago_downloaded.png",
669
- extent: "{{solutionItemExtent}}",
670
- categories: [],
671
- contentStatus: null,
672
- spatialReference: undefined,
673
- accessInformation: "Esri, Inc.",
674
- licenseInfo: null,
675
- origUrl: url && url.length > 0 ? url : undefined,
676
- properties: null,
677
- culture: "en-us",
678
- url: url,
679
- created: 1520968147000,
680
- modified: 1522178539000
681
- },
682
- data: undefined,
683
- resources: [],
684
- dependencies: dependencies,
685
- relatedItems: [],
686
- groups: groups,
687
- properties: {},
688
- estimatedDeploymentCostFactor: 2
689
- };
690
- }
691
- function getItemTemplateData(type) {
692
- let data = {
693
- error: {
694
- code: 400,
695
- messageCode: "CONT_0001",
696
- message: "Item does not exist or is inaccessible.",
697
- details: []
698
- }
699
- };
700
- // Supported item types
701
- switch (type) {
702
- case "ArcGIS Pro Add In":
703
- break;
704
- case "Code Attachment":
705
- break;
706
- case "Code Sample":
707
- break;
708
- case "Dashboard":
709
- data = {
710
- version: 24,
711
- layout: {
712
- rootElement: {
713
- type: "stackLayoutElement",
714
- orientation: "col",
715
- elements: []
716
- }
717
- },
718
- headerPanel: {
719
- type: "headerPanel"
720
- },
721
- leftPanel: {
722
- type: "leftPanel",
723
- title: "<p>left panel description</p>\n",
724
- selectors: []
725
- },
726
- widgets: [
727
- {
728
- showNavigation: true,
729
- events: [],
730
- flashRepeats: 3,
731
- itemId: "{{map1234567890.itemId}}",
732
- mapTools: [
733
- {
734
- type: "bookmarksTool"
735
- }
736
- ],
737
- type: "mapWidget",
738
- showPopup: true,
739
- layers: [
740
- {
741
- type: "featureLayerDataSource",
742
- layerId: "ROWPermitApplication_4605",
743
- name: "ROW Permits"
744
- }
745
- ],
746
- id: "1200f3f1-8f72-4ea6-af16-14f19e9a4517",
747
- name: "ROW Permit Map"
748
- },
749
- {
750
- type: "indicatorWidget",
751
- id: "3e796f16-722b-437f-89a4-e3787e105b24",
752
- name: "ROW Permit Count"
753
- },
754
- {
755
- type: "listWidget",
756
- id: "0f994268-e553-4d11-b8d1-afecf0818841",
757
- name: "ROW Permit List"
758
- },
759
- {
760
- type: "serialChartWidget",
761
- id: "ff698ea5-2812-4ba5-a0ba-d89fc302f8f4",
762
- name: "Permit Type"
763
- },
764
- {
765
- type: "serialChartWidget",
766
- id: "d2e11f43-8d61-422c-b7fe-00dc8a9c2b14",
767
- name: "Submission Date"
768
- }
769
- ],
770
- settings: {
771
- maxPaginationRecords: 50000
772
- },
773
- theme: "light"
774
- };
775
- break;
776
- case "Desktop Add In":
777
- break;
778
- case "Desktop Application Template":
779
- break;
780
- case "Document Link":
781
- break;
782
- case "Feature Collection":
783
- break;
784
- case "Feature Service":
785
- data = {
786
- tables: [
787
- {
788
- id: 1,
789
- popupInfo: {
790
- title: "table 1"
791
- }
792
- }
793
- ],
794
- layers: [
795
- {
796
- id: 0,
797
- popupInfo: {
798
- title: "layer 0"
799
- },
800
- layerDefinition: {
801
- defaultVisibility: true
802
- }
803
- }
804
- ]
805
- };
806
- break;
807
- case "Form":
808
- break;
809
- case "Geoprocessing Package":
810
- break;
811
- case "Geoprocessing Sample":
812
- break;
813
- case "Layer Package":
814
- break;
815
- case "Map Template":
816
- break;
817
- case "Notebook":
818
- data = {
819
- metadata: {
820
- kernelspec: {
821
- name: "python3",
822
- display_name: "Python 3",
823
- language: "python"
824
- },
825
- esriNotebookRuntime: {
826
- notebookRuntimeName: "ArcGIS Notebook Python 3 Advanced",
827
- notebookRuntimeVersion: "3.0"
828
- },
829
- language_info: {
830
- name: "python",
831
- version: "3.6.9",
832
- mimetype: "text/x-python",
833
- codemirror_mode: {
834
- name: "ipython",
835
- version: 3
836
- },
837
- pygments_lexer: "ipython3",
838
- nbconvert_exporter: "python",
839
- file_extension: ".py"
840
- }
841
- },
842
- cells: [
843
- {
844
- metadata: {
845
- trusted: true
846
- },
847
- cell_type: "code",
848
- source: "{{3b927de78a784a5aa3981469d85cf45d.itemId}}",
849
- execution_count: null,
850
- outputs: []
851
- }
852
- ],
853
- nbformat: 4,
854
- nbformat_minor: 2
855
- };
856
- break;
857
- case "Operation View":
858
- break;
859
- case "Oriented Imagery Catalog":
860
- data = {
861
- type: "OIC",
862
- version: "1.0",
863
- properties: {
864
- Name: "OIC_002",
865
- Description: "OIC_002",
866
- Tags: "OIC",
867
- ServiceURL: "{{svc1234567890.layer0.url}}",
868
- OverviewURL: "{{svc1234567890.layer0.url}}",
869
- DefaultAttributes: {
870
- CamHeading: "",
871
- CamPitch: "90",
872
- CamRoll: "0",
873
- HFOV: "60",
874
- VFOV: "40",
875
- AvgHtAG: "1.7",
876
- FarDist: "50",
877
- NearDist: "0.1",
878
- OIType: "I",
879
- SortOrder: "",
880
- CamOffset: "",
881
- Accuracy: "",
882
- ImgPyramids: "",
883
- DepthImg: "",
884
- ExternalViewer: "",
885
- ImgRot: ""
886
- },
887
- About: "",
888
- ImageField: "image_",
889
- ImagePrefix: "",
890
- VideoPrefix: "",
891
- DepthImagePrefix: "",
892
- SourceImagePrefix: "",
893
- MaxDistance: "100",
894
- DEMPrefix: "",
895
- Credentials: {
896
- Username: "",
897
- Password: ""
898
- },
899
- Variables: {},
900
- Filters: {},
901
- Copyright: {
902
- text: "",
903
- url: ""
904
- },
905
- PointsSource: "",
906
- CoverageSource: "",
907
- imageField: "Image_"
908
- }
909
- };
910
- break;
911
- case "Pro Map":
912
- break;
913
- case "Project Package":
914
- break;
915
- case "Project Template":
916
- break;
917
- case "StoryMap":
918
- data = {
919
- root: "n-guGGJg",
920
- nodes: {},
921
- resources: {}
922
- };
923
- break;
924
- case "Real Time Analytic":
925
- data = {
926
- id: "aaaaf0cf8bdc4fb19749cc1cbad1651b",
927
- label: type,
928
- description: "",
929
- sources: [
930
- {
931
- id: "40d18a22-9927-97d1-e573-44f197bddfe7",
932
- name: "feature-layer",
933
- label: "Active_Snowplow_Driver",
934
- schemaTransformation: {},
935
- properties: {
936
- "feature-layer.portalItemId": "{{aaaaf0cf8bdc4fb19749cc1cbad1651b.itemId}}",
937
- "feature-layer.outSR": "4326"
938
- }
939
- }
940
- ],
941
- feeds: [
942
- {
943
- id: "{{bbb9398bcf8c4dc5a50cceaa59baf513.itemId}}",
944
- label: "WWO Simulation Provider AVL Feed",
945
- name: "simulator",
946
- properties: {}
947
- },
948
- {
949
- id: "{{ccc6347e0c4f4dc8909da399418cafbe.itemId}}",
950
- label: "WWO Simulation ArcGIS Tracking Feed",
951
- name: "simulator",
952
- properties: {}
953
- }
954
- ],
955
- outputs: [
956
- {
957
- id: "01aacfd0-754d-3ac0-bb8d-aa3814b32fbf",
958
- name: "feat-lyr-new",
959
- label: "Custom Velocity Update",
960
- properties: {
961
- "feat-lyr-new.editorTrackingEnabled": false,
962
- "feat-lyr-new.updateExistingFeatures": true,
963
- "feat-lyr-new.name": "Custom Velocity Update",
964
- "feat-lyr-new.useSpatiotemporal": true
965
- }
966
- }
967
- ]
968
- };
969
- break;
970
- case "Web Map":
971
- data = {
972
- operationalLayers: [
973
- {
974
- id: "ROWPermitApplication_4605",
975
- layerType: "ArcGISFeatureLayer",
976
- url: "{{svc1234567890.layer0.url}}",
977
- title: "ROW Permits",
978
- itemId: "{{svc1234567890.itemId}}",
979
- popupInfo: {},
980
- capabilities: "Query"
981
- }
982
- ],
983
- baseMap: {
984
- baseMapLayers: [
985
- {
986
- id: "World_Hillshade_3689",
987
- layerType: "ArcGISTiledMapServiceLayer",
988
- url: "http://services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer",
989
- title: "World Hillshade"
990
- },
991
- {
992
- id: "VectorTile_6451",
993
- type: "VectorTileLayer",
994
- layerType: "VectorTileLayer",
995
- title: "World Topographic Map",
996
- styleUrl: utils.PORTAL_SUBSET.restUrl +
997
- "/content/items/" +
998
- "vts1234567980/resources/styles/root.json",
999
- itemId: "7dc6cea0b1764a1f9af2e679f642f0f5"
1000
- }
1001
- ],
1002
- title: "Topographic"
1003
- },
1004
- spatialReference: {
1005
- wkid: 102100,
1006
- latestWkid: 3857
1007
- },
1008
- tables: [
1009
- {
1010
- url: "{{svc1234567890.layer1.url}}",
1011
- id: "ROWPermitApplication_4404",
1012
- title: "ROW Permit Comment",
1013
- layerDefinition: {},
1014
- itemId: "{{svc1234567890.itemId}}",
1015
- popupInfo: {}
1016
- }
1017
- ]
1018
- };
1019
- break;
1020
- case "Web Mapping Application":
1021
- data = {
1022
- source: "tpl1234567890",
1023
- folderId: "{{folderId}}",
1024
- values: {
1025
- webmap: "{{map1234567890.itemId}}",
1026
- title: "A web mapping application",
1027
- titleIcon: "images/banner.png",
1028
- displayText: "<b>Welcome</p>",
1029
- featureLayer: {
1030
- id: "ROWPermitApplication_4605",
1031
- fields: [
1032
- {
1033
- id: "sortField",
1034
- fields: ["submitdt"]
1035
- }
1036
- ]
1037
- },
1038
- showAllFeatures: "true",
1039
- customUrlLayer: {
1040
- id: "ROWPermitApplication_4605",
1041
- fields: [
1042
- {
1043
- id: "urlField",
1044
- fields: ["OBJECTID"]
1045
- }
1046
- ]
1047
- },
1048
- customUrlParam: "id"
1049
- }
1050
- };
1051
- break;
1052
- case "Workforce Project":
1053
- data = {
1054
- workerWebMapId: "{{abc116555b16437f8435e079033128d0.itemId}}",
1055
- dispatcherWebMapId: "{{abc26a244163430590151395821fb845.itemId}}",
1056
- dispatchers: {
1057
- serviceItemId: "{{abc302ec12b74d2f9f2b3cc549420086.layer0.itemId}}",
1058
- url: "{{abc302ec12b74d2f9f2b3cc549420086.layer0.url}}"
1059
- },
1060
- assignments: {
1061
- serviceItemId: "{{abc4494043c3459faabcfd0e1ab557fc.layer0.itemId}}",
1062
- url: "{{abc4494043c3459faabcfd0e1ab557fc.layer0.url}}"
1063
- },
1064
- workers: {
1065
- serviceItemId: "{{abc5dd4bdd18437f8d5ff1aa2d25fd7c.layer0.itemId}}",
1066
- url: "{{abc5dd4bdd18437f8d5ff1aa2d25fd7c.layer0.url}}"
1067
- },
1068
- tracks: {
1069
- serviceItemId: "{{abc64329e69144c59f69f3f3e0d45269.layer0.itemId}}",
1070
- url: "{{abc64329e69144c59f69f3f3e0d45269.layer0.url}}",
1071
- enabled: true,
1072
- updateInterval: 300
1073
- },
1074
- version: "1.2.0",
1075
- groupId: "{{abc715c2df2b466da05577776e82d044.itemId}}",
1076
- folderId: "{{folderId}}",
1077
- assignmentIntegrations: [
1078
- {
1079
- id: "default-navigator",
1080
- prompt: "Navigate to Assignment",
1081
- urlTemplate: "arcgis-navigator://?stop=${assignment.latitude},{itemID={{cad3483e025c47338d43df308c117308.itemId}}},${assignment.longitude}&stopname=${assignment.location}&callback=arcgis-workforce://&callbackprompt={itemID={{bad3483e025c47338d43df308c117308.itemId}}}://Workforce",
1082
- assignmentTypes: [
1083
- {
1084
- urlTemplate: "arcgis-navigator://?stop=${assignment.latitude},{itemID={{cad3483e025c47338d43df308c117308.itemId}}},${assignment.longitude}&stopname=${assignment.location}&callback=arcgis-workforce://&callbackprompt={itemID={{bad3483e025c47338d43df308c117308.itemId}}}://Workforce"
1085
- }
1086
- ]
1087
- }
1088
- ]
1089
- };
1090
- break;
1091
- default:
1092
- data = {};
1093
- break;
1094
- }
1095
- return data;
1096
- }
1097
- exports.getItemTemplateData = getItemTemplateData;
1098
- function getItemTemplateResources(type, itemId) {
1099
- let resources = [];
1100
- // Supported item types
1101
- switch (type) {
1102
- case "Vector Tile Service":
1103
- resources = [
1104
- itemId + "/info/root.json",
1105
- itemId + "/styles/root.json",
1106
- itemId + "_info_thumbnail/ago_downloaded.png"
1107
- ];
1108
- break;
1109
- }
1110
- return resources;
1111
- }
1112
- exports.getItemTemplateResources = getItemTemplateResources;
1113
- function getItemTemplateResourcesAsSourceFiles(type, itemId) {
1114
- let resources = [];
1115
- // Supported item types
1116
- switch (type) {
1117
- case "Vector Tile Service":
1118
- resources = [{
1119
- itemId,
1120
- file: generalHelpers.jsonToFile(exports.sampleInfoRootJson, "root.json"),
1121
- folder: itemId + "/info",
1122
- filename: "root.json"
1123
- }, {
1124
- itemId,
1125
- file: generalHelpers.jsonToFile(exports.sampleStylesRootJson, "root.json"),
1126
- folder: itemId + "/styles",
1127
- filename: "root.json"
1128
- }, {
1129
- itemId,
1130
- file: utils.getSampleImageAsFile("ago_downloaded.png"),
1131
- folder: "_info_thumbnail",
1132
- filename: "ago_downloaded.png"
1133
- }];
1134
- break;
1135
- }
1136
- return resources;
1137
- }
1138
- exports.getItemTemplateResourcesAsSourceFiles = getItemTemplateResourcesAsSourceFiles;
1139
- function getItemTemplateResourcesAsTemplatizedFiles(type) {
1140
- let resources = [];
1141
- // Supported item types
1142
- switch (type) {
1143
- case "Vector Tile Service":
1144
- resources = [{
1145
- filename: "root.json",
1146
- folder: "info",
1147
- url: "https://www.arcgis.com/sharing/rest/content/items/sln1234567890/resources/vts1234567890/info/root.json"
1148
- }, {
1149
- filename: "root.json",
1150
- folder: "styles",
1151
- url: "https://www.arcgis.com/sharing/rest/content/items/sln1234567890/resources/vts1234567890/styles/root.json"
1152
- }, {
1153
- filename: "ago_downloaded.png",
1154
- folder: "_info_thumbnail",
1155
- url: "https://www.arcgis.com/sharing/rest/content/items/sln1234567890/resources/vts1234567890/ago_downloaded.png"
1156
- }];
1157
- break;
1158
- }
1159
- return resources;
1160
- }
1161
- exports.getItemTemplateResourcesAsTemplatizedFiles = getItemTemplateResourcesAsTemplatizedFiles;
1162
- function removeEditFieldsInfoField(layerOrTable) {
1163
- layerOrTable.editFieldsInfo = null;
1164
- return layerOrTable;
1165
- }
1166
- exports.removeEditFieldsInfoField = removeEditFieldsInfoField;
1167
- // ------------------------------------------------------------------------------------------------------------------ //
1168
- exports.sampleInfoRootJson = {
1169
- "resourceInfo": [
1170
- "https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer/resources/fonts/Arial%20Regular/0-255.pbf",
1171
- "https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer/resources/fonts/Arial%20Regular/256-511.pbf",
1172
- "https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer/resources/fonts/Palatino%20Linotype%20Regular/64512-64767.pbf",
1173
- "https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer/resources/fonts/Palatino%20Linotype%20Regular/64768-65023.pbf",
1174
- "https://myorg.maps.arcgis.com/sharing/rest/content/items/vts1234567890/resources/sprites/sprite-1682528799750@2x.json",
1175
- "https://myorg.maps.arcgis.com/sharing/rest/content/items/vts1234567890/resources/sprites/sprite-1682528799750@2x.png"
1176
- ]
1177
- };
1178
- exports.sampleStylesRootJson = {
1179
- "version": 8,
1180
- "sprite": "https://myorg.maps.arcgis.com/sharing/rest/content/items/vts1234567890/resources/sprites/sprite-1682528799750",
1181
- "glyphs": "https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer/resources/fonts/{fontstack}/{range}.pbf",
1182
- "sources": {
1183
- "esri": {
1184
- "type": "vector",
1185
- "url": "https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer",
1186
- "tiles": [
1187
- "https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer/tile/{z}/{y}/{x}.pbf"
1188
- ]
1189
- }
1190
- },
1191
- "layers": [],
1192
- "metadata": {}
1193
- };
1194
- exports.sampleInfoRootTemplatizedJson = {
1195
- "resourceInfo": [
1196
- "https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer/resources/fonts/Arial%20Regular/0-255.pbf",
1197
- "https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer/resources/fonts/Arial%20Regular/256-511.pbf",
1198
- "https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer/resources/fonts/Palatino%20Linotype%20Regular/64512-64767.pbf",
1199
- "https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer/resources/fonts/Palatino%20Linotype%20Regular/64768-65023.pbf",
1200
- "{{vts1234567890.url}}/resources/sprites/sprite-1682528799750@2x.json",
1201
- "{{vts1234567890.url}}/resources/sprites/sprite-1682528799750@2x.png"
1202
- ]
1203
- };
1204
- exports.sampleStylesRootTemplatizedJson = {
1205
- "version": 8,
1206
- "sprite": "{{vts1234567890.url}}/resources/sprites/sprite-1682528799750",
1207
- "glyphs": "https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer/resources/fonts/{fontstack}/{range}.pbf",
1208
- "sources": {
1209
- "esri": {
1210
- "type": "vector",
1211
- "url": "https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer",
1212
- "tiles": [
1213
- "https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer/tile/{z}/{y}/{x}.pbf"
1214
- ]
1215
- }
1216
- },
1217
- "layers": [],
1218
- "metadata": {}
1219
- };
1220
- //# sourceMappingURL=templates.js.map