@vertigis/viewer-spec 58.9.1 → 58.10.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/app-config/web/GeocoderModelProperties.d.ts +15 -0
- package/app-config/web/GeocoderModelProperties.js +1 -0
- package/messaging/registry/geocode.d.ts +37 -1
- package/messaging/registry/geocode.js +1 -1
- package/messaging/schema/web-action.schema.json +30 -0
- package/package.json +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Geocoder, GeocoderProperties } from "@vertigis/arcgis-extensions/tasks/geocoding/Geocoder";
|
|
2
|
+
import type { ServiceModelProperties } from "../common/ServiceModelProperties";
|
|
3
|
+
/**
|
|
4
|
+
* Properties that can be passed into the constructor for GeocodersService.
|
|
5
|
+
*/
|
|
6
|
+
export interface GeocodersModelProperties extends ServiceModelProperties {
|
|
7
|
+
/**
|
|
8
|
+
* Contains all configured geocoders.
|
|
9
|
+
*/
|
|
10
|
+
geocoders?: (Geocoder | GeocoderProperties)[];
|
|
11
|
+
/**
|
|
12
|
+
* A subset of geocoders to be used for geocode operations.
|
|
13
|
+
*/
|
|
14
|
+
activeGeocoders: (Geocoder | GeocoderProperties)[];
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import type Geometry from "@arcgis/core/geometry/Geometry";
|
|
2
2
|
import type { Feature } from "@vertigis/arcgis-extensions/data/Feature.js";
|
|
3
3
|
import type { CountResult } from "@vertigis/arcgis-extensions/tasks/CountResult.js";
|
|
4
|
-
import type { AddressLike, GeocodeOptions } from "@vertigis/arcgis-extensions/tasks/geocoding/Geocoder";
|
|
4
|
+
import type { AddressLike, GeocodeOptions, Geocoder } from "@vertigis/arcgis-extensions/tasks/geocoding/Geocoder";
|
|
5
|
+
import type { Command } from "../Command.js";
|
|
6
|
+
import { CommandRegistry } from "../CommandRegistry.js";
|
|
5
7
|
import type { Operation } from "../Operation.js";
|
|
6
8
|
import { OperationRegistry } from "../OperationRegistry.js";
|
|
7
9
|
import type { Features } from "../common.js";
|
|
10
|
+
/**
|
|
11
|
+
* A type that represents a geocoder or an array of configurable geocoders.
|
|
12
|
+
*/
|
|
13
|
+
export type GeocodersLike = Geocoder | Geocoder[];
|
|
8
14
|
/**
|
|
9
15
|
* Arguments for the "geocode.geocode" and "geocode.count" operations.
|
|
10
16
|
*/
|
|
@@ -57,6 +63,24 @@ export interface ReverseGeocodeArgs {
|
|
|
57
63
|
*/
|
|
58
64
|
options: GeocodeOptions;
|
|
59
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* Arguments for the "geocode.update-default-geocoder" operation.
|
|
68
|
+
*/
|
|
69
|
+
export interface SetActiveGeocodersArgs {
|
|
70
|
+
/**
|
|
71
|
+
* Geocoders to be activated.
|
|
72
|
+
*/
|
|
73
|
+
geocoders: GeocodersLike;
|
|
74
|
+
}
|
|
75
|
+
export declare class GeocodeCommands extends CommandRegistry {
|
|
76
|
+
protected readonly _prefix = "geocode";
|
|
77
|
+
/**
|
|
78
|
+
* Sets given geocoders as active. Web only.
|
|
79
|
+
*
|
|
80
|
+
* @webOnly
|
|
81
|
+
*/
|
|
82
|
+
get setActiveGeocoders(): Command<SetActiveGeocodersArgs | GeocodersLike>;
|
|
83
|
+
}
|
|
60
84
|
export declare class GeocodeOperations extends OperationRegistry {
|
|
61
85
|
protected readonly _prefix = "geocode";
|
|
62
86
|
/**
|
|
@@ -84,4 +108,16 @@ export declare class GeocodeOperations extends OperationRegistry {
|
|
|
84
108
|
* supportsReverseGeocoding capability.
|
|
85
109
|
*/
|
|
86
110
|
get reverseGeocode(): Operation<ReverseGeocodeArgs, Feature>;
|
|
111
|
+
/**
|
|
112
|
+
* Returns all configured geocoders including the active ones. Web only.
|
|
113
|
+
*
|
|
114
|
+
* @webOnly
|
|
115
|
+
*/
|
|
116
|
+
get getGeocoders(): Operation<void, Geocoder[]>;
|
|
117
|
+
/**
|
|
118
|
+
* Returns the active configured geocoders. Web only.
|
|
119
|
+
*
|
|
120
|
+
* @webOnly
|
|
121
|
+
*/
|
|
122
|
+
get activeGeocoders(): Operation<void, Geocoder[]>;
|
|
87
123
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{CommandRegistry as e}from"../CommandRegistry.js";import{OperationRegistry as t}from"../OperationRegistry.js";export class GeocodeCommands extends e{_prefix="geocode";get setActiveGeocoders(){return this._get("set-active-geocoders")}}export class GeocodeOperations extends t{_prefix="geocode";get geocode(){return this._get("geocode")}get batchGeocode(){return this._get("batch-geocode")}get count(){return this._get("count")}get suggest(){return this._get("suggest")}get reverseGeocode(){return this._get("reverse-geocode")}get getGeocoders(){return this._get("get-geocoders")}get activeGeocoders(){return this._get("active-geocoders")}}
|
|
@@ -18879,6 +18879,18 @@
|
|
|
18879
18879
|
"filter-builder.set-filter:input": {
|
|
18880
18880
|
"$ref": "#/definitions/SetFilterArgs"
|
|
18881
18881
|
},
|
|
18882
|
+
"geocode.active-geocoders": {
|
|
18883
|
+
"description": "Returns the active configured geocoders. Web only.",
|
|
18884
|
+
"enum": [
|
|
18885
|
+
"geocode.active-geocoders"
|
|
18886
|
+
]
|
|
18887
|
+
},
|
|
18888
|
+
"geocode.active-geocoders:output": {
|
|
18889
|
+
"items": {
|
|
18890
|
+
"$ref": "@vertigis.arcgis-extensions.tasks.geocoding.Geocoder.Geocoder"
|
|
18891
|
+
},
|
|
18892
|
+
"type": "array"
|
|
18893
|
+
},
|
|
18882
18894
|
"geocode.batch-geocode": {
|
|
18883
18895
|
"description": "Finds locations corresponding to multiple addresses. The geocoder must have the supportsBatchGeocoding capability. Web only.",
|
|
18884
18896
|
"enum": [
|
|
@@ -18915,6 +18927,18 @@
|
|
|
18915
18927
|
"geocode.geocode:output": {
|
|
18916
18928
|
"$ref": "#/definitions/Features"
|
|
18917
18929
|
},
|
|
18930
|
+
"geocode.get-geocoders": {
|
|
18931
|
+
"description": "Returns all configured geocoders including the active ones. Web only.",
|
|
18932
|
+
"enum": [
|
|
18933
|
+
"geocode.get-geocoders"
|
|
18934
|
+
]
|
|
18935
|
+
},
|
|
18936
|
+
"geocode.get-geocoders:output": {
|
|
18937
|
+
"items": {
|
|
18938
|
+
"$ref": "@vertigis.arcgis-extensions.tasks.geocoding.Geocoder.Geocoder"
|
|
18939
|
+
},
|
|
18940
|
+
"type": "array"
|
|
18941
|
+
},
|
|
18918
18942
|
"geocode.reverse-geocode": {
|
|
18919
18943
|
"description": "Finds the address at a particular location. The geocoder must have the supportsReverseGeocoding capability.",
|
|
18920
18944
|
"enum": [
|
|
@@ -27537,6 +27561,9 @@
|
|
|
27537
27561
|
{
|
|
27538
27562
|
"$ref": "#/definitions/filter-builder.get-filter"
|
|
27539
27563
|
},
|
|
27564
|
+
{
|
|
27565
|
+
"$ref": "#/definitions/geocode.active-geocoders"
|
|
27566
|
+
},
|
|
27540
27567
|
{
|
|
27541
27568
|
"$ref": "#/definitions/geocode.batch-geocode"
|
|
27542
27569
|
},
|
|
@@ -27546,6 +27573,9 @@
|
|
|
27546
27573
|
{
|
|
27547
27574
|
"$ref": "#/definitions/geocode.geocode"
|
|
27548
27575
|
},
|
|
27576
|
+
{
|
|
27577
|
+
"$ref": "#/definitions/geocode.get-geocoders"
|
|
27578
|
+
},
|
|
27549
27579
|
{
|
|
27550
27580
|
"$ref": "#/definitions/geocode.reverse-geocode"
|
|
27551
27581
|
},
|
package/package.json
CHANGED
package/version.d.ts
CHANGED
package/version.js
CHANGED