@vertigis/viewer-spec 51.11.2 → 51.13.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.
@@ -1,4 +1,4 @@
1
- import type Geometry from "@arcgis/core/geometry/Geometry";
1
+ import type Geometry from "@arcgis/core/geometry/Geometry.js";
2
2
  import type LineSymbol3D from "@arcgis/core/symbols/LineSymbol3D";
3
3
  import type PictureFillSymbol from "@arcgis/core/symbols/PictureFillSymbol";
4
4
  import type PictureMarkerSymbol from "@arcgis/core/symbols/PictureMarkerSymbol";
@@ -22,7 +22,7 @@ import type { Command } from "../Command.js";
22
22
  import { CommandRegistry } from "../CommandRegistry.js";
23
23
  import type { Operation } from "../Operation.js";
24
24
  import { OperationRegistry } from "../OperationRegistry.js";
25
- import type { CreateGraphicsResult, GeometryLike, HasFeatures, HasGraphics, HasLayers, HasMaps, HasSymbol, HasUITarget, SymbolLike } from "../common.js";
25
+ import type { CreateGraphicsResult, FeaturesLike, GeometryLike, HasFeatures, HasGraphics, HasLayers, HasMaps, HasSymbol, HasUITarget, SymbolLike } from "../common.js";
26
26
  import type { CaptureGeometryArgs } from "./sketching.js";
27
27
  /**
28
28
  * Symbols supported for drawing.
@@ -76,19 +76,23 @@ export interface EditSymbolResult extends HasMaps, HasLayers, HasGraphics, HasFe
76
76
  symbol: Symbol;
77
77
  }
78
78
  /**
79
- * Arguments for the "drawing.create-graphics" operation. Only available in
80
- * Mobile.
79
+ * Arguments for the "drawing.create-graphics" operation. `GeometryLike`,
80
+ * `FeaturesLike` and `SymbolLike` are only available in Web.
81
81
  */
