@vertigis/viewer-spec 49.7.0 → 49.9.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.
- package/analytics/AnalyticsContext.d.ts +28 -0
- package/analytics/AnalyticsContext.js +1 -0
- package/analytics/CommonAction.d.ts +89 -0
- package/analytics/CommonAction.js +1 -0
- package/analytics/WebAction.d.ts +102 -0
- package/analytics/WebAction.js +1 -0
- package/app-config/schema/common-app-config.schema.json +1 -1
- package/app-config/schema/mobile-app-config.schema.json +1 -1
- package/app-config/schema/web-app-config.schema.json +1 -1
- package/messaging/Command.d.ts +2 -1
- package/messaging/Message.d.ts +26 -0
- package/messaging/Operation.d.ts +2 -1
- package/messaging/registry/Commands.d.ts +4 -0
- package/messaging/registry/Commands.js +1 -1
- package/messaging/registry/app.d.ts +2 -2
- package/messaging/registry/map.d.ts +16 -0
- package/messaging/registry/map.js +1 -1
- package/messaging/registry/studioAnalytics.d.ts +24 -0
- package/messaging/registry/studioAnalytics.js +1 -0
- package/messaging/schema/common-action.schema.json +974 -393
- package/messaging/schema/common-event.schema.json +645 -110
- package/messaging/schema/mobile-action.schema.json +956 -375
- package/messaging/schema/mobile-event.schema.json +662 -127
- package/messaging/schema/web-action.schema.json +1429 -677
- package/messaging/schema/web-event.schema.json +692 -172
- package/package.json +16 -15
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/messaging/Command.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { CancelToken } from "@vertigis/arcgis-extensions/support/Cancellable";
|
|
2
|
+
import type { AnalyticsContext } from "../analytics/AnalyticsContext.js";
|
|
2
3
|
import type { Event } from "./Event.js";
|
|
3
4
|
import type { Message, MessageExecuteOptions } from "./Message.js";
|
|
4
5
|
/**
|
|
@@ -41,7 +42,7 @@ export interface Command<T = void> extends Message {
|
|
|
41
42
|
/**
|
|
42
43
|
* Execution context that will be passed in to each of the command's behaviors.
|
|
43
44
|
*/
|
|
44
|
-
export interface CommandContext<T> {
|
|
45
|
+
export interface CommandContext<T> extends AnalyticsContext {
|
|
45
46
|
/**
|
|
46
47
|
* The name of the command that is currently executing.
|
|
47
48
|
*/
|
package/messaging/Message.d.ts
CHANGED
|
@@ -20,4 +20,30 @@ export interface MessageExecuteOptions {
|
|
|
20
20
|
* Specify if the message was executed from a trusted source.
|
|
21
21
|
*/
|
|
22
22
|
trusted?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* The XML name of the layout component that initiated the action, if
|
|
25
|
+
* applicable. This will be available in the command context and can be used
|
|
26
|
+
* by message handlers for capturing analytics. Examples: "layer-list", "map", etc.
|
|
27
|
+
*/
|
|
28
|
+
analyticsComponentType?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The human-readable name of the layout component that initiated the
|
|
31
|
+
* action, if applicable. This will be available in the command context and
|
|
32
|
+
* can be used by message handlers for capturing analytics. Examples: "Layer
|
|
33
|
+
* List", "Basemap Picker", , "Left Panel", etc.
|
|
34
|
+
*/
|
|
35
|
+
analyticsComponentName?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Additional component-specific data indicating such things as the name of
|
|
38
|
+
* an item or area within a component that the user interacted with to
|
|
39
|
+
* trigger the command, if applicable. This will be available in the command
|
|
40
|
+
* context and can be used by message handlers for capturing analytics.
|
|
41
|
+
*
|
|
42
|
+
* Examples:
|
|
43
|
+
*
|
|
44
|
+
* - The name of a basemap selection.
|
|
45
|
+
* - The name of a button.
|
|
46
|
+
* - The name of a context menu item.
|
|
47
|
+
*/
|
|
48
|
+
analyticsComponentData?: string | number | boolean | string[];
|
|
23
49
|
}
|
package/messaging/Operation.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { CancelToken } from "@vertigis/arcgis-extensions/support/Cancellable";
|
|
2
|
+
import type { AnalyticsContext } from "../analytics/AnalyticsContext.js";
|
|
2
3
|
import type { Event } from "./Event.js";
|
|
3
4
|
import type { Message, MessageExecuteOptions } from "./Message.js";
|
|
4
5
|
/**
|
|
@@ -42,7 +43,7 @@ export interface Operation<T = void, TResult = undefined> extends Message {
|
|
|
42
43
|
/**
|
|
43
44
|
* Context that will be passed in to each behavior for an operation.
|
|
44
45
|
*/
|
|
45
|
-
export interface OperationContext<T = void, TResult = undefined> {
|
|
46
|
+
export interface OperationContext<T = void, TResult = undefined> extends AnalyticsContext {
|
|
46
47
|
/**
|
|
47
48
|
* The name of the operation that is currently executing.
|
|
48
49
|
*/
|
|
@@ -8,6 +8,7 @@ import { EditCommands } from "./edit.js";
|
|
|
8
8
|
import { FileCommands } from "./file.js";
|
|
9
9
|
import { GeolocationCommands } from "./geolocation.js";
|
|
10
10
|
import { GeometryToolbarCommands } from "./geometry-toolbar.js";
|
|
11
|
+
import { GeometryCommands } from "./geometry.js";
|
|
11
12
|
import { HighlightsCommands } from "./highlights.js";
|
|
12
13
|
import { IwtmCommands } from "./iwtm.js";
|
|
13
14
|
import { KpiCommands } from "./kpi.js";
|
|
@@ -26,6 +27,7 @@ import { ReportsCommands } from "./reports.js";
|
|
|
26
27
|
import { ResultsCommands } from "./results.js";
|
|
27
28
|
import { SearchCommands } from "./search.js";
|
|
28
29
|
import { SketchingCommands } from "./sketching.js";
|
|
30
|
+
import { StudioAnalyticsCommands } from "./studioAnalytics.js";
|
|
29
31
|
import { SystemCommands } from "./system.js";
|
|
30
32
|
import { UICommands } from "./ui.js";
|
|
31
33
|
import { ViewerCommands } from "./viewer.js";
|
|
@@ -39,6 +41,7 @@ export declare class Commands extends CommandRegistry {
|
|
|
39
41
|
readonly edit: EditCommands;
|
|
40
42
|
readonly file: FileCommands;
|
|
41
43
|
readonly geolocation: GeolocationCommands;
|
|
44
|
+
readonly geometry: GeometryCommands;
|
|
42
45
|
readonly geometryToolbar: GeometryToolbarCommands;
|
|
43
46
|
readonly highlights: HighlightsCommands;
|
|
44
47
|
readonly iwtm: IwtmCommands;
|
|
@@ -58,6 +61,7 @@ export declare class Commands extends CommandRegistry {
|
|
|
58
61
|
readonly results: ResultsCommands;
|
|
59
62
|
readonly search: SearchCommands;
|
|
60
63
|
readonly sketching: SketchingCommands;
|
|
64
|
+
readonly studioAnalytics: StudioAnalyticsCommands;
|
|
61
65
|
readonly system: SystemCommands;
|
|
62
66
|
readonly ui: UICommands;
|
|
63
67
|
readonly viewer: ViewerCommands;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{CommandRegistry}from"../CommandRegistry.js";import{AppCommands}from"./app.js";import{AuthCommands}from"./auth.js";import{BasemapCommands}from"./basemap.js";import{ChartsCommands}from"./charts.js";import{DrawingCommands}from"./drawing.js";import{EditCommands}from"./edit.js";import{FileCommands}from"./file.js";import{GeolocationCommands}from"./geolocation.js";import{GeometryToolbarCommands}from"./geometry-toolbar.js";import{HighlightsCommands}from"./highlights.js";import{IwtmCommands}from"./iwtm.js";import{KpiCommands}from"./kpi.js";import{LayerComparisonCommands}from"./layer-comparison.js";import{LayerPresetsCommands}from"./layer-presets.js";import{LayersCommands}from"./layers.js";import{LocationMarkerCommands}from"./location-marker.js";import{MapCommands}from"./map.js";import{MeasurementCommands}from"./measurement.js";import{OfflineCommands}from"./offline.js";import{PanelCommands}from"./panel.js";import{PhotosCommands}from"./photos.js";import{PrintCommands}from"./printing.js";import{RegionCommands}from"./region.js";import{ReportsCommands}from"./reports.js";import{ResultsCommands}from"./results.js";import{SearchCommands}from"./search.js";import{SketchingCommands}from"./sketching.js";import{SystemCommands}from"./system.js";import{UICommands}from"./ui.js";import{ViewerCommands}from"./viewer.js";import{WorkflowCommands}from"./workflow.js";export class Commands extends CommandRegistry{constructor(){super(...arguments),this.app=new AppCommands(this._messages),this.auth=new AuthCommands(this._messages),this.basemap=new BasemapCommands(this._messages),this.charts=new ChartsCommands(this._messages),this.drawing=new DrawingCommands(this._messages),this.edit=new EditCommands(this._messages),this.file=new FileCommands(this._messages),this.geolocation=new GeolocationCommands(this._messages),this.geometryToolbar=new GeometryToolbarCommands(this._messages),this.highlights=new HighlightsCommands(this._messages),this.iwtm=new IwtmCommands(this._messages),this.kpi=new KpiCommands(this._messages),this.layers=new LayersCommands(this._messages),this.layerComparison=new LayerComparisonCommands(this._messages),this.layerPresets=new LayerPresetsCommands(this._messages),this.locationMarker=new LocationMarkerCommands(this._messages),this.map=new MapCommands(this._messages),this.measurement=new MeasurementCommands(this._messages),this.offline=new OfflineCommands(this._messages),this.panel=new PanelCommands(this._messages),this.photos=new PhotosCommands(this._messages),this.printing=new PrintCommands(this._messages),this.region=new RegionCommands(this._messages),this.reports=new ReportsCommands(this._messages),this.results=new ResultsCommands(this._messages),this.search=new SearchCommands(this._messages),this.sketching=new SketchingCommands(this._messages),this.system=new SystemCommands(this._messages),this.ui=new UICommands(this._messages),this.viewer=new ViewerCommands(this._messages),this.workflow=new WorkflowCommands(this._messages)}}
|
|
1
|
+
import{CommandRegistry}from"../CommandRegistry.js";import{AppCommands}from"./app.js";import{AuthCommands}from"./auth.js";import{BasemapCommands}from"./basemap.js";import{ChartsCommands}from"./charts.js";import{DrawingCommands}from"./drawing.js";import{EditCommands}from"./edit.js";import{FileCommands}from"./file.js";import{GeolocationCommands}from"./geolocation.js";import{GeometryToolbarCommands}from"./geometry-toolbar.js";import{GeometryCommands}from"./geometry.js";import{HighlightsCommands}from"./highlights.js";import{IwtmCommands}from"./iwtm.js";import{KpiCommands}from"./kpi.js";import{LayerComparisonCommands}from"./layer-comparison.js";import{LayerPresetsCommands}from"./layer-presets.js";import{LayersCommands}from"./layers.js";import{LocationMarkerCommands}from"./location-marker.js";import{MapCommands}from"./map.js";import{MeasurementCommands}from"./measurement.js";import{OfflineCommands}from"./offline.js";import{PanelCommands}from"./panel.js";import{PhotosCommands}from"./photos.js";import{PrintCommands}from"./printing.js";import{RegionCommands}from"./region.js";import{ReportsCommands}from"./reports.js";import{ResultsCommands}from"./results.js";import{SearchCommands}from"./search.js";import{SketchingCommands}from"./sketching.js";import{StudioAnalyticsCommands}from"./studioAnalytics.js";import{SystemCommands}from"./system.js";import{UICommands}from"./ui.js";import{ViewerCommands}from"./viewer.js";import{WorkflowCommands}from"./workflow.js";export class Commands extends CommandRegistry{constructor(){super(...arguments),this.app=new AppCommands(this._messages),this.auth=new AuthCommands(this._messages),this.basemap=new BasemapCommands(this._messages),this.charts=new ChartsCommands(this._messages),this.drawing=new DrawingCommands(this._messages),this.edit=new EditCommands(this._messages),this.file=new FileCommands(this._messages),this.geolocation=new GeolocationCommands(this._messages),this.geometry=new GeometryCommands(this._messages),this.geometryToolbar=new GeometryToolbarCommands(this._messages),this.highlights=new HighlightsCommands(this._messages),this.iwtm=new IwtmCommands(this._messages),this.kpi=new KpiCommands(this._messages),this.layers=new LayersCommands(this._messages),this.layerComparison=new LayerComparisonCommands(this._messages),this.layerPresets=new LayerPresetsCommands(this._messages),this.locationMarker=new LocationMarkerCommands(this._messages),this.map=new MapCommands(this._messages),this.measurement=new MeasurementCommands(this._messages),this.offline=new OfflineCommands(this._messages),this.panel=new PanelCommands(this._messages),this.photos=new PhotosCommands(this._messages),this.printing=new PrintCommands(this._messages),this.region=new RegionCommands(this._messages),this.reports=new ReportsCommands(this._messages),this.results=new ResultsCommands(this._messages),this.search=new SearchCommands(this._messages),this.sketching=new SketchingCommands(this._messages),this.studioAnalytics=new StudioAnalyticsCommands(this._messages),this.system=new SystemCommands(this._messages),this.ui=new UICommands(this._messages),this.viewer=new ViewerCommands(this._messages),this.workflow=new WorkflowCommands(this._messages)}}
|
|
@@ -206,8 +206,8 @@ export declare class AppOperations extends OperationRegistry {
|
|
|
206
206
|
get getPersistentData(): Operation<StorageDataArgs, unknown>;
|
|
207
207
|
}
|
|
208
208
|
/**
|
|
209
|
-
* Arguments for the reading app.*-persistent-data operations. Only available in
|
|
210
|
-
* Geocortex Mobile Viewer.
|
|
209
|
+
* Arguments for the reading app.*-persistent-data operations. Only available in
|
|
210
|
+
* the Geocortex Mobile Viewer.
|
|
211
211
|
*/
|
|
212
212
|
export interface StorageDataArgs {
|
|
213
213
|
/**
|
|
@@ -552,6 +552,15 @@ export interface ReplaceMapArgs {
|
|
|
552
552
|
*/
|
|
553
553
|
mapExtension: MapExtension;
|
|
554
554
|
}
|
|
555
|
+
/**
|
|
556
|
+
* Arguments for the "map.set-view-mode" command.
|
|
557
|
+
*/
|
|
558
|
+
export interface SetViewModeArgs extends HasMaps {
|
|
559
|
+
/**
|
|
560
|
+
* The new view mode for the specified map(s).
|
|
561
|
+
*/
|
|
562
|
+
viewMode: ViewMode;
|
|
563
|
+
}
|
|
555
564
|
/**
|
|
556
565
|
* Arguments for the "map.start-sketch" operation.
|
|
557
566
|
*/
|
|
@@ -825,6 +834,13 @@ export declare class MapCommands extends CommandRegistry {
|
|
|
825
834
|
* @mobileOnly
|
|
826
835
|
*/
|
|
827
836
|
get refresh(): Command<MapExtensionArgs>;
|
|
837
|
+
/**
|
|
838
|
+
* Changes the view mode of a map to the specified mode, if supported. If no
|
|
839
|
+
* maps are specified, all maps will be targeted.
|
|
840
|
+
*
|
|
841
|
+
* @webOnly
|
|
842
|
+
*/
|
|
843
|
+
get setViewMode(): Command<ViewMode | SetViewModeArgs>;
|
|
828
844
|
/**
|
|
829
845
|
* Updates a layer in the map.
|
|
830
846
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{CommandRegistry}from"../CommandRegistry.js";import{EventRegistry}from"../EventRegistry.js";import{OperationRegistry}from"../OperationRegistry.js";export class MapCommands extends CommandRegistry{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 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 EventRegistry{get initialized(){return this._messages.event("map.initialized")}get initializing(){return this._messages.event("map.initializing")}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 viewModeChanged(){return this._messages.event("map.view-mode-changed")}get viewpointChanged(){return this._messages.event("map.viewpoint-changed")}}export class MapOperations extends OperationRegistry{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}from"../CommandRegistry.js";import{EventRegistry}from"../EventRegistry.js";import{OperationRegistry}from"../OperationRegistry.js";export class MapCommands extends CommandRegistry{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 EventRegistry{get initialized(){return this._messages.event("map.initialized")}get initializing(){return this._messages.event("map.initializing")}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 viewModeChanged(){return this._messages.event("map.view-mode-changed")}get viewpointChanged(){return this._messages.event("map.viewpoint-changed")}}export class MapOperations extends OperationRegistry{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")}}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Command } from "../Command.js";
|
|
2
|
+
import { CommandRegistry } from "../CommandRegistry.js";
|
|
3
|
+
/**
|
|
4
|
+
* Arguments for the 'studio-analytics.track-custom-event' command.
|
|
5
|
+
*/
|
|
6
|
+
export interface TrackCustomEventArgs {
|
|
7
|
+
/**
|
|
8
|
+
* The name of the event. The event name should be in kebab-case, present
|
|
9
|
+
* tense, and follow a `{noun phrase}-{verb}` pattern, where `{verb}` is a
|
|
10
|
+
* single word without hyphens. Example: "parcel-boundary-move".
|
|
11
|
+
*/
|
|
12
|
+
name: string;
|
|
13
|
+
/**
|
|
14
|
+
* Optional. Additional event-specific data of interest.
|
|
15
|
+
*/
|
|
16
|
+
payload?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare class StudioAnalyticsCommands extends CommandRegistry {
|
|
19
|
+
/**
|
|
20
|
+
* Sends a custom event to VertiGIS Studio Analytics. If the app is not
|
|
21
|
+
* configured to use Analytics, then nothing will happen.
|
|
22
|
+
*/
|
|
23
|
+
get trackCustomEvent(): Command<TrackCustomEventArgs>;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{CommandRegistry}from"../CommandRegistry.js";export class StudioAnalyticsCommands extends CommandRegistry{get trackCustomEvent(){return this._messages.command("studio-analytics.track-custom-event")}}
|