@vertigis/viewer-spec 61.18.2 → 61.20.0

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.
@@ -734,29 +734,42 @@ export declare class MapCommands extends CommandRegistry {
734
734
  * Adds markup to the map(s).
735
735
  *
736
736
  * **Example:** Adding markup to a custom collection using `AddMarkupArgs`.
737
+ * In Mobile, the Graphic's symbol must use the formatting from Esri's Web
738
+ * Map specification:
739
+ * https://developers.arcgis.com/web-map-specification/objects/symbol/ .
737
740
  *
738
741
  * ```
739
- * {
740
- * "collection": "my-custom-markup",
741
- * "graphics": [
742
- * {
743
- * "geometry": {
744
- * "x": -13733416.69,
745
- * "y": 6177670.86,
746
- * "spatialReference": {
747
- * "wkid": 3857
742
+ * [
743
+ * {
744
+ * name: "map.add-markup",
745
+ * arguments: {
746
+ * collection: "poi-highlights",
747
+ * maps: "item://map-extension/your-mapExtension-id",
748
+ * graphics: [
749
+ * {
750
+ * geometry: {
751
+ * type: "point",
752
+ * x: -13733818,
753
+ * y: 6176951,
754
+ * spatialReference: {
755
+ * wkid: 3857,
756
+ * },
757
+ * },
758
+ * symbol: {
759
+ * type: "simple-marker",
760
+ * style: "circle",
761
+ * color: [0, 120, 212, 200],
762
+ * size: 16,
763
+ * outline: {
764
+ * color: [255, 255, 255, 255],
765
+ * width: 2,
766
+ * },
767
+ * },
748
768
  * },
749
- * "type": "point"
750
- * },
751
- * "symbol": {
752
- * "color": [76, 115, 0, 255],
753
- * "size": 16,
754
- * "style": "esriSMSCircle",
755
- * "type": "simple-marker"
756
- * }
757
- * }
758
- * ]
759
- * }
769
+ * ],
770
+ * },
771
+ * },
772
+ * ];
760
773
  * ```
761
774
  */
762
775
  get addMarkup(): Command<AddMarkupArgs | GraphicsLike>;
@@ -770,36 +783,41 @@ export declare class MapCommands extends CommandRegistry {
770
783
  * **Example:** Adding a CSV layer to the main map using `AddLayersArgs`.
771
784
  *
772
785
  * ```
773
- * {
774
- * "layers": [
775
- * {
776
- * "id": "csv_123",
777
- * "layerType": "CSV",
778
- * "title": "Earthquakes",
779
- * "url": "http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_month.csv",
780
- * "columnDelimiter": ",",
781
- * "layerDefinition": {
782
- * "geometryType": "esriGeometryPoint",
783
- * "objectIdField": "__OBJECTID",
784
- * "capabilities": "Query",
785
- * "extent": {
786
- * "xmin": -20034970.25849882,
787
- * "ymin": -9494815.985282788,
788
- * "xmax": 20026086.963133518,
789
- * "ymax": 14269743.874052156,
790
- * "spatialReference": {
791
- * "wkid": 102100
792
- * }
793
- * }
794
- * },
795
- * "locationInfo": {
796
- * "locationType": "coordinates",
797
- * "latitudeFieldName": "latitude",
798
- * "longitudeFieldName": "longitude"
799
- * }
800
- * }
801
- * ]
802
- * }
786
+ * [
787
+ * {
788
+ * name: "map.add-layers",
789
+ * arguments: {
790
+ * layers: [
791
+ * {
792
+ * id: "your-layer-id",
793
+ * layerType: "CSV",
794
+ * title: "Earthquakes",
795
+ * url: "http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_month.csv",
796
+ * columnDelimiter: ",",
797
+ * locationInfo: {
798
+ * locationType: "coordinates",
799
+ * latitudeFieldName: "latitude",
800
+ * longitudeFieldName: "longitude",
801
+ * },
802
+ * layerDefinition: {
803
+ * geometryType: "esriGeometryPoint",
804
+ * objectIdField: "__OBJECTID",
805
+ * capabilities: "Query",
806
+ * extent: {
807
+ * xmin: -20034970.25849882,
808
+ * ymin: -9494815.985282788,
809
+ * xmax: 20026086.963133518,
810
+ * ymax: 14269743.874052156,
811
+ * spatialReference: {
812
+ * wkid: 102100,
813
+ * },
814
+ * },
815
+ * },
816
+ * },
817
+ * ],
818
+ * },
819
+ * },
820
+ * ];
803
821
  * ```
804
822
  *
805
823
  * @webOnly
@@ -808,41 +826,170 @@ export declare class MapCommands extends CommandRegistry {
808
826
  /**
809
827
  * Applies a Filter Effect to the map(s). Web only.
810
828
  *
829
+ * **Example:** Applying a filter effect to a layer with a specific id.
830
+ *
831
+ * ```
832
+ * [
833
+ * {
834
+ * name: "map.apply-filter-effect",
835
+ * arguments: {
836
+ * layers: "your-layer-id",
837
+ * where: "Magnitude >= 6.0",
838
+ * featureMode: "replace",
839
+ * maps: "item://map-extension/your-mapExtension-id",
840
+ * includedEffect: {
841
+ * brightness: "130%",
842
+ * contrast: "120%",
843
+ * },
844
+ * excludedEffect: {
845
+ * grayscale: "100%",
846
+ * opacity: "25%",
847
+ * },
848
+ * },
849
+ * },
850
+ * ];
851
+ * ```
852
+ *
811
853
  * @webOnly
812
854
  */
813
855
  get applyFilterEffect(): Command<ApplyFilterEffectArgs>;
814
856
  /**
815
857
  * Applies a LayerPreset to the map(s). Web only.
816
858
  *
859
+ * **Example:**: Applying a defined layer preset.
860
+ *
861
+ * ```
862
+ * [
863
+ * {
864
+ * name: "map.apply-layer-preset",
865
+ * arguments: {
866
+ * layerPreset: "item://layer-preset/your-layerPreset-id",
867
+ * maps: "item://map-extension/your-mapExtension-id",
868
+ * },
869
+ * },
870
+ * ];
871
+ * ```
872
+ *
817
873
  * @webOnly
818
874
  */
819
875
  get applyLayerPreset(): Command<ApplyLayerPresetArgs>;
820
876
  /**
821
877
  * Create a map note. Web only.
822
878
  *
879
+ * **Example:** Creating a map note based on the user-defined coordinates.
880
+ *
881
+ * ```
882
+ * [
883
+ * {
884
+ * name: "map.get-user-coordinates-input",
885
+ * arguments: {
886
+ * completeLabel: "language-common-next",
887
+ * attributes: {
888
+ * slot: "top-start",
889
+ * },
890
+ * },
891
+ * },
892
+ * "tasks.identify",
893
+ * {
894
+ * name: "map.create-note",
895
+ * arguments: {
896
+ * attributes: {
897
+ * slot: "top-start",
898
+ * },
899
+ * },
900
+ * },
901
+ * ];
902
+ * ```
903
+ *
823
904
  * @webOnly
824
905
  */
825
906
  get createNote(): Command<CreateMapNoteArgs>;
826
907
  /**
827
908
  * Edit an existing map note. Web only.
828
909
  *
910
+ * **Example:** Editing a map note based on the user-defined coordinates.
911
+ *
912
+ * ```
913
+ * [
914
+ * {
915
+ * name: "map.get-user-coordinates-input",
916
+ * arguments: {
917
+ * completeLabel: "language-common-next",
918
+ * attributes: {
919
+ * slot: "top-start",
920
+ * },
921
+ * },
922
+ * },
923
+ * "tasks.identify",
924
+ * {
925
+ * name: "map.edit-note",
926
+ * arguments: {
927
+ * attributes: {
928
+ * slot: "top-start",
929
+ * },
930
+ * },
931
+ * },
932
+ * ];
933
+ * ```
934
+ *
829
935
  * @webOnly
830
936
  */
831
937
  get editNote(): Command<EditMapNotesArgs>;
832
938
  /**
833
939
  * Removes a Filter Effect(s) from the map(s). Web only.
834
940
  *
941
+ * **Example:** Removing a filter effect from a layer with a specific id.
942
+ *
943
+ * ```
944
+ * [
945
+ * {
946
+ * name: "map.remove-filter-effects",
947
+ * arguments: {
948
+ * layers: "your-layer-id",
949
+ * maps: "item://map-extension/your-mapExtension-id",
950
+ * },
951
+ * },
952
+ * ];
953
+ * ```
954
+ *
835
955
  * @webOnly
836
956
  */
837
957
  get removeFilterEffects(): Command<Layers>;
838
958
  /**
839
959
  * Clears all Filter Effects from the map(s). Web only.
840
960
  *
961
+ * **Example:** Clearing all filter effects from the default map in a map
962
+ * extension.
963
+ *
964
+ * ```
965
+ * [
966
+ * {
967
+ * name: "map.clear-filter-effects",
968
+ * arguments: "item://map-extension/your-mapExtension-id",
969
+ * },
970
+ * ];
971
+ * ```
972
+ *
841
973
  * @webOnly
842
974
  */
843
975
  get clearFilterEffects(): Command<Maps | void>;
844
976
  /**
845
977
  * Clears all markup from the map(s).
978
+ *
979
+ * **Example:** Clearing all markup from a custom collection on the default
980
+ * map in a map extension.
981
+ *
982
+ * ```
983
+ * [
984
+ * {
985
+ * name: "map.clear-markup",
986
+ * arguments: {
987
+ * collection: "poi-highlights",
988
+ * maps: "item://map-extension/your-mapExtension-id",
989
+ * },
990
+ * },
991
+ * ];
992
+ * ```
846
993
  */
847
994
  get clearMarkup(): Command<ClearMarkupArgs | void>;
848
995
  /**
@@ -937,6 +1084,20 @@ export declare class MapCommands extends CommandRegistry {
937
1084
  * Show the specified markup collection, if hidden. If no collection is
938
1085
  * specified the default markup collection will be shown. Web only.
939
1086
  *
1087
+ * **Example:** Hiding a custom collection using `MarkupArgs`.
1088
+ *
1089
+ * ```
1090
+ * [
1091
+ * {
1092
+ * name: "map.hide-markup",
1093
+ * arguments: {
1094
+ * collection: "poi-highlights",
1095
+ * maps: "item://map-extension/your-mapExtension-id",
1096
+ * },
1097
+ * },
1098
+ * ];
1099
+ * ```
1100
+ *
940
1101
  * @webOnly
941
1102
  */
942
1103
  get hideMarkup(): Command<MarkupArgs | void>;
@@ -968,6 +1129,25 @@ export declare class MapCommands extends CommandRegistry {
968
1129
  /**
969
1130
  * Remove the specified layer(s) from the map(s). Web only.
970
1131
  *
1132
+ * **Example:** Removing a layer with a specific id from the main map using
1133
+ * `RemoveLayersArgs`.
1134
+ *
1135
+ * ```
1136
+ * [
1137
+ * {
1138
+ * name: "map.remove-layers",
1139
+ * arguments: {
1140
+ * maps: "item://map-extension/your-mapExtension-id",
1141
+ * layers: [
1142
+ * {
1143
+ * id: "your-layer-id",
1144
+ * },
1145
+ * ],
1146
+ * },
1147
+ * },
1148
+ * ];
1149
+ * ```
1150
+ *
971
1151
  * @webOnly
972
1152
  */
973
1153
  get removeLayers(): Command<LayersLike | RemoveLayersArgs>;
@@ -1002,10 +1182,40 @@ export declare class MapCommands extends CommandRegistry {
1002
1182
  get resumeSketch(): Command<HasMaps>;
1003
1183
  /**
1004
1184
  * Rotates the map by the specified amount.
1185
+ *
1186
+ * **Example:** Rotating a map by 90 degrees with the defined id using
1187
+ * `MapRotateArgs`.
1188
+ *
1189
+ * ```
1190
+ * [
1191
+ * {
1192
+ * name: "map.rotate-by",
1193
+ * arguments: {
1194
+ * rotation: 90,
1195
+ * maps: "item://map-extension/your-mapExtension-id",
1196
+ * },
1197
+ * },
1198
+ * ];
1199
+ * ```
1005
1200
  */
1006
1201
  get rotateBy(): Command<MapRotateArgs>;
1007
1202
  /**
1008
1203
  * Rotates the map to the specified angle.
1204
+ *
1205
+ * **Example:** Rotating a map to 45 degrees with the defined id using
1206
+ * `MapRotateArgs`.
1207
+ *
1208
+ * ```
1209
+ * [
1210
+ * {
1211
+ * name: "map.rotate-to",
1212
+ * arguments: {
1213
+ * rotation: 45,
1214
+ * maps: "item://map-extension/your-mapExtension-id",
1215
+ * },
1216
+ * },
1217
+ * ];
1218
+ * ```
1009
1219
  */
1010
1220
  get rotateTo(): Command<MapRotateArgs>;
1011
1221
  /**
@@ -1018,6 +1228,21 @@ export declare class MapCommands extends CommandRegistry {
1018
1228
  * Changes the view mode of a map to the specified mode, if supported. If no
1019
1229
  * maps are specified, all maps will be targeted. Web only.
1020
1230
  *
1231
+ * **Example:** Setting the view mode to "scene" on a map with the defined
1232
+ * id using `SetViewModeArgs`.
1233
+ *
1234
+ * ```
1235
+ * [
1236
+ * {
1237
+ * name: "map.set-view-mode",
1238
+ * arguments: {
1239
+ * viewMode: "scene",
1240
+ * maps: "item://map-extension/your-mapExtension-id",
1241
+ * },
1242
+ * },
1243
+ * ];
1244
+ * ```
1245
+ *
1021
1246
  * @webOnly
1022
1247
  */
1023
1248
  get setViewMode(): Command<ViewMode | SetViewModeArgs>;
@@ -1025,12 +1250,45 @@ export declare class MapCommands extends CommandRegistry {
1025
1250
  * Show the specified markup collection, if hidden. If no collection is
1026
1251
  * specified the default markup collection will be shown. Web only.
1027
1252
  *
1253
+ * **Example:** Showing a custom collection using `MarkupArgs`.
1254
+ *
1255
+ * ```
1256
+ * [
1257
+ * {
1258
+ * name: "map.show-markup",
1259
+ * arguments: {
1260
+ * collection: "poi-highlights",
1261
+ * maps: "item://map-extension/your-mapExtension-id",
1262
+ * },
1263
+ * },
1264
+ * ];
1265
+ * ```
1266
+ *
1028
1267
  * @webOnly
1029
1268
  */
1030
1269
  get showMarkup(): Command<MarkupArgs | void>;
1031
1270
  /**
1032
1271
  * Updates a layer in the map. Web only.
1033
1272
  *
1273
+ * **Example:** Updating a layer with a specific id using `UpdateLayerArgs`.
1274
+ *
1275
+ * ```
1276
+ * [
1277
+ * {
1278
+ * name: "map.update-layer",
1279
+ * arguments: {
1280
+ * layers: "your-layer-id",
1281
+ * maps: "item://map-extension/your-mapExtension-id",
1282
+ * layerJson: {
1283
+ * layerType: "CSV",
1284
+ * title: "Test-Update",
1285
+ * opacity: 0.3,
1286
+ * },
1287
+ * },
1288
+ * },
1289
+ * ];
1290
+ * ```
1291
+ *
1034
1292
  * @webOnly
1035
1293
  */
1036
1294
  get updateLayer(): Command<UpdateLayerArgs>;
@@ -1047,23 +1305,79 @@ export declare class MapCommands extends CommandRegistry {
1047
1305
  /**
1048
1306
  * Zooms the map in by one level of detail. Web only.
1049
1307
  *
1308
+ * **Example:** Zooming in on a map with the defined id using `Maps` as an
1309
+ * argument.
1310
+ *
1311
+ * ```
1312
+ * [
1313
+ * {
1314
+ * name: "map.zoom-in",
1315
+ * arguments: {
1316
+ * maps: "item://map-extension/your-mapExtension-id",
1317
+ * },
1318
+ * },
1319
+ * ];
1320
+ * ```
1321
+ *
1050
1322
  * @webOnly
1051
1323
  */
1052
1324
  get zoomIn(): Command<Maps | void>;
1053
1325
  /**
1054
1326
  * Zooms the map out by one level of detail. Web only.
1055
1327
  *
1328
+ * **Example:** Zooming out on a map with the defined id using `Maps` as an
1329
+ * argument.
1330
+ *
1331
+ * ```
1332
+ * [
1333
+ * {
1334
+ * name: "map.zoom-out",
1335
+ * arguments: {
1336
+ * maps: "item://map-extension/your-mapExtension-id",
1337
+ * },
1338
+ * },
1339
+ * ];
1340
+ * ```
1341
+ *
1056
1342
  * @webOnly
1057
1343
  */
1058
1344
  get zoomOut(): Command<Maps | void>;
1059
1345
  /**
1060
1346
  * Zooms the map to a specified, numerical scale. Web only.
1061
1347
  *
1348
+ * **Example:** Zooming to a scale of 1:500 on a map with the defined id.
1349
+ *
1350
+ * ```
1351
+ * [
1352
+ * {
1353
+ * name: "map.zoom-to-scale",
1354
+ * arguments: {
1355
+ * scale: 500,
1356
+ * maps: "item://map-extension/your-mapExtension-id",
1357
+ * },
1358
+ * },
1359
+ * ];
1360
+ * ```
1361
+ *
1062
1362
  * @webOnly
1063
1363
  */
1064
1364
  get zoomToScale(): Command<ZoomToScaleArgs>;
1065
1365
  /**
1066
1366
  * Zooms the map to its initial viewpoint.
1367
+ *
1368
+ * **Example:** Zooming to the initial viewpoint on a map with the defined
1369
+ * id using `Maps` as an argument.
1370
+ *
1371
+ * ```
1372
+ * [
1373
+ * {
1374
+ * name: "map.zoom-to-initial-viewpoint",
1375
+ * arguments: {
1376
+ * maps: "item://map-extension/your-mapExtension-id",
1377
+ * },
1378
+ * },
1379
+ * ];
1380
+ * ```
1067
1381
  */
1068
1382
  get zoomToInitialViewpoint(): Command<Maps | void>;
1069
1383
  /**
@@ -1073,6 +1387,20 @@ export declare class MapCommands extends CommandRegistry {
1073
1387
  * Note that if no map is included as an argument, the command will run for
1074
1388
  * all maps, which could result in unexpected behavior. Web only.
1075
1389
  *
1390
+ * **Example:** Zooming to the next viewpoint on a map with the defined id
1391
+ * using `Maps` as an argument.
1392
+ *
1393
+ * ```
1394
+ * [
1395
+ * {
1396
+ * name: "map.zoom-to-next-viewpoint",
1397
+ * arguments: {
1398
+ * maps: "item://map-extension/your-mapExtension-id",
1399
+ * },
1400
+ * },
1401
+ * ];
1402
+ * ```
1403
+ *
1076
1404
  * @webOnly
1077
1405
  */
1078
1406
  get zoomToNextViewpoint(): Command<Maps | void>;
@@ -1082,17 +1410,71 @@ export declare class MapCommands extends CommandRegistry {
1082
1410
  * Note that if no map is included as an argument, the command will run for
1083
1411
  * all maps, which could result in unexpected behavior. Web only.
1084
1412
  *
1413
+ * **Example:** Zooming to the previous viewpoint on a map with the defined
1414
+ * id using `Maps` as an argument.
1415
+ *
1416
+ * ```
1417
+ * [
1418
+ * {
1419
+ * name: "map.zoom-to-previous-viewpoint",
1420
+ * arguments: {
1421
+ * maps: "item://map-extension/your-mapExtension-id",
1422
+ * },
1423
+ * },
1424
+ * ];
1425
+ * ```
1426
+ *
1085
1427
  * @webOnly
1086
1428
  */
1087
1429
  get zoomToPreviousViewpoint(): Command<Maps | void>;
1088
1430
  /**
1089
1431
  * Go to the given viewpoint.
1432
+ *
1433
+ * **Example:** Zooming to a viewpoint with the defined target geometry,
1434
+ * rotation, and scale on a map with the defined id.
1435
+ *
1436
+ * ```
1437
+ * [
1438
+ * {
1439
+ * name: "map.zoom-to-viewpoint",
1440
+ * arguments: {
1441
+ * viewpoint: {
1442
+ * scale: 72224,
1443
+ * rotation: 30,
1444
+ * targetGeometry: {
1445
+ * x: -122.4194,
1446
+ * y: 37.7749,
1447
+ * spatialReference: {
1448
+ * wkid: 4326,
1449
+ * },
1450
+ * },
1451
+ * },
1452
+ * maps: "item://map-extension/your-mapExtension-id",
1453
+ * },
1454
+ * },
1455
+ * ];
1456
+ * ```
1090
1457
  */
1091
1458
  get zoomToViewpoint(): Command<ZoomToViewpointArgs | ViewpointLike>;
1092
1459
  /**
1093
1460
  * Go to the full extent of the layer(s). If more than one layer is
1094
1461
  * specified, it will zoom to the combined extent of all layers. Web only.
1095
1462
  *
1463
+ * **Example:** Zooming to the full extent of a layer with the defined id on
1464
+ * a map with the defined id.
1465
+ *
1466
+ * ```
1467
+ * [
1468
+ * {
1469
+ * name: "map.zoom-to-layer-extent",
1470
+ * arguments: {
1471
+ * layers: "your-layer-id",
1472
+ * maps: "item://map-extension/your-mapExtension-id",
1473
+ * },
1474
+ * },
1475
+ * ];
1476
+ * ```
1477
+ *
1096
1478
  * @webOnly
1097
1479
  */
1098
1480
  get zoomToLayerExtent(): Command<ZoomToLayerArgs>;
@@ -1104,6 +1486,21 @@ export declare class MapCommands extends CommandRegistry {
1104
1486
  * ranges don't overlap), then priority will be given to layers that come
1105
1487
  * earlier in the sequence. Web only.
1106
1488
  *
1489
+ * **Example:** Zooming to the visible scale of a layer with the defined id
1490
+ * on a map with the defined id.
1491
+ *
1492
+ * ```
1493
+ * [
1494
+ * {
1495
+ * name: "map.zoom-to-layer-visible-scale",
1496
+ * arguments: {
1497
+ * layers: "your-layer-id",
1498
+ * maps: "item://map-extension/your-mapExtension-id",
1499
+ * },
1500
+ * },
1501
+ * ];
1502
+ * ```
1503
+ *
1107
1504
  * @webOnly
1108
1505
  */
1109
1506
  get zoomToLayerVisibleScale(): Command<ZoomToLayerArgs>;
@@ -221,7 +221,7 @@ export interface QueryArgs {
221
221
  /**
222
222
  * The fields to sort the query by if the service supports sorting.
223
223
  *
224
- * **Example**: Sort the results by FIELD1_NAME ascending first and then by
224
+ * **Example:**: Sort the results by FIELD1_NAME ascending first and then by
225
225
  * FIELD2_NAME descending.
226
226
  *
227
227
  * ```