@vertigis/viewer-spec 46.4.1 → 46.4.2

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.
@@ -56,6 +56,19 @@ export interface ZoomToViewpointArgs {
56
56
  */
57
57
  viewpoint: ViewpointLike | string;
58
58
  }
59
+ /**
60
+ * The result of getting a Viewpoint.
61
+ */
62
+ export interface GetViewpointResult {
63
+ /**
64
+ * The map(s) used in the operation.
65
+ */
66
+ maps?: MapsLike;
67
+ /**
68
+ * The viewpoint.
69
+ */
70
+ viewpoint: Viewpoint;
71
+ }
59
72
  /**
60
73
  * Arguments for the map.zoom-to-layer-extent and
61
74
  * map.zoom-to-layer-visible-scale commands.
@@ -963,19 +976,21 @@ export declare class MapOperations extends OperationRegistry {
963
976
  /**
964
977
  * Returns the initial viewpoint for the active map or scene of the
965
978
  * specified map. If no map extension is specified, returns the initial
966
- * viewpoint for the first available map.
979
+ * viewpoint for the first available map. Also returns the map(s) used for
980
+ * the operation.
967
981
  *
968
982
  * @webOnly
969
983
  */
970
- get getInitialViewpoint(): Operation<Maps | void, Viewpoint>;
984
+ get getInitialViewpoint(): Operation<Maps | void, GetViewpointResult>;
971
985
  /**
972
986
  * Returns the current viewpoint for the active map or scene of the
973
987
  * specified map. If no map extension is specified, returns the viewpoint
974
- * for the first available map.
988
+ * for the first available map. Also returns the map(s) used for the
989
+ * operation.
975
990
  *
976
991
  * @webOnly
977
992
  */
978
- get getViewpoint(): Operation<Maps | void, Viewpoint>;
993
+ get getViewpoint(): Operation<Maps | void, GetViewpointResult>;
979
994
  /**
980
995
  * If a map extension ID is specified, returns the spatial reference for
981
996
  * that map. If no map extension ID is specified, returns the spatial
@@ -2820,6 +2820,24 @@
2820
2820
  ],
2821
2821
  "type": "object"
2822
2822
  },
2823
+ "GetViewpointResult": {
2824
+ "additionalProperties": false,
2825
+ "description": "The result of getting a Viewpoint.",
2826
+ "properties": {
2827
+ "maps": {
2828
+ "$ref": "MapsLike",
2829
+ "description": "The map(s) used in the operation."
2830
+ },
2831
+ "viewpoint": {
2832
+ "$ref": "#/definitions/esri.Viewpoint",
2833
+ "description": "The viewpoint."
2834
+ }
2835
+ },
2836
+ "required": [
2837
+ "viewpoint"
2838
+ ],
2839
+ "type": "object"
2840
+ },
2823
2841
  "GraphicsLike": {
2824
2842
  "anyOf": [
2825
2843
  {
@@ -14957,7 +14975,7 @@
14957
14975
  "$ref": "#/definitions/GetExtentResult"
14958
14976
  },
14959
14977
  "map.get-initial-viewpoint": {
14960
- "description": "Returns the initial viewpoint for the active map or scene of the specified map. If no map extension is specified, returns the initial viewpoint for the first available map.",
14978
+ "description": "Returns the initial viewpoint for the active map or scene of the specified map. If no map extension is specified, returns the initial viewpoint for the first available map. Also returns the map(s) used for the operation.",
14961
14979
  "enum": [
14962
14980
  "map.get-initial-viewpoint"
14963
14981
  ]
@@ -14982,7 +15000,7 @@
14982
15000
  ]
14983
15001
  },
14984
15002
  "map.get-initial-viewpoint:output": {
14985
- "$ref": "#/definitions/esri.Viewpoint"
15003
+ "$ref": "#/definitions/GetViewpointResult"
14986
15004
  },
14987
15005
  "map.get-markup": {
14988
15006
  "description": "Returns markup from the specified map that are intersected by the supplied geometry.",
@@ -15037,7 +15055,7 @@
15037
15055
  "$ref": "#/definitions/GetCoordinateResult"
15038
15056
  },
15039
15057
  "map.get-viewpoint": {
15040
- "description": "Returns the current viewpoint for the active map or scene of the specified map. If no map extension is specified, returns the viewpoint for the first available map.",
15058
+ "description": "Returns the current viewpoint for the active map or scene of the specified map. If no map extension is specified, returns the viewpoint for the first available map. Also returns the map(s) used for the operation.",
15041
15059
  "enum": [
15042
15060
  "map.get-viewpoint"
15043
15061
  ]
@@ -15062,7 +15080,7 @@
15062
15080
  ]
15063
15081
  },
15064
15082
  "map.get-viewpoint:output": {
15065
- "$ref": "#/definitions/esri.Viewpoint"
15083
+ "$ref": "#/definitions/GetViewpointResult"
15066
15084
  },
15067
15085
  "map.go-to-features": {
15068
15086
  "description": "Zooms to (without animation) one or many features on the targeted map(s).",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertigis/viewer-spec",
3
- "version": "46.4.1",
3
+ "version": "46.4.2",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "description": "VertiGIS Viewer Specification",
6
6
  "type": "module",
@@ -34,11 +34,11 @@
34
34
  },
35
35
  "author": "VertiGIS Ltd.",
36
36
  "peerDependencies": {
37
- "@vertigis/arcgis-extensions": ">= 34.2.3 < 35.0.0"
37
+ "@vertigis/arcgis-extensions": ">= 34.3.0 < 35.0.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@arcgis/core": "4.21.2",
41
- "@vertigis/arcgis-extensions": "34.2.3",
41
+ "@vertigis/arcgis-extensions": "34.3.0",
42
42
  "@types/glob": "7.2.0",
43
43
  "@types/node": "14.14.41",
44
44
  "@typescript-eslint/eslint-plugin": " 5.13.0",
package/version.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The current version of the Geocortex Viewer Specification.
3
3
  */
4
- export declare const version = "46.4.1";
4
+ export declare const version = "46.4.2";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The current version of the Geocortex Viewer Specification.
3
3
  */
4
- export const version = "46.4.1";
4
+ export const version = "46.4.2";