82
- export interface CreateGraphicsArgs {
82
+ export interface CreateGraphicsArgs extends HasMaps {
83
83
  /**
84
84
  * The geometry that was captured.
85
85
  */
86
- geometry: Geometry;
86
+ geometry: Geometry | GeometryLike;
87
+ /**
88
+ * Features containing geometry to create graphics from. Web only.
89
+ */
90
+ features?: FeaturesLike;
87
91
  /**
88
92
  * The symbol that should be used to create the graphic. If null, a default
89
93
  * is provided.
90
94
  */
91
- symbol?: Symbol;
95
+ symbol?: Symbol | SymbolLike;
92
96
  }
93
97
  export declare class DrawingCommands extends CommandRegistry {
94
98
  /**
@@ -126,8 +130,8 @@ export declare class DrawingOperations extends OperationRegistry {
126
130
  /**
127
131
  * Creates graphics.
128
132
  *
129
- * In Web, creates graphics out of GeometryLike args, with the current
130
- * symbols that are set on the DrawManager.
133
+ * In Web, creates graphics out of GeometryLike or CreateGraphicsArgs, with
134
+ * the current symbols that are set on the DrawManager.
131
135
  *
132
136
  * In Mobile, creates graphics from the given CreateGraphicsArgs or
133
137
  * CreateGraphicsArgs[] (or some GeometryLike args). Any provided symbol
@@ -26,6 +26,10 @@ import type { Features, FeaturesLike, Geometries, GeometryLike, GraphicsLike, Ha
26
26
  import type { EnhancedFileData } from "./file.js";
27
27
  import type { PortalItemData } from "./portal.js";
28
28
  import type { GeometryEditorSettings } from "./sketching.js";
29
+ /**
30
+ * Levels (z-orders) to which markup can be assigned, listed from high to low.
31
+ */
32
+ export type MarkupLevel = "ui" | "labels" | "custom3" | "custom2" | "custom1" | "default";
29
33
  /**
30
34
  * Arguments for the various map events.
31
35
  */
@@ -141,19 +145,88 @@ export interface GetExtentResult {
141
145
  */
142
146
  maps: MapsLike;
143
147
  }
148
+ /**
149
+ * Base arguments for markup commands and operations.
150
+ */
151
+ export interface MarkupArgs extends HasMaps {
152
+ /**
153
+ * The named collection of markup to operate on. If not specified the
154
+ * default markup collection will be used. Some markup collection names are
155
+ * used internally by Web:
156
+ *
157
+ * "default": The default markup layer.
158
+ *
159
+ * "vgs-active-snapping-guides": The active snap point when snapping.
160
+ *
161
+ * "vgs-buffer": Buffer graphics from OOTB buffer tools.
162
+ *
163
+ * "vgs-context-marker": Right click context marker on map.
164
+ *
165
+ * "vgs-dirty-indicator": Invalid geometry indicators used when editing.
166
+ *
167
+ * "vgs-editing-control": Edit frame and vertices while editing geometries.
168
+ *
169
+ * "vgs-location-accuracy": Location accuracy circle when geolocating.
170
+ *
171
+ * "vgs-location-marker-*": Location markers have this prefix followed by
172
+ * the marker id.
173
+ *
174
+ * "vgs-map-notes": Map Notes.
175
+ *
176
+ * "vgs-measurement-labels": Labels on measured graphics.
177
+ *
178
+ * "vgs-other-snapping-guides": Additional snapping point visualizations.
179
+ *
180
+ * "vgs-self-snaps": Used internally by snapping.
181
+ *
182
+ * "vgs-sketching": Temporary graphics used while drawing geometries.
183
+ *
184
+ * "vgs-snapping-radius": Snapping radius when snapping is active.
185
+ *
186
+ * "vgs-transient-measurement-labels": Measurement labels used while
187
+ * drawing.
188
+ *
189
+ * @webOnly
190
+ */
191
+ collection?: string;
192
+ }
193
+ /**
194
+ * Arguments for the "map.add-markup" command.
195
+ */
196
+ export interface AddMarkupArgs extends MarkupArgs {
197
+ /**
198
+ * The markup to add to the map. `GraphicsLike` is only available in Web.
199
+ */
200
+ graphics?: Graphic[] | GraphicsLike;
201
+ /**
202
+ * The level (z-order) to assign the markup to. If not specified uses the
203
+ * same level as default markup.
204
+ *
205
+ * @webOnly
206
+ */
207
+ level?: MarkupLevel;
208
+ }
209
+ /**
210
+ * Arguments for the "map.clear-markup" command.
211
+ *
212
+ * @webOnly
213
+ */
214
+ export interface ClearMarkupArgs extends MarkupArgs {
215
+ /**
216
+ * The markup to clear. If not specified will clear all markup in the
217
+ * selected collection.
218
+ */
219
+ graphics?: GraphicsLike;
220
+ }
144
221
  /**
145
222
  * Arguments for the "map.get-markup" operation.
146
223
  */
147
- export interface GetMarkupArgs {
224
+ export interface GetMarkupArgs extends MarkupArgs {
148
225
  /**
149
226
  * The geometry used to bound the retrieved markup. If not specified all
150
- * markup will be returned.
227
+ * markup in the selected collection will be returned.
151
228
  */
152
229
  geometry?: Geometry;
153
- /**
154
- * The associated map for the retrieved extent.
155
- */
156
- maps: MapsLike;
157
230
  }
158
231
  /**
159
232
  * Result of the "map.get-markup" operation.
@@ -621,15 +694,6 @@ export interface StartSketchArgs {
621
694
  */
622
695
  symbol?: SymbolJson;
623
696
  }
624
- /**
625
- * Arguments for the "map.add-markup" operation. Only available in Mobile.
626
- */
627
- export interface AddMarkupArgs {
628
- /**
629
- * The graphics to add to the map.
630
- */
631
- graphics: Graphic[];
632
- }
633
697
  /**
634
698
  * Result of the "map.get-coordinate-transformation" operation.
635
699
  */
@@ -704,10 +768,6 @@ export declare enum MarkupType {
704
768
  export declare class MapCommands extends CommandRegistry {
705
769
  /**
706
770
  * Adds markup to the map(s).
707
- *
708
- * In Web, uses GraphicsLike args.
709
- *
710
- * In Mobile, uses AddMarkupArgs or some GraphicsLike args.
711
771
  */
712
772
  get addMarkup(): Command<AddMarkupArgs | GraphicsLike>;
713
773
  /**
@@ -758,7 +818,7 @@ export declare class MapCommands extends CommandRegistry {
758
818
  /**
759
819
  * Clears all markup from the map(s).
760
820
  */
761
- get clearMarkup(): Command<Maps | void>;
821
+ get clearMarkup(): Command<ClearMarkupArgs | void>;
762
822
  /**
763
823
  * Disables the click event handler on the map, so that if the user clicks
764
824
  * on the map, the configured handler will not be invoked.
@@ -826,6 +886,13 @@ export declare class MapCommands extends CommandRegistry {
826
886
  * @mobileOnly
827
887
  */
828
888
  get hideExtentSelector(): Command<HasMaps>;
889
+ /**
890
+ * Show the specified markup collection, if hidden. If no collection is
891
+ * specified the default markup collection will be shown.
892
+ *
893
+ * @webOnly
894
+ */
895
+ get hideMarkup(): Command<MarkupArgs | void>;
829
896
  /**
830
897
  * Pans (without zooming) to one or many features on the targeted map(s).
831
898
  */
@@ -898,6 +965,13 @@ export declare class MapCommands extends CommandRegistry {
898
965
  * @webOnly
899
966
  */
900
967
  get setViewMode(): Command<ViewMode | SetViewModeArgs>;
968
+ /**
969
+ * Show the specified markup collection, if hidden. If no collection is
970
+ * specified the default markup collection will be shown.
971
+ *
972
+ * @webOnly
973
+ */
974
+ get showMarkup(): Command<MarkupArgs | void>;
901
975
  /**
902
976
  * Updates a layer in the map.
903
977
  *
@@ -1 +1 @@
1
- import{CommandRegistry as e}from"../CommandRegistry.js";import{EventRegistry as t}from"../EventRegistry.js";import{OperationRegistry as s}from"../OperationRegistry.js";export var MarkupType;!function(e){e.UNKNOWN="Unknown",e.POLYGON="Polygon",e.POLYLINE="Polyline",e.TEXT="Text",e.PICTURE_MARKER="PictureMarker",e.PICTURE_FILL="PictureFill",e.COMPOSITE="Composite",e.MULTI="Multi"}(MarkupType||(MarkupType={}));export class MapCommands extends e{get addMarkup(){return this._messages.command("map.add-markup")}get addLayers(){return this._messages.command("map.add-layers")}get applyFilterEffect(){return this._messages.command("map.apply-filter-effect")}get applyLayerPreset(){return this._messages.command("map.apply-layer-preset")}get createNote(){return this._messages.command("map.create-note")}get editNote(){return this._messages.command("map.edit-note")}get removeFilterEffects(){return this._messages.command("map.remove-filter-effects")}get clearFilterEffects(){return this._messages.command("map.clear-filter-effects")}get clearMarkup(){return this._messages.command("map.clear-markup")}get disableMapClick(){return this._messages.command("map.disable-map-click")}get displayExtentSelector(){return this._messages.command("map.display-extent-selector")}get enableMapClick(){return this._messages.command("map.enable-map-click")}get goToFeatures(){return this._messages.command("map.go-to-features")}get goToGeometry(){return this._messages.command("map.go-to-geometry")}get goToViewpoint(){return this._messages.command("map.go-to-viewpoint")}get goToScale(){return this._messages.command("map.go-to-scale")}get goToInitialViewpoint(){return this._messages.command("map.go-to-initial-viewpoint")}get goToLayerExtent(){return this._messages.command("map.go-to-layer-extent")}get hideExtentSelector(){return this._messages.command("map.hide-extent-selector")}get panToFeatures(){return this._messages.command("map.pan-to-features")}get panToGeometry(){return this._messages.command("map.pan-to-geometry")}get pauseSketch(){return this._messages.command("map.pause-sketch")}get removeLayers(){return this._messages.command("map.remove-layers")}get replace(){return this._messages.command("map.replace")}get replaceAdditionalLayers(){return this._messages.command("map.replace-additional-layers")}get replaceMmpk(){return this._messages.command("map.replace-mmpk")}get resumeSketch(){return this._messages.command("map.resume-sketch")}get rotateBy(){return this._messages.command("map.rotate-by")}get rotateTo(){return this._messages.command("map.rotate-to")}get refresh(){return this._messages.command("map.refresh")}get setViewMode(){return this._messages.command("map.set-view-mode")}get updateLayer(){return this._messages.command("map.update-layer")}get zoomToFeatures(){return this._messages.command("map.zoom-to-features")}get zoomToGeometry(){return this._messages.command("map.zoom-to-geometry")}get zoomIn(){return this._messages.command("map.zoom-in")}get zoomOut(){return this._messages.command("map.zoom-out")}get zoomToScale(){return this._messages.command("map.zoom-to-scale")}get zoomToInitialViewpoint(){return this._messages.command("map.zoom-to-initial-viewpoint")}get zoomToViewpoint(){return this._messages.command("map.zoom-to-viewpoint")}get zoomToLayerExtent(){return this._messages.command("map.zoom-to-layer-extent")}get zoomToLayerVisibleScale(){return this._messages.command("map.zoom-to-layer-visible-scale")}}export class MapEvents extends t{get initialized(){return this._messages.event("map.initialized")}get initializing(){return this._messages.event("map.initializing")}get markupAdded(){return this._messages.event("map.markup-added")}get markupCleared(){return this._messages.event("map.markup-cleared")}get navigationCompleted(){return this._messages.event("map.navigation-completed")}get refreshed(){return this._messages.event("map.refreshed")}get refreshing(){return this._messages.event("map.refreshing")}get rotated(){return this._messages.event("map.rotated")}get rotating(){return this._messages.event("map.rotating")}get switched(){return this._messages.event("map.switched")}get viewModeChanged(){return this._messages.event("map.view-mode-changed")}get viewpointChanged(){return this._messages.event("map.viewpoint-changed")}get imageExported(){return this._messages.event("map.image-exported")}}export class MapOperations extends s{get getUserCoordinatesInput(){return this._messages.operation("map.get-user-coordinates-input")}get getCoordinateTransformation(){return this._messages.operation("map.get-coordinate-transformation")}get exportImage(){return this._messages.operation("map.export-image")}get exportWebMapOrScene(){return this._messages.operation("map.export-web-map-or-scene")}get getMarkup(){return this._messages.operation("map.get-markup")}get getExtent(){return this._messages.operation("map.get-extent")}get getGeometryFromSelector(){return this._messages.operation("map.get-geometry-from-selector")}get getInitialViewpoint(){return this._messages.operation("map.get-initial-viewpoint")}get getViewpoint(){return this._messages.operation("map.get-viewpoint")}get getSpatialReference(){return this._messages.operation("map.get-spatial-reference")}get getVisibleCenter(){return this._messages.operation("map.get-visible-center")}get hide(){return this._messages.operation("map.hide")}get show(){return this._messages.operation("map.show")}get startSketch(){return this._messages.operation("map.start-sketch")}get stopSketch(){return this._messages.operation("map.stop-sketch")}get getViewInsets(){return this._messages.operation("map.get-view-insets")}}
1
+ import{CommandRegistry as e}from"../CommandRegistry.js";import{EventRegistry as t}from"../EventRegistry.js";import{OperationRegistry as s}from"../OperationRegistry.js";export var MarkupType;!function(e){e.UNKNOWN="Unknown",e.POLYGON="Polygon",e.POLYLINE="Polyline",e.TEXT="Text",e.PICTURE_MARKER="PictureMarker",e.PICTURE_FILL="PictureFill",e.COMPOSITE="Composite",e.MULTI="Multi"}(MarkupType||(MarkupType={}));export class MapCommands extends e{get addMarkup(){return this._messages.command("map.add-markup")}get addLayers(){return this._messages.command("map.add-layers")}get applyFilterEffect(){return this._messages.command("map.apply-filter-effect")}get applyLayerPreset(){return this._messages.command("map.apply-layer-preset")}get createNote(){return this._messages.command("map.create-note")}get editNote(){return this._messages.command("map.edit-note")}get removeFilterEffects(){return this._messages.command("map.remove-filter-effects")}get clearFilterEffects(){return this._messages.command("map.clear-filter-effects")}get clearMarkup(){return this._messages.command("map.clear-markup")}get disableMapClick(){return this._messages.command("map.disable-map-click")}get displayExtentSelector(){return this._messages.command("map.display-extent-selector")}get enableMapClick(){return this._messages.command("map.enable-map-click")}get goToFeatures(){return this._messages.command("map.go-to-features")}get goToGeometry(){return this._messages.command("map.go-to-geometry")}get goToViewpoint(){return this._messages.command("map.go-to-viewpoint")}get goToScale(){return this._messages.command("map.go-to-scale")}get goToInitialViewpoint(){return this._messages.command("map.go-to-initial-viewpoint")}get goToLayerExtent(){return this._messages.command("map.go-to-layer-extent")}get hideExtentSelector(){return this._messages.command("map.hide-extent-selector")}get hideMarkup(){return this._messages.command("map.hide-markup")}get panToFeatures(){return this._messages.command("map.pan-to-features")}get panToGeometry(){return this._messages.command("map.pan-to-geometry")}get pauseSketch(){return this._messages.command("map.pause-sketch")}get removeLayers(){return this._messages.command("map.remove-layers")}get replace(){return this._messages.command("map.replace")}get replaceAdditionalLayers(){return this._messages.command("map.replace-additional-layers")}get replaceMmpk(){return this._messages.command("map.replace-mmpk")}get resumeSketch(){return this._messages.command("map.resume-sketch")}get rotateBy(){return this._messages.command("map.rotate-by")}get rotateTo(){return this._messages.command("map.rotate-to")}get refresh(){return this._messages.command("map.refresh")}get setViewMode(){return this._messages.command("map.set-view-mode")}get showMarkup(){return this._messages.command("map.show-markup")}get updateLayer(){return this._messages.command("map.update-layer")}get zoomToFeatures(){return this._messages.command("map.zoom-to-features")}get zoomToGeometry(){return this._messages.command("map.zoom-to-geometry")}get zoomIn(){return this._messages.command("map.zoom-in")}get zoomOut(){return this._messages.command("map.zoom-out")}get zoomToScale(){return this._messages.command("map.zoom-to-scale")}get zoomToInitialViewpoint(){return this._messages.command("map.zoom-to-initial-viewpoint")}get zoomToViewpoint(){return this._messages.command("map.zoom-to-viewpoint")}get zoomToLayerExtent(){return this._messages.command("map.zoom-to-layer-extent")}get zoomToLayerVisibleScale(){return this._messages.command("map.zoom-to-layer-visible-scale")}}export class MapEvents extends t{get initialized(){return this._messages.event("map.initialized")}get initializing(){return this._messages.event("map.initializing")}get markupAdded(){return this._messages.event("map.markup-added")}get markupCleared(){return this._messages.event("map.markup-cleared")}get navigationCompleted(){return this._messages.event("map.navigation-completed")}get refreshed(){return this._messages.event("map.refreshed")}get refreshing(){return this._messages.event("map.refreshing")}get rotated(){return this._messages.event("map.rotated")}get rotating(){return this._messages.event("map.rotating")}get switched(){return this._messages.event("map.switched")}get viewModeChanged(){return this._messages.event("map.view-mode-changed")}get viewpointChanged(){return this._messages.event("map.viewpoint-changed")}get imageExported(){return this._messages.event("map.image-exported")}}export class MapOperations extends s{get getUserCoordinatesInput(){return this._messages.operation("map.get-user-coordinates-input")}get getCoordinateTransformation(){return this._messages.operation("map.get-coordinate-transformation")}get exportImage(){return this._messages.operation("map.export-image")}get exportWebMapOrScene(){return this._messages.operation("map.export-web-map-or-scene")}get getMarkup(){return this._messages.operation("map.get-markup")}get getExtent(){return this._messages.operation("map.get-extent")}get getGeometryFromSelector(){return this._messages.operation("map.get-geometry-from-selector")}get getInitialViewpoint(){return this._messages.operation("map.get-initial-viewpoint")}get getViewpoint(){return this._messages.operation("map.get-viewpoint")}get getSpatialReference(){return this._messages.operation("map.get-spatial-reference")}get getVisibleCenter(){return this._messages.operation("map.get-visible-center")}get hide(){return this._messages.operation("map.hide")}get show(){return this._messages.operation("map.show")}get startSketch(){return this._messages.operation("map.start-sketch")}get stopSketch(){return this._messages.operation("map.stop-sketch")}get getViewInsets(){return this._messages.operation("map.get-view-insets")}}
@@ -668,19 +668,57 @@
668
668
  },
669
669
  "AddMarkupArgs": {
670
670
  "additionalProperties": false,
671
- "description": "Arguments for the \"map.add-markup\" operation. Only available in Mobile.",
671
+ "description": "Arguments for the \"map.add-markup\" command.",
672
672
  "properties": {
673
+ "collection": {
674
+ "description": "The named collection of markup to operate on. If not specified the default markup collection will be used. Some markup collection names are used internally by Web: \"default\": The default markup layer. \"vgs-active-snapping-guides\": The active snap point when snapping. \"vgs-buffer\": Buffer graphics from OOTB buffer tools. \"vgs-context-marker\": Right click context marker on map. \"vgs-dirty-indicator\": Invalid geometry indicators used when editing. \"vgs-editing-control\": Edit frame and vertices while editing geometries. \"vgs-location-accuracy\": Location accuracy circle when geolocating. \"vgs-location-marker-*\": Location markers have this prefix followed by the marker id. \"vgs-map-notes\": Map Notes. \"vgs-measurement-labels\": Labels on measured graphics. \"vgs-other-snapping-guides\": Additional snapping point visualizations. \"vgs-self-snaps\": Used internally by snapping. \"vgs-sketching\": Temporary graphics used while drawing geometries. \"vgs-snapping-radius\": Snapping radius when snapping is active. \"vgs-transient-measurement-labels\": Measurement labels used while drawing.",
675
+ "type": "string"
676
+ },
673
677
  "graphics": {
674
- "description": "The graphics to add to the map.",
675
- "items": {
676
- "$ref": "#/definitions/esri.Graphic"
677
- },
678
- "type": "array"
678
+ "anyOf": [
679
+ {
680
+ "$ref": "#/definitions/CreateGraphicsResult"
681
+ },
682
+ {
683
+ "$ref": "#/definitions/esri.Graphic"
684
+ },
685
+ {
686
+ "items": {
687
+ "$ref": "#/definitions/esri.Graphic"
688
+ },
689
+ "type": "array"
690
+ },
691
+ {
692
+ "$ref": "#/definitions/esri.rest-api.Feature.Feature"
693
+ },
694
+ {
695
+ "$ref": "#/definitions/esri.FeatureSet"
696
+ },
697
+ {
698
+ "items": {
699
+ "anyOf": [
700
+ {
701
+ "$ref": "#/definitions/esri.Graphic"
702
+ },
703
+ {
704
+ "$ref": "#/definitions/esri.rest-api.Feature.Feature"
705
+ }
706
+ ]
707
+ },
708
+ "type": "array"
709
+ }
710
+ ],
711
+ "description": "The markup to add to the map. `GraphicsLike` is only available in Web."
712
+ },
713
+ "level": {
714
+ "$ref": "#/definitions/MarkupLevel",
715
+ "description": "The level (z-order) to assign the markup to. If not specified uses the same level as default markup."
716
+ },
717
+ "maps": {
718
+ "$ref": "MapsLike",
719
+ "description": "Map(s) to use for the command/operation."
679
720
  }
680
721
  },
681
- "required": [
682
- "graphics"
683
- ],
684
722
  "type": "object"
685
723
  },
686
724
  "AddNodeOrder": {
@@ -880,6 +918,25 @@
880
918
  ],
881
919
  "type": "object"
882
920
  },
921
+ "ClearMarkupArgs": {
922
+ "additionalProperties": false,
923
+ "description": "Arguments for the \"map.clear-markup\" command.",
924
+ "properties": {
925
+ "collection": {
926
+ "description": "The named collection of markup to operate on. If not specified the default markup collection will be used. Some markup collection names are used internally by Web: \"default\": The default markup layer. \"vgs-active-snapping-guides\": The active snap point when snapping. \"vgs-buffer\": Buffer graphics from OOTB buffer tools. \"vgs-context-marker\": Right click context marker on map. \"vgs-dirty-indicator\": Invalid geometry indicators used when editing. \"vgs-editing-control\": Edit frame and vertices while editing geometries. \"vgs-location-accuracy\": Location accuracy circle when geolocating. \"vgs-location-marker-*\": Location markers have this prefix followed by the marker id. \"vgs-map-notes\": Map Notes. \"vgs-measurement-labels\": Labels on measured graphics. \"vgs-other-snapping-guides\": Additional snapping point visualizations. \"vgs-self-snaps\": Used internally by snapping. \"vgs-sketching\": Temporary graphics used while drawing geometries. \"vgs-snapping-radius\": Snapping radius when snapping is active. \"vgs-transient-measurement-labels\": Measurement labels used while drawing.",
927
+ "type": "string"
928
+ },
929
+ "graphics": {
930
+ "$ref": "#/definitions/GraphicsLike",
931
+ "description": "The markup to clear. If not specified will clear all markup in the selected collection."
932
+ },
933
+ "maps": {
934
+ "$ref": "MapsLike",
935
+ "description": "Map(s) to use for the command/operation."
936
+ }
937
+ },
938
+ "type": "object"
939
+ },
883
940
  "ConfirmOperationArgs": {
884
941
  "additionalProperties": false,
885
942
  "description": "Arguments for the 'ui.confirm' operation.",
@@ -905,14 +962,74 @@
905
962
  },
906
963
  "CreateGraphicsArgs": {
907
964
  "additionalProperties": false,
908
- "description": "Arguments for the \"drawing.create-graphics\" operation. Only available in Mobile.",
965
+ "description": "Arguments for the \"drawing.create-graphics\" operation. `GeometryLike`, `FeaturesLike` and `SymbolLike` are only available in Web.",
909
966
  "properties": {
967
+ "features": {
968
+ "$ref": "#/definitions/FeaturesLike",
969
+ "description": "Features containing geometry to create graphics from. Web only."
970
+ },
910
971
  "geometry": {
911
- "$ref": "#/definitions/esri.Geometry",
972
+ "$ref": "#/definitions/GeometryLike",
912
973
  "description": "The geometry that was captured."
913
974
  },
975
+ "maps": {
976
+ "$ref": "MapsLike",
977
+ "description": "Map(s) to use for the command/operation."
978
+ },
914
979
  "symbol": {
915
- "$ref": "#/definitions/esri.Symbol",
980
+ "anyOf": [
981
+ {
982
+ "$ref": "#/definitions/esri.Symbol"
983
+ },
984
+ {
985
+ "$ref": "#/definitions/esri.rest-api.SimpleMarkerSymbol.SimpleMarkerSymbol"
986
+ },
987
+ {
988
+ "$ref": "#/definitions/esri.rest-api.SimpleLineSymbol.SimpleLineSymbol"
989
+ },
990
+ {
991
+ "$ref": "#/definitions/esri.rest-api.SimpleFillSymbol.SimpleFillSymbol"
992
+ },
993
+ {
994
+ "$ref": "#/definitions/esri.rest-api.PictureMarkerSymbol.PictureMarkerSymbol"
995
+ },
996
+ {
997
+ "$ref": "#/definitions/esri.rest-api.PictureFillSymbol.PictureFillSymbol"
998
+ },
999
+ {
1000
+ "$ref": "#/definitions/esri.SimpleMarkerSymbol"
1001
+ },
1002
+ {
1003
+ "$ref": "#/definitions/esri.PictureMarkerSymbol"
1004
+ },
1005
+ {
1006
+ "$ref": "#/definitions/esri.SimpleLineSymbol"
1007
+ },
1008
+ {
1009
+ "$ref": "#/definitions/esri.SimpleFillSymbol"
1010
+ },
1011
+ {
1012
+ "$ref": "#/definitions/esri.PictureFillSymbol"
1013
+ },
1014
+ {
1015
+ "$ref": "#/definitions/esri.PointSymbol3D"
1016
+ },
1017
+ {
1018
+ "$ref": "#/definitions/esri.rest-api.PointSymbol3D.PointSymbol3D"
1019
+ },
1020
+ {
1021
+ "$ref": "#/definitions/esri.LineSymbol3D"
1022
+ },
1023
+ {
1024
+ "$ref": "#/definitions/esri.rest-api.LineSymbol3D.LineSymbol3D"
1025
+ },
1026
+ {
1027
+ "$ref": "#/definitions/esri.PolygonSymbol3D"
1028
+ },
1029
+ {
1030
+ "$ref": "#/definitions/esri.rest-api.PolygonSymbol3D.PolygonSymbol3D"
1031
+ }
1032
+ ],
916
1033
  "description": "The symbol that should be used to create the graphic. If null, a default is provided."
917
1034
  }
918
1035
  },
@@ -1951,6 +2068,18 @@
1951
2068
  ],
1952
2069
  "description": "One or map extensions."
1953
2070
  },
2071
+ "MarkupLevel": {
2072
+ "description": "Levels (z-orders) to which markup can be assigned, listed from high to low.",
2073
+ "enum": [
2074
+ "custom1",
2075
+ "custom2",
2076
+ "custom3",
2077
+ "default",
2078
+ "labels",
2079
+ "ui"
2080
+ ],
2081
+ "type": "string"
2082
+ },
1954
2083
  "Model": {
1955
2084
  "additionalProperties": false,
1956
2085
  "description": "A model belonging to a component.",
@@ -2035,6 +2164,9 @@
2035
2164
  {
2036
2165
  "$ref": "#/definitions/esri.rest-api.FeatureLayer.FeatureLayer"
2037
2166
  },
2167
+ {
2168
+ "$ref": "#/definitions/esri.rest-api.GeoJSONLayer.GeoJSONLayer"
2169
+ },
2038
2170
  {
2039
2171
  "$ref": "#/definitions/esri.rest-api.GeoRSSLayer.GeoRSSLayer"
2040
2172
  },
@@ -2971,7 +3103,7 @@
2971
3103
  "$ref": "#/definitions/SetBasemapArgs"
2972
3104
  },
2973
3105
  "drawing.create-graphics": {
2974
- "description": "Creates graphics. In Web, creates graphics out of GeometryLike args, with the current symbols that are set on the DrawManager. In Mobile, creates graphics from the given CreateGraphicsArgs or CreateGraphicsArgs[] (or some GeometryLike args). Any provided symbol parameter is used, otherwise a default symbol is used.",
3106
+ "description": "Creates graphics. In Web, creates graphics out of GeometryLike or CreateGraphicsArgs, with the current symbols that are set on the DrawManager. In Mobile, creates graphics from the given CreateGraphicsArgs or CreateGraphicsArgs[] (or some GeometryLike args). Any provided symbol parameter is used, otherwise a default symbol is used.",
2975
3107
  "enum": [
2976
3108
  "drawing.create-graphics"
2977
3109
  ]
@@ -5998,6 +6130,105 @@
5998
6130
  },
5999
6131
  "type": "object"
6000
6132
  },
6133
+ "esri.rest-api.GeoJSONLayer.GeoJSONLayer": {
6134
+ "additionalProperties": false,
6135
+ "description": "The GeoJSON layer type references a GeoJSON or TXT file from a publicly-accessible web server. It then dynamically loads into the map at run time. The GeoJSON layer will maintain a reference to the GeoJSON resource. Web map spec:{@linkhttps://developers.arcgis.com/web-map-specification/objects/geoJsonLayer/}. Web scene spec:{@linkhttps://developers.arcgis.com/web-scene-specification/objects/geoJsonLayer/}.",
6136
+ "properties": {
6137
+ "blendMode": {
6138
+ "$ref": "#/definitions/esri.rest-api._LayerBase.BlendMode",
6139
+ "description": "Blend modes are used to blend layers together to create an interesting effect in a layer, or even to produce what seems like a new layer."
6140
+ },
6141
+ "disablePopup": {
6142
+ "description": "Indicates whether to allow a client to ignore popups defined by the service item.",
6143
+ "type": "boolean"
6144
+ },
6145
+ "effect": {
6146
+ "$ref": "#/definitions/esri.rest-api.Effect.Effect",
6147
+ "description": "Effect provides various filter functions to achieve different visual effects similar to how image filters (photo apps) work."
6148
+ },
6149
+ "id": {
6150
+ "description": "A unique identifying string for the layer.",
6151
+ "type": "string"
6152
+ },
6153
+ "layerDefinition": {
6154
+ "$ref": "#/definitions/esri.rest-api.LayerDefinition.LayerDefinition",
6155
+ "description": "A layerDefinition object defining the attribute schema and drawing information for the layer."
6156
+ },
6157
+ "layerType": {
6158
+ "description": "The type of layer.",
6159
+ "enum": [
6160
+ "GeoJSON"
6161
+ ],
6162
+ "type": "string"
6163
+ },
6164
+ "listMode": {
6165
+ "$ref": "esri.ListMode",
6166
+ "description": "Indicates how the layer should display in the table of contents. The known values are listed below. See{@linksupport /esri!ListMode}."
6167
+ },
6168
+ "maxScale": {
6169
+ "description": "A number representing the maximum scale at which the layer will be visible. The number is the scale's denominator; thus, a value of 2400 represents a scale of 1/2,400. A value of 0 indicates that the layer will be visible no matter how far you zoom in.",
6170
+ "type": "number"
6171
+ },
6172
+ "minScale": {
6173
+ "description": "A number representing the minimum scale at which the layer will be visible. The number is the scale's denominator; thus, a value of 2400 represents a scale of 1/2,400.",
6174
+ "type": "number"
6175
+ },
6176
+ "opacity": {
6177
+ "description": "The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency.",
6178
+ "type": "number"
6179
+ },
6180
+ "popupInfo": {
6181
+ "$ref": "#/definitions/esri.rest-api.PopupInfo.PopupInfo",
6182
+ "description": "A PopupInfo object defining the content of pop-up windows when you click or query a feature."
6183
+ },
6184
+ "refreshInterval": {
6185
+ "description": "When the refresh interval is set on a layer, the client must refresh that layer only, not the entire web map. The default value is '0', meaning the no refresh. You can enable a refresh interval on the following types of layers: ArcGIS Server web service, hosted feature layer, hosted tile layer, OGC WMS, OGS WMTS, tile layer, GeoRSS, Living Atlas layers, basemaps (including Bing Maps basemaps), CSV from the web with latitude and longitude fields, and KML when added to ArcGIS Online through the My Content page. See{@linkhttps://doc.arcgis.com/en/arcgis-online/create-maps/set-refresh-interval.htm}.",
6186
+ "type": "number"
6187
+ },
6188
+ "screenSizePerspective": {
6189
+ "description": "Apply perspective scaling to screen-size symbols.",
6190
+ "type": "boolean"
6191
+ },
6192
+ "showLabels": {
6193
+ "description": "Indicates whether to display labels for this layer. If true, labels will appear as defined in the labelingInfo property.",
6194
+ "type": "boolean"
6195
+ },
6196
+ "showLegend": {
6197
+ "description": "Indicates whether to allow map authors the ability to control what layers should be shown in a client's legend.",
6198
+ "type": "boolean"
6199
+ },
6200
+ "title": {
6201
+ "description": "A user-friendly title for the layer that can be used in a table of contents. If this is not included, then a title is derived from the service.",
6202
+ "type": "string"
6203
+ },
6204
+ "type": {
6205
+ "description": "(Deprecated, use layerType instead.) If the layer is referenced through a URL, but is not an ArcGIS web service, then this parameter can be supplied to denote the layer type. See{@linkportal /OperationalLayer!LegacyOperationalLayerType}and{@linkportal /BaseMapLayer!LegacyBaseMapLayerType}.",
6206
+ "enum": [
6207
+ "BingMapsAerial",
6208
+ "BingMapsHybrid",
6209
+ "BingMapsRoad",
6210
+ "CSV",
6211
+ "KML",
6212
+ "OpenStreetMap",
6213
+ "WMS",
6214
+ "WebTiledLayer"
6215
+ ],
6216
+ "type": "string"
6217
+ },
6218
+ "url": {
6219
+ "description": "The URL to the GeoJSON file that backs the layer.",
6220
+ "type": "string"
6221
+ },
6222
+ "visibility": {
6223
+ "description": "Determines whether the layer is initially visible in the web map.",
6224
+ "type": "boolean"
6225
+ }
6226
+ },
6227
+ "required": [
6228
+ "layerType"
6229
+ ],
6230
+ "type": "object"
6231
+ },
6001
6232
  "esri.rest-api.GeoRSSLayer.GeoRSSLayer": {
6002
6233
  "additionalProperties": false,
6003
6234
  "description": "GeoRSS feeds may contain any combination of points, lines, and polygons. Web clients use a GeoRSS to JSON request service. This service returns one to many feature collections with different geometry types. The returned JSON specifies the point, lines, and polygons symbols used to display the features in that layer. See{@linkhttps://developers.arcgis.com/web-map-specification/objects/geoRSSLayer/}.",
@@ -12331,7 +12562,7 @@
12331
12562
  "$ref": "#/definitions/Features"
12332
12563
  },
12333
12564
  "map.add-markup": {
12334
- "description": "Adds markup to the map(s). In Web, uses GraphicsLike args. In Mobile, uses AddMarkupArgs or some GraphicsLike args.",
12565
+ "description": "Adds markup to the map(s).",
12335
12566
  "enum": [
12336
12567
  "map.add-markup"
12337
12568
  ]
@@ -12377,16 +12608,7 @@
12377
12608
  "map.clear-markup:input": {
12378
12609
  "anyOf": [
12379
12610
  {
12380
- "$ref": "@vertigis.arcgis-extensions.mapping.MapExtension.MapExtension"
12381
- },
12382
- {
12383
- "items": {
12384
- "$ref": "@vertigis.arcgis-extensions.mapping.MapExtension.MapExtension"
12385
- },
12386
- "type": "array"
12387
- },
12388
- {
12389
- "$ref": "#/definitions/HasMaps"
12611
+ "$ref": "#/definitions/ClearMarkupArgs"
12390
12612
  },
12391
12613
  {
12392
12614
  "type": "null"