@vertigis/viewer-spec 48.6.0 → 48.7.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,7 +1,49 @@
1
+ import type { SpatialReference } from "@vertigis/arcgis-extensions/portal/SpatialReference";
2
+ import type { CoordinateFormat } from "../common/CoordinateFormat.js";
1
3
  import type { CoordinateModelProperties as CommonCoordinateModelProperties } from "../common/CoordinateModelProperties.js";
2
4
  import type { ServiceModelProperties } from "../common/ServiceModelProperties.js";
3
5
  /**
4
6
  * @inheritdoc
5
7
  */
6
8
  export interface CoordinateModelProperties extends CommonCoordinateModelProperties, ServiceModelProperties {
9
+ /**
10
+ * The ID of the active coordinate option being used in the application.
11
+ * Defaults to the first item in the list of coordinateOptions.
12
+ */
13
+ activeCoordinateOption?: string;
14
+ /**
15
+ * A list of configuration options for displaying map coordinates in the application.
16
+ */
17
+ coordinateOptions?: CoordinateOptionProperties[];
18
+ }
19
+ /**
20
+ * Options for configuring the display of map coordinates.
21
+ */
22
+ export interface CoordinateOptionProperties {
23
+ /**
24
+ * The unique ID of the Coordinate Option.
25
+ */
26
+ id: string;
27
+ /**
28
+ * The display name of the CoordinateOption.
29
+ */
30
+ title: string;
31
+ /**
32
+ * The format to display map coordinates in.
33
+ */
34
+ format: CoordinateFormat;
35
+ /**
36
+ * The spatial reference to display map coordinates in. If this property is
37
+ * not defined, the spatial reference of the map will be used.
38
+ */
39
+ spatialReference?: SpatialReference;
40
+ /**
41
+ * For LAT_LONG and XY coordinate formats, this property depicts the number
42
+ * of decimal places displayed. For MGRS and USNG coordinate formats, this
43
+ * property depicts the precision of the coordinates using an integer
44
+ * between 0 and 8 (inclusive). This Value is ignored by UTM coordinate
45
+ * formats. The default values for coordinate formats are as follows:
46
+ * LAT_LONG=4, XY=2, MGRS=5, and USNG=5.
47
+ */
48
+ precision?: number;
7
49
  }
@@ -1,37 +1,44 @@
1
+ import type { CoordinateFormat } from "../common/CoordinateFormat.js";
1
2
  import type { MapCoordinatesModelProperties as CommonMapCoordinatesModelProperties } from "../common/MapCoordinatesModelProperties.js";
2
3
  import type { ComponentModelProperties } from "./ComponentModelProperties.js";
3
- /**
4
- * The coordinate formats that can be shown by the MapCoordinates component.
5
- */
6
- export declare type CoordinateFormat = "xy" | "lat-long-dd" | "lat-long-ddm" | "lat-long-dms" | "mgrs" | "usng" | "utm";
7
4
  /**
8
5
  * @inheritdoc
9
6
  */
10
7
  export interface MapCoordinatesModelProperties extends CommonMapCoordinatesModelProperties, ComponentModelProperties {
11
8
  /**
12
9
  * The coordinate format that is displayed. The default is XY.
10
+ *
11
+ * @deprecated
13
12
  */
14
13
  coordinateFormat?: CoordinateFormat;
15
14
  /**
16
15
  * The number of decimal places displayed for LAT_LONG coordinate formats.
17
16
  * The value must be an integer between 0 and 8 (inclusive). The default is 4.
17
+ *
18
+ * @deprecated
18
19
  */
19
20
  decimalPlacesLatLong?: number;
20
21
  /**
21
22
  * The number of decimal places displayed for the XY coordinate format. The
22
23
  * value must be an integer between 0 and 8 (inclusive). The default is 2.
24
+ *
25
+ * @deprecated
23
26
  */
24
27
  decimalPlacesXY?: number;
25
28
  /**
26
29
  * The precision with which to represent the coordinates, when using the
27
30
  * MGRS format. The value must be an integer between 0 and 8 (inclusive).
28
31
  * The default is 5.
32
+ *
33
+ * @deprecated
29
34
  */
30
35
  precisionMGRS?: number;
31
36
  /**
32
37
  * The precision with which to represent the coordinates, when using the
33
38
  * USNG format. The value must be an integer between 0 and 8 (inclusive).
34
39
  * The default is 5.
40
+ *
41
+ * @deprecated
35
42
  */
36
43
  precisionUSNG?: number;
37
44
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertigis/viewer-spec",
3
- "version": "48.6.0",
3
+ "version": "48.7.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 = "48.6.0";
4
+ export declare const version = "48.7.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 = "48.6.0";
4
+ export const version = "48.7.0";