@vertigis/viewer-spec 50.1.0 → 50.2.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,6 @@
1
+ import type Geometry from "@arcgis/core/geometry/Geometry";
1
2
  import type Point from "@arcgis/core/geometry/Point";
3
+ import type { SpatialReference } from "@vertigis/arcgis-extensions/portal/SpatialReference";
2
4
  import type { Command } from "../Command.js";
3
5
  import { CommandRegistry } from "../CommandRegistry.js";
4
6
  import type { TimeSpan } from "../DotNetTypes.js";
@@ -7,6 +9,7 @@ import { EventRegistry } from "../EventRegistry.js";
7
9
  import type { Operation } from "../Operation.js";
8
10
  import { OperationRegistry } from "../OperationRegistry.js";
9
11
  import type { HasMaps, Maps } from "../common.js";
12
+ import type { CoordinateTransformation } from "./map.js";
10
13
  /**
11
14
  * Arguments for the "geolocation.accuracy-changed" event.
12
15
  */
@@ -144,6 +147,27 @@ declare enum GnssDeviceType {
144
147
  USB = "usb",
145
148
  EMULATOR = "emulator"
146
149
  }
150
+ /**
151
+ * Arguments for getting a list of geographic transformations.
152
+ */
153
+ export interface GetTransformationArgs {
154
+ /**
155
+ * The input spatial reference to transform. For example, the spatial
156
+ * reference of a GNSS receiver. If unspecified, defaults to WGS84.
157
+ */
158
+ inputSpatialReference?: SpatialReference;
159
+ /**
160
+ * Gets or sets the desired output spatial reference of the transformations.
161
+ * For example, the spatial reference of the map. If unspecified, the
162
+ * spatial reference of the first available map will be used.
163
+ */
164
+ outputSpatialReference?: SpatialReference;
165
+ /**
166
+ * Gets or sets the area of interest. If provided, this will be used to
167
+ * order the list of valid transformations in order of best-fit.
168
+ */
169
+ area?: Geometry;
170
+ }
147
171
  /**
148
172
  * Event args for the geolocation.gnss-lock-status-changed event.
149
173
  */
@@ -299,6 +323,13 @@ export declare class GeolocationOperations extends OperationRegistry {
299
323
  * not to perform this during startup.
300
324
  */
301
325
  get getPosition(): Operation<void, Point>;
326
+ /**
327
+ * Returns a list of valid coordinate transformations for given input and
328
+ * output spatial references.
329
+ *
330
+ * @mobileOnly
331
+ */
332
+ get getCoordinateTransformations(): Operation<GetTransformationArgs, CoordinateTransformation[]>;
302
333
  }
303
334
  export declare class GeolocationEvents extends EventRegistry {
304
335
  /**
@@ -1 +1 @@
1
- import{CommandRegistry}from"../CommandRegistry.js";import{EventRegistry}from"../EventRegistry.js";import{OperationRegistry}from"../OperationRegistry.js";export var GeolocateState;var GnssDeviceType;!function(e){e.DISABLED="Disabled",e.ENABLED="Enabled",e.RECENTERING="Recentering",e.RECENTERING_AND_REORIENTING="RecenteringAndReorienting"}(GeolocateState||(GeolocateState={})),function(e){e.INTEGRATED="integrated",e.BLUETOOTH="bluetooth",e.USB="usb",e.EMULATOR="emulator"}(GnssDeviceType||(GnssDeviceType={}));export var FixQuality;!function(e){e.INVALID="Invalid",e.GPS_FIX="GpsFix",e.DGPS_FIX="DgpsFix",e.PPS_FIX="PpsFix",e.RTK="Rtk",e.FLOAT_RTK="FloatRtk",e.ESTIMATED="Estimated",e.MANUAL_INPUT="ManualInput",e.SIMULATION="Simulation"}(FixQuality||(FixQuality={}));export var GpgsaFixMode;!function(e){e.NOT_AVAILABLE="NotAvailable",e.FIX_2D="Fix2D",e.FIX_3D="Fix3D"}(GpgsaFixMode||(GpgsaFixMode={}));export var GnssLockStatus;!function(e){e[e.Good=0]="Good",e[e.UncorrectedPosition=1]="UncorrectedPosition",e[e.EstimatedAccuracy=2]="EstimatedAccuracy",e[e.LostConnection=4]="LostConnection",e[e.NoLocation=16]="NoLocation",e[e.Integrated=32]="Integrated"}(GnssLockStatus||(GnssLockStatus={}));export class GeolocationCommands extends CommandRegistry{get autoRecenter(){return this._messages.command("geolocation.auto-recenter")}get autoRecenterAndReorient(){return this._messages.command("geolocation.auto-recenter-and-reorient")}get displayLocation(){return this._messages.command("geolocation.display-location")}get turnOffGeolocation(){return this._messages.command("geolocation.turn-off-geolocation")}get displayDeviceSettings(){return this._messages.command("geolocation.display-device-settings")}get displayDeviceMetadata(){return this._messages.command("geolocation.display-device-metadata")}get displayDeviceSelection(){return this._messages.command("geolocation.display-device-selection")}}export class GeolocationOperations extends OperationRegistry{get changeSource(){return this._messages.operation("geolocation.change-source")}get getActiveSource(){return this._messages.operation("geolocation.get-active-source")}get getAllSources(){return this._messages.operation("geolocation.get-all-sources")}get getCurrentState(){return this._messages.operation("geolocation.get-current-state")}get getLocationPermissionsEnabled(){return this._messages.operation("geolocation.get-location-permissions-enabled")}get getPosition(){return this._messages.operation("geolocation.get-position")}}export class GeolocationEvents extends EventRegistry{get accuracyChanged(){return this._messages.event("geolocation.accuracy-changed")}get metadataChanged(){return this._messages.event("geolocation.metadata-changed")}get autoRecenterStarted(){return this._messages.event("geolocation.auto-recenter-started")}get autoRecenterAndReorientStarted(){return this._messages.event("geolocation.auto-recenter-and-reorient-started")}get autoRecenterStopped(){return this._messages.event("geolocation.auto-recenter-stopped")}get autoRecenterAndReorientStopped(){return this._messages.event("geolocation.auto-recenter-and-reorient-stopped")}get gnssDeviceDetectionStarted(){return this._messages.event("geolocation.gnss-device-detection-started")}get gnssDeviceDetectionStopped(){return this._messages.event("geolocation.gnss-device-detection-stopped")}get gnssLockStatusChanged(){return this._messages.event("geolocation.gnss-lock-status-changed")}get headingChanged(){return this._messages.event("geolocation.heading-changed")}get positionAcquired(){return this._messages.event("geolocation.position-acquired")}get positionChanged(){return this._messages.event("geolocation.position-changed")}get positionLost(){return this._messages.event("geolocation.position-lost")}get sourceChanged(){return this._messages.event("geolocation.source-changed")}get statusChanged(){return this._messages.event("geolocation.status-changed")}get displayLocationStarted(){return this._messages.event("geolocation.display-location-started")}get displayLocationStopped(){return this._messages.event("geolocation.display-location-stopped")}get transformationChanged(){return this._messages.event("geolocation.gnss-transformation-changed")}get antennaHeightChanged(){return this._messages.event("geolocation.gnss-antenna-height-changed")}get locationDisplayModeChanged(){return this._messages.event("geolocation.display-mode-changed")}}
1
+ import{CommandRegistry}from"../CommandRegistry.js";import{EventRegistry}from"../EventRegistry.js";import{OperationRegistry}from"../OperationRegistry.js";export var GeolocateState;var GnssDeviceType;!function(e){e.DISABLED="Disabled",e.ENABLED="Enabled",e.RECENTERING="Recentering",e.RECENTERING_AND_REORIENTING="RecenteringAndReorienting"}(GeolocateState||(GeolocateState={})),function(e){e.INTEGRATED="integrated",e.BLUETOOTH="bluetooth",e.USB="usb",e.EMULATOR="emulator"}(GnssDeviceType||(GnssDeviceType={}));export var FixQuality;!function(e){e.INVALID="Invalid",e.GPS_FIX="GpsFix",e.DGPS_FIX="DgpsFix",e.PPS_FIX="PpsFix",e.RTK="Rtk",e.FLOAT_RTK="FloatRtk",e.ESTIMATED="Estimated",e.MANUAL_INPUT="ManualInput",e.SIMULATION="Simulation"}(FixQuality||(FixQuality={}));export var GpgsaFixMode;!function(e){e.NOT_AVAILABLE="NotAvailable",e.FIX_2D="Fix2D",e.FIX_3D="Fix3D"}(GpgsaFixMode||(GpgsaFixMode={}));export var GnssLockStatus;!function(e){e[e.Good=0]="Good",e[e.UncorrectedPosition=1]="UncorrectedPosition",e[e.EstimatedAccuracy=2]="EstimatedAccuracy",e[e.LostConnection=4]="LostConnection",e[e.NoLocation=16]="NoLocation",e[e.Integrated=32]="Integrated"}(GnssLockStatus||(GnssLockStatus={}));export class GeolocationCommands extends CommandRegistry{get autoRecenter(){return this._messages.command("geolocation.auto-recenter")}get autoRecenterAndReorient(){return this._messages.command("geolocation.auto-recenter-and-reorient")}get displayLocation(){return this._messages.command("geolocation.display-location")}get turnOffGeolocation(){return this._messages.command("geolocation.turn-off-geolocation")}get displayDeviceSettings(){return this._messages.command("geolocation.display-device-settings")}get displayDeviceMetadata(){return this._messages.command("geolocation.display-device-metadata")}get displayDeviceSelection(){return this._messages.command("geolocation.display-device-selection")}}export class GeolocationOperations extends OperationRegistry{get changeSource(){return this._messages.operation("geolocation.change-source")}get getActiveSource(){return this._messages.operation("geolocation.get-active-source")}get getAllSources(){return this._messages.operation("geolocation.get-all-sources")}get getCurrentState(){return this._messages.operation("geolocation.get-current-state")}get getLocationPermissionsEnabled(){return this._messages.operation("geolocation.get-location-permissions-enabled")}get getPosition(){return this._messages.operation("geolocation.get-position")}get getCoordinateTransformations(){return this._messages.operation("geolocation.get-coordinate-transformations")}}export class GeolocationEvents extends EventRegistry{get accuracyChanged(){return this._messages.event("geolocation.accuracy-changed")}get metadataChanged(){return this._messages.event("geolocation.metadata-changed")}get autoRecenterStarted(){return this._messages.event("geolocation.auto-recenter-started")}get autoRecenterAndReorientStarted(){return this._messages.event("geolocation.auto-recenter-and-reorient-started")}get autoRecenterStopped(){return this._messages.event("geolocation.auto-recenter-stopped")}get autoRecenterAndReorientStopped(){return this._messages.event("geolocation.auto-recenter-and-reorient-stopped")}get gnssDeviceDetectionStarted(){return this._messages.event("geolocation.gnss-device-detection-started")}get gnssDeviceDetectionStopped(){return this._messages.event("geolocation.gnss-device-detection-stopped")}get gnssLockStatusChanged(){return this._messages.event("geolocation.gnss-lock-status-changed")}get headingChanged(){return this._messages.event("geolocation.heading-changed")}get positionAcquired(){return this._messages.event("geolocation.position-acquired")}get positionChanged(){return this._messages.event("geolocation.position-changed")}get positionLost(){return this._messages.event("geolocation.position-lost")}get sourceChanged(){return this._messages.event("geolocation.source-changed")}get statusChanged(){return this._messages.event("geolocation.status-changed")}get displayLocationStarted(){return this._messages.event("geolocation.display-location-started")}get displayLocationStopped(){return this._messages.event("geolocation.display-location-stopped")}get transformationChanged(){return this._messages.event("geolocation.gnss-transformation-changed")}get antennaHeightChanged(){return this._messages.event("geolocation.gnss-antenna-height-changed")}get locationDisplayModeChanged(){return this._messages.event("geolocation.display-mode-changed")}}
@@ -1842,6 +1842,25 @@
1842
1842
  ],
1843
1843
  "type": "object"
1844
1844
  },
1845
+ "GetTransformationArgs": {
1846
+ "additionalProperties": false,
1847
+ "description": "Arguments for getting a list of geographic transformations.",
1848
+ "properties": {
1849
+ "area": {
1850
+ "$ref": "#/definitions/esri.Geometry",
1851
+ "description": "Gets or sets the area of interest. If provided, this will be used to order the list of valid transformations in order of best-fit."
1852
+ },
1853
+ "inputSpatialReference": {
1854
+ "$ref": "#/definitions/esri.rest-api.SpatialReference.SpatialReference",
1855
+ "description": "The input spatial reference to transform. For example, the spatial reference of a GNSS receiver. If unspecified, defaults to WGS84."
1856
+ },
1857
+ "outputSpatialReference": {
1858
+ "$ref": "#/definitions/esri.rest-api.SpatialReference.SpatialReference",
1859
+ "description": "Gets or sets the desired output spatial reference of the transformations. For example, the spatial reference of the map. If unspecified, the spatial reference of the first available map will be used."
1860
+ }
1861
+ },
1862
+ "type": "object"
1863
+ },
1845
1864
  "GetViewInsetsArgs": {
1846
1865
  "additionalProperties": false,
1847
1866
  "description": "Result of the \"map.get-view-insets\" operation.",
@@ -12864,6 +12883,21 @@
12864
12883
  },
12865
12884
  "type": "array"
12866
12885
  },
12886
+ "geolocation.get-coordinate-transformations": {
12887
+ "description": "Returns a list of valid coordinate transformations for given input and output spatial references.",
12888
+ "enum": [
12889
+ "geolocation.get-coordinate-transformations"
12890
+ ]
12891
+ },
12892
+ "geolocation.get-coordinate-transformations:input": {
12893
+ "$ref": "#/definitions/GetTransformationArgs"
12894
+ },
12895
+ "geolocation.get-coordinate-transformations:output": {
12896
+ "items": {
12897
+ "$ref": "#/definitions/CoordinateTransformation"
12898
+ },
12899
+ "type": "array"
12900
+ },
12867
12901
  "geolocation.get-current-state": {
12868
12902
  "description": "Gets the current geolocate state.",
12869
12903
  "enum": [
@@ -16948,6 +16982,22 @@
16948
16982
  ],
16949
16983
  "type": "object"
16950
16984
  },
16985
+ {
16986
+ "additionalProperties": false,
16987
+ "properties": {
16988
+ "arguments": {
16989
+ "$ref": "#/definitions/geolocation.get-coordinate-transformations:input"
16990
+ },
16991
+ "name": {
16992
+ "$ref": "#/definitions/geolocation.get-coordinate-transformations"
16993
+ }
16994
+ },
16995
+ "required": [
16996
+ "name",
16997
+ "arguments"
16998
+ ],
16999
+ "type": "object"
17000
+ },
16951
17001
  {
16952
17002
  "additionalProperties": false,
16953
17003
  "properties": {
@@ -17529,6 +17579,9 @@
17529
17579
  {
17530
17580
  "$ref": "#/definitions/geolocation.get-all-sources"
17531
17581
  },
17582
+ {
17583
+ "$ref": "#/definitions/geolocation.get-coordinate-transformations"
17584
+ },
17532
17585
  {
17533
17586
  "$ref": "#/definitions/geolocation.get-current-state"
17534
17587
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertigis/viewer-spec",
3
- "version": "50.1.0",
3
+ "version": "50.2.0",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "description": "VertiGIS Viewer Specification",
6
6
  "type": "module",
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 = "50.1.0";
4
+ export declare const version = "50.2.0";
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 = "50.1.0";
4
+ export const version = "50.2.0";