@vertigis/viewer-spec 48.2.0 → 48.3.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.
@@ -17,6 +17,15 @@ export interface LayerEventArgs {
17
17
  */
18
18
  export interface ILayerContent {
19
19
  }
20
+ /**
21
+ * Arguments for the "layers.show-labels" and "layers.hide-labels" commands. If
22
+ * no 'maps' are specified, all active maps in the layout will be targeted. If
23
+ * no 'layers' are specified, all viable layers and sublayers within the 'maps'
24
+ * will be affected. If the 'layers' property includes (Sub)Layer references or
25
+ * ESRI (Sub)Layers, they must exist within one of the 'maps'.
26
+ */
27
+ export interface SetLabelVisibilityArgs extends HasLayers, HasMaps {
28
+ }
20
29
  /**
21
30
  * Arguments for the layer.set-symbol command.
22
31
  */
@@ -34,6 +43,18 @@ export declare class LayersCommands extends CommandRegistry {
34
43
  * @webOnly
35
44
  */
36
45
  get setSymbol(): Command<SetSymbolArgs>;
46
+ /**
47
+ * Turns on the layer's labels on the map.
48
+ *
49
+ * @webOnly
50
+ */
51
+ get showLabels(): Command<SetLabelVisibilityArgs>;
52
+ /**
53
+ * Turns off the layer's labels on the map.
54
+ *
55
+ * @webOnly
56
+ */
57
+ get hideLabels(): Command<SetLabelVisibilityArgs>;
37
58
  }
38
59
  export declare class LayersEvents extends EventRegistry {
39
60
  /**
@@ -1 +1 @@
1
- import{CommandRegistry}from"../CommandRegistry.js";import{EventRegistry}from"../EventRegistry.js";export class LayersCommands extends CommandRegistry{get ensureCanSetSymbol(){return this._messages.command("layers.ensure-can-set-symbol")}get setSymbol(){return this._messages.command("layers.set-symbol")}}export class LayersEvents extends EventRegistry{get visibilityChanged(){return this._messages.event("layers.visibility-changed")}}
1
+ import{CommandRegistry}from"../CommandRegistry.js";import{EventRegistry}from"../EventRegistry.js";export class LayersCommands extends CommandRegistry{get ensureCanSetSymbol(){return this._messages.command("layers.ensure-can-set-symbol")}get setSymbol(){return this._messages.command("layers.set-symbol")}get showLabels(){return this._messages.command("layers.show-labels")}get hideLabels(){return this._messages.command("layers.hide-labels")}}export class LayersEvents extends EventRegistry{get visibilityChanged(){return this._messages.event("layers.visibility-changed")}}
@@ -4331,6 +4331,21 @@
4331
4331
  ],
4332
4332
  "type": "object"
4333
4333
  },
4334
+ "SetLabelVisibilityArgs": {
4335
+ "additionalProperties": false,
4336
+ "description": "Arguments for the \"layers.show-labels\" and \"layers.hide-labels\" commands. If no 'maps' are specified, all active maps in the layout will be targeted. If no 'layers' are specified, all viable layers and sublayers within the 'maps' will be affected. If the 'layers' property includes (Sub)Layer references or ESRI (Sub)Layers, they must exist within one of the 'maps'.",
4337
+ "properties": {
4338
+ "layers": {
4339
+ "$ref": "#/definitions/LayersLike",
4340
+ "description": "Layer(s) to use for the command/operation."
4341
+ },
4342
+ "maps": {
4343
+ "$ref": "MapsLike",
4344
+ "description": "Map(s) to use for the command/operation."
4345
+ }
4346
+ },
4347
+ "type": "object"
4348
+ },
4334
4349
  "SetLayerComparisonDirectionArgs": {
4335
4350
  "additionalProperties": false,
4336
4351
  "description": "Arguments for the layer-comparison.set-direction command.",
@@ -15049,6 +15064,15 @@
15049
15064
  "layers.ensure-can-set-symbol:input": {
15050
15065
  "$ref": "#/definitions/SetSymbolArgs"
15051
15066
  },
15067
+ "layers.hide-labels": {
15068
+ "description": "Turns off the layer's labels on the map.",
15069
+ "enum": [
15070
+ "layers.hide-labels"
15071
+ ]
15072
+ },
15073
+ "layers.hide-labels:input": {
15074
+ "$ref": "#/definitions/SetLabelVisibilityArgs"
15075
+ },
15052
15076
  "layers.set-symbol": {
15053
15077
  "description": "Updates the symbol for the provided layer(s).",
15054
15078
  "enum": [
@@ -15058,6 +15082,15 @@
15058
15082
  "layers.set-symbol:input": {
15059
15083
  "$ref": "#/definitions/SetSymbolArgs"
15060
15084
  },
15085
+ "layers.show-labels": {
15086
+ "description": "Turns on the layer's labels on the map.",
15087
+ "enum": [
15088
+ "layers.show-labels"
15089
+ ]
15090
+ },
15091
+ "layers.show-labels:input": {
15092
+ "$ref": "#/definitions/SetLabelVisibilityArgs"
15093
+ },
15061
15094
  "location-marker.clear": {
15062
15095
  "description": "Removes all Markers.",
15063
15096
  "enum": [
@@ -18289,6 +18322,22 @@
18289
18322
  ],
18290
18323
  "type": "object"
18291
18324
  },
18325
+ {
18326
+ "additionalProperties": false,
18327
+ "properties": {
18328
+ "arguments": {
18329
+ "$ref": "#/definitions/layers.hide-labels:input"
18330
+ },
18331
+ "name": {
18332
+ "$ref": "#/definitions/layers.hide-labels"
18333
+ }
18334
+ },
18335
+ "required": [
18336
+ "name",
18337
+ "arguments"
18338
+ ],
18339
+ "type": "object"
18340
+ },
18292
18341
  {
18293
18342
  "additionalProperties": false,
18294
18343
  "properties": {
@@ -18305,6 +18354,22 @@
18305
18354
  ],
18306
18355
  "type": "object"
18307
18356
  },
18357
+ {
18358
+ "additionalProperties": false,
18359
+ "properties": {
18360
+ "arguments": {
18361
+ "$ref": "#/definitions/layers.show-labels:input"
18362
+ },
18363
+ "name": {
18364
+ "$ref": "#/definitions/layers.show-labels"
18365
+ }
18366
+ },
18367
+ "required": [
18368
+ "name",
18369
+ "arguments"
18370
+ ],
18371
+ "type": "object"
18372
+ },
18308
18373
  {
18309
18374
  "additionalProperties": false,
18310
18375
  "properties": {
@@ -19728,9 +19793,15 @@
19728
19793
  {
19729
19794
  "$ref": "#/definitions/layers.ensure-can-set-symbol"
19730
19795
  },
19796
+ {
19797
+ "$ref": "#/definitions/layers.hide-labels"
19798
+ },
19731
19799
  {
19732
19800
  "$ref": "#/definitions/layers.set-symbol"
19733
19801
  },
19802
+ {
19803
+ "$ref": "#/definitions/layers.show-labels"
19804
+ },
19734
19805
  {
19735
19806
  "$ref": "#/definitions/location-marker.clear"
19736
19807
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertigis/viewer-spec",
3
- "version": "48.2.0",
3
+ "version": "48.3.0",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "description": "VertiGIS Viewer Specification",
6
6
  "type": "module",
@@ -33,11 +33,11 @@
33
33
  },
34
34
  "author": "VertiGIS Ltd.",
35
35
  "peerDependencies": {
36
- "@vertigis/arcgis-extensions": ">= 35.1.0 < 36.0.0"
36
+ "@vertigis/arcgis-extensions": ">= 35.3.0 < 36.0.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@arcgis/core": "4.23.3",
40
- "@vertigis/arcgis-extensions": "35.1.0",
40
+ "@vertigis/arcgis-extensions": "35.3.0",
41
41
  "@prettier/plugin-xml": "2.2.0",
42
42
  "@types/glob": "7.2.0",
43
43
  "@types/node": "14.14.41",
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.2.0";
4
+ export declare const version = "48.3.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.2.0";
4
+ export const version = "48.3.0";