@feltmaps/js-sdk 1.5.0-next.9 → 1.5.1
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/dist/client.cjs +1 -1
- package/dist/client.d.cts +264 -24
- package/dist/client.d.ts +264 -24
- package/dist/client.js +1 -1
- package/dist/handler.cjs +1 -1
- package/dist/handler.d.cts +1017 -263
- package/dist/handler.d.ts +1017 -263
- package/dist/handler.js +1 -1
- package/dist/types-CnYUajGG.d.cts +6657 -0
- package/dist/types-CnYUajGG.d.ts +6657 -0
- package/handler.d.ts +1017 -263
- package/handler.js +1 -1
- package/package.json +8 -7
- package/types-CnYUajGG.d.ts +6657 -0
- package/dist/types-6AWHhIPp.d.cts +0 -3294
- package/dist/types-6AWHhIPp.d.ts +0 -3294
- package/types-6AWHhIPp.d.ts +0 -3294
package/types-6AWHhIPp.d.ts
DELETED
|
@@ -1,3294 +0,0 @@
|
|
|
1
|
-
import { ZodRawShape, objectOutputType, ZodTypeAny, z } from 'zod';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* A selection of generic utility types
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
|
|
8
|
-
type PromiseOrNot<T> = T | Promise<T>;
|
|
9
|
-
/**
|
|
10
|
-
* A better type inference for zod schemas that retains the TSDoc comments
|
|
11
|
-
* from the members in the compiled output.
|
|
12
|
-
*/
|
|
13
|
-
type zInfer<T extends {
|
|
14
|
-
shape: ZodRawShape;
|
|
15
|
-
}> = objectOutputType<T["shape"], ZodTypeAny, "strip">;
|
|
16
|
-
|
|
17
|
-
declare const PlaceCreateSchema: z.ZodObject<Omit<{
|
|
18
|
-
symbol: z.ZodOptional<z.ZodString>;
|
|
19
|
-
type: z.ZodLiteral<"Place">;
|
|
20
|
-
coordinates: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
21
|
-
id: z.ZodOptional<z.ZodString>;
|
|
22
|
-
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
-
color: z.ZodOptional<z.ZodString>;
|
|
24
|
-
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
25
|
-
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
26
|
-
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
27
|
-
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
28
|
-
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
-
frame: z.ZodOptional<z.ZodNullable<z.ZodEnum<["frame-circle", "frame-square"]>>>;
|
|
30
|
-
hideLabel: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
-
}, "id">, "strip", z.ZodTypeAny, {
|
|
32
|
-
type: "Place";
|
|
33
|
-
coordinates: [number, number];
|
|
34
|
-
symbol?: string | undefined;
|
|
35
|
-
groupId?: string | null | undefined;
|
|
36
|
-
color?: string | undefined;
|
|
37
|
-
name?: string | null | undefined;
|
|
38
|
-
description?: string | null | undefined;
|
|
39
|
-
attributes?: Record<string, unknown> | undefined;
|
|
40
|
-
interaction?: "default" | "locked" | undefined;
|
|
41
|
-
imageUrl?: string | null | undefined;
|
|
42
|
-
frame?: "frame-circle" | "frame-square" | null | undefined;
|
|
43
|
-
hideLabel?: boolean | undefined;
|
|
44
|
-
}, {
|
|
45
|
-
type: "Place";
|
|
46
|
-
coordinates: [number, number];
|
|
47
|
-
symbol?: string | undefined;
|
|
48
|
-
groupId?: string | null | undefined;
|
|
49
|
-
color?: string | undefined;
|
|
50
|
-
name?: string | null | undefined;
|
|
51
|
-
description?: string | null | undefined;
|
|
52
|
-
attributes?: Record<string, unknown> | undefined;
|
|
53
|
-
interaction?: "default" | "locked" | undefined;
|
|
54
|
-
imageUrl?: string | null | undefined;
|
|
55
|
-
frame?: "frame-circle" | "frame-square" | null | undefined;
|
|
56
|
-
hideLabel?: boolean | undefined;
|
|
57
|
-
}>;
|
|
58
|
-
declare const PathCreateSchema: z.ZodObject<Omit<{
|
|
59
|
-
type: z.ZodLiteral<"Path">;
|
|
60
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
61
|
-
id: z.ZodOptional<z.ZodString>;
|
|
62
|
-
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
|
-
color: z.ZodOptional<z.ZodString>;
|
|
64
|
-
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
65
|
-
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
66
|
-
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
67
|
-
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
68
|
-
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
69
|
-
strokeOpacity: z.ZodOptional<z.ZodNumber>;
|
|
70
|
-
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
71
|
-
strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
72
|
-
distanceMarker: z.ZodOptional<z.ZodBoolean>;
|
|
73
|
-
endCaps: z.ZodOptional<z.ZodBoolean>;
|
|
74
|
-
routingMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["driving", "cycling", "walking", "flying"]>>>;
|
|
75
|
-
}, "id">, "strip", z.ZodTypeAny, {
|
|
76
|
-
type: "Path";
|
|
77
|
-
coordinates: [number, number][][];
|
|
78
|
-
groupId?: string | null | undefined;
|
|
79
|
-
color?: string | undefined;
|
|
80
|
-
name?: string | null | undefined;
|
|
81
|
-
description?: string | null | undefined;
|
|
82
|
-
attributes?: Record<string, unknown> | undefined;
|
|
83
|
-
interaction?: "default" | "locked" | undefined;
|
|
84
|
-
imageUrl?: string | null | undefined;
|
|
85
|
-
strokeOpacity?: number | undefined;
|
|
86
|
-
strokeWidth?: number | undefined;
|
|
87
|
-
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
88
|
-
distanceMarker?: boolean | undefined;
|
|
89
|
-
endCaps?: boolean | undefined;
|
|
90
|
-
routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
|
|
91
|
-
}, {
|
|
92
|
-
type: "Path";
|
|
93
|
-
coordinates: [number, number][][];
|
|
94
|
-
groupId?: string | null | undefined;
|
|
95
|
-
color?: string | undefined;
|
|
96
|
-
name?: string | null | undefined;
|
|
97
|
-
description?: string | null | undefined;
|
|
98
|
-
attributes?: Record<string, unknown> | undefined;
|
|
99
|
-
interaction?: "default" | "locked" | undefined;
|
|
100
|
-
imageUrl?: string | null | undefined;
|
|
101
|
-
strokeOpacity?: number | undefined;
|
|
102
|
-
strokeWidth?: number | undefined;
|
|
103
|
-
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
104
|
-
distanceMarker?: boolean | undefined;
|
|
105
|
-
endCaps?: boolean | undefined;
|
|
106
|
-
routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
|
|
107
|
-
}>;
|
|
108
|
-
declare const PolygonCreateSchema: z.ZodObject<Omit<{
|
|
109
|
-
type: z.ZodLiteral<"Polygon">;
|
|
110
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
111
|
-
id: z.ZodOptional<z.ZodString>;
|
|
112
|
-
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
113
|
-
color: z.ZodOptional<z.ZodString>;
|
|
114
|
-
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
115
|
-
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
116
|
-
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
117
|
-
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
118
|
-
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
119
|
-
strokeOpacity: z.ZodOptional<z.ZodNumber>;
|
|
120
|
-
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
121
|
-
strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
122
|
-
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
123
|
-
areaMarker: z.ZodOptional<z.ZodBoolean>;
|
|
124
|
-
}, "id">, "strip", z.ZodTypeAny, {
|
|
125
|
-
type: "Polygon";
|
|
126
|
-
coordinates: [number, number][][];
|
|
127
|
-
groupId?: string | null | undefined;
|
|
128
|
-
color?: string | undefined;
|
|
129
|
-
name?: string | null | undefined;
|
|
130
|
-
description?: string | null | undefined;
|
|
131
|
-
attributes?: Record<string, unknown> | undefined;
|
|
132
|
-
interaction?: "default" | "locked" | undefined;
|
|
133
|
-
imageUrl?: string | null | undefined;
|
|
134
|
-
strokeOpacity?: number | undefined;
|
|
135
|
-
strokeWidth?: number | undefined;
|
|
136
|
-
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
137
|
-
fillOpacity?: number | undefined;
|
|
138
|
-
areaMarker?: boolean | undefined;
|
|
139
|
-
}, {
|
|
140
|
-
type: "Polygon";
|
|
141
|
-
coordinates: [number, number][][];
|
|
142
|
-
groupId?: string | null | undefined;
|
|
143
|
-
color?: string | undefined;
|
|
144
|
-
name?: string | null | undefined;
|
|
145
|
-
description?: string | null | undefined;
|
|
146
|
-
attributes?: Record<string, unknown> | undefined;
|
|
147
|
-
interaction?: "default" | "locked" | undefined;
|
|
148
|
-
imageUrl?: string | null | undefined;
|
|
149
|
-
strokeOpacity?: number | undefined;
|
|
150
|
-
strokeWidth?: number | undefined;
|
|
151
|
-
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
152
|
-
fillOpacity?: number | undefined;
|
|
153
|
-
areaMarker?: boolean | undefined;
|
|
154
|
-
}>;
|
|
155
|
-
declare const CircleCreateSchema: z.ZodObject<Omit<{
|
|
156
|
-
type: z.ZodLiteral<"Circle">;
|
|
157
|
-
coordinates: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
158
|
-
id: z.ZodOptional<z.ZodString>;
|
|
159
|
-
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
160
|
-
color: z.ZodOptional<z.ZodString>;
|
|
161
|
-
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
162
|
-
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
163
|
-
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
164
|
-
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
165
|
-
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
166
|
-
strokeOpacity: z.ZodOptional<z.ZodNumber>;
|
|
167
|
-
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
168
|
-
strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
169
|
-
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
170
|
-
radius: z.ZodNumber;
|
|
171
|
-
radiusDisplayAngle: z.ZodOptional<z.ZodNumber>;
|
|
172
|
-
radiusDisplayUnit: z.ZodOptional<z.ZodNullable<z.ZodEnum<["meter", "kilometer", "foot", "mile"]>>>;
|
|
173
|
-
radiusMarker: z.ZodOptional<z.ZodBoolean>;
|
|
174
|
-
}, "id">, "strip", z.ZodTypeAny, {
|
|
175
|
-
type: "Circle";
|
|
176
|
-
coordinates: [number, number];
|
|
177
|
-
radius: number;
|
|
178
|
-
groupId?: string | null | undefined;
|
|
179
|
-
color?: string | undefined;
|
|
180
|
-
name?: string | null | undefined;
|
|
181
|
-
description?: string | null | undefined;
|
|
182
|
-
attributes?: Record<string, unknown> | undefined;
|
|
183
|
-
interaction?: "default" | "locked" | undefined;
|
|
184
|
-
imageUrl?: string | null | undefined;
|
|
185
|
-
strokeOpacity?: number | undefined;
|
|
186
|
-
strokeWidth?: number | undefined;
|
|
187
|
-
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
188
|
-
fillOpacity?: number | undefined;
|
|
189
|
-
radiusDisplayAngle?: number | undefined;
|
|
190
|
-
radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
|
|
191
|
-
radiusMarker?: boolean | undefined;
|
|
192
|
-
}, {
|
|
193
|
-
type: "Circle";
|
|
194
|
-
coordinates: [number, number];
|
|
195
|
-
radius: number;
|
|
196
|
-
groupId?: string | null | undefined;
|
|
197
|
-
color?: string | undefined;
|
|
198
|
-
name?: string | null | undefined;
|
|
199
|
-
description?: string | null | undefined;
|
|
200
|
-
attributes?: Record<string, unknown> | undefined;
|
|
201
|
-
interaction?: "default" | "locked" | undefined;
|
|
202
|
-
imageUrl?: string | null | undefined;
|
|
203
|
-
strokeOpacity?: number | undefined;
|
|
204
|
-
strokeWidth?: number | undefined;
|
|
205
|
-
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
206
|
-
fillOpacity?: number | undefined;
|
|
207
|
-
radiusDisplayAngle?: number | undefined;
|
|
208
|
-
radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
|
|
209
|
-
radiusMarker?: boolean | undefined;
|
|
210
|
-
}>;
|
|
211
|
-
declare const MarkerCreateSchema: z.ZodObject<Omit<{
|
|
212
|
-
type: z.ZodLiteral<"Marker">;
|
|
213
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
214
|
-
id: z.ZodOptional<z.ZodString>;
|
|
215
|
-
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
216
|
-
color: z.ZodOptional<z.ZodString>;
|
|
217
|
-
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
218
|
-
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
219
|
-
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
220
|
-
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
221
|
-
opacity: z.ZodOptional<z.ZodNumber>;
|
|
222
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
223
|
-
zoom: z.ZodOptional<z.ZodNumber>;
|
|
224
|
-
}, "id">, "strip", z.ZodTypeAny, {
|
|
225
|
-
type: "Marker";
|
|
226
|
-
coordinates: [number, number][][];
|
|
227
|
-
groupId?: string | null | undefined;
|
|
228
|
-
color?: string | undefined;
|
|
229
|
-
name?: string | null | undefined;
|
|
230
|
-
description?: string | null | undefined;
|
|
231
|
-
attributes?: Record<string, unknown> | undefined;
|
|
232
|
-
interaction?: "default" | "locked" | undefined;
|
|
233
|
-
opacity?: number | undefined;
|
|
234
|
-
size?: number | undefined;
|
|
235
|
-
zoom?: number | undefined;
|
|
236
|
-
}, {
|
|
237
|
-
type: "Marker";
|
|
238
|
-
coordinates: [number, number][][];
|
|
239
|
-
groupId?: string | null | undefined;
|
|
240
|
-
color?: string | undefined;
|
|
241
|
-
name?: string | null | undefined;
|
|
242
|
-
description?: string | null | undefined;
|
|
243
|
-
attributes?: Record<string, unknown> | undefined;
|
|
244
|
-
interaction?: "default" | "locked" | undefined;
|
|
245
|
-
opacity?: number | undefined;
|
|
246
|
-
size?: number | undefined;
|
|
247
|
-
zoom?: number | undefined;
|
|
248
|
-
}>;
|
|
249
|
-
declare const HighlighterCreateSchema: z.ZodObject<Omit<{
|
|
250
|
-
type: z.ZodLiteral<"Highlighter">;
|
|
251
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
252
|
-
id: z.ZodOptional<z.ZodString>;
|
|
253
|
-
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
254
|
-
color: z.ZodOptional<z.ZodString>;
|
|
255
|
-
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
256
|
-
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
257
|
-
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
258
|
-
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
259
|
-
opacity: z.ZodOptional<z.ZodNumber>;
|
|
260
|
-
}, "id">, "strip", z.ZodTypeAny, {
|
|
261
|
-
type: "Highlighter";
|
|
262
|
-
coordinates: [number, number][][];
|
|
263
|
-
groupId?: string | null | undefined;
|
|
264
|
-
color?: string | undefined;
|
|
265
|
-
name?: string | null | undefined;
|
|
266
|
-
description?: string | null | undefined;
|
|
267
|
-
attributes?: Record<string, unknown> | undefined;
|
|
268
|
-
interaction?: "default" | "locked" | undefined;
|
|
269
|
-
opacity?: number | undefined;
|
|
270
|
-
}, {
|
|
271
|
-
type: "Highlighter";
|
|
272
|
-
coordinates: [number, number][][];
|
|
273
|
-
groupId?: string | null | undefined;
|
|
274
|
-
color?: string | undefined;
|
|
275
|
-
name?: string | null | undefined;
|
|
276
|
-
description?: string | null | undefined;
|
|
277
|
-
attributes?: Record<string, unknown> | undefined;
|
|
278
|
-
interaction?: "default" | "locked" | undefined;
|
|
279
|
-
opacity?: number | undefined;
|
|
280
|
-
}>;
|
|
281
|
-
declare const TextCreateSchema: z.ZodObject<Omit<Omit<{
|
|
282
|
-
type: z.ZodLiteral<"Text">;
|
|
283
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
284
|
-
id: z.ZodOptional<z.ZodString>;
|
|
285
|
-
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
286
|
-
color: z.ZodOptional<z.ZodString>;
|
|
287
|
-
name: z.ZodOptional<z.ZodString>;
|
|
288
|
-
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
289
|
-
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
290
|
-
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
291
|
-
zoom: z.ZodOptional<z.ZodNumber>;
|
|
292
|
-
position: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
293
|
-
rotation: z.ZodOptional<z.ZodNumber>;
|
|
294
|
-
scale: z.ZodOptional<z.ZodNumber>;
|
|
295
|
-
text: z.ZodString;
|
|
296
|
-
align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
297
|
-
style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
|
|
298
|
-
}, "id">, "coordinates" | "name">, "strip", z.ZodTypeAny, {
|
|
299
|
-
type: "Text";
|
|
300
|
-
text: string;
|
|
301
|
-
groupId?: string | null | undefined;
|
|
302
|
-
color?: string | undefined;
|
|
303
|
-
description?: string | null | undefined;
|
|
304
|
-
attributes?: Record<string, unknown> | undefined;
|
|
305
|
-
interaction?: "default" | "locked" | undefined;
|
|
306
|
-
zoom?: number | undefined;
|
|
307
|
-
position?: [number, number] | undefined;
|
|
308
|
-
rotation?: number | undefined;
|
|
309
|
-
scale?: number | undefined;
|
|
310
|
-
align?: "left" | "center" | "right" | undefined;
|
|
311
|
-
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
312
|
-
}, {
|
|
313
|
-
type: "Text";
|
|
314
|
-
text: string;
|
|
315
|
-
groupId?: string | null | undefined;
|
|
316
|
-
color?: string | undefined;
|
|
317
|
-
description?: string | null | undefined;
|
|
318
|
-
attributes?: Record<string, unknown> | undefined;
|
|
319
|
-
interaction?: "default" | "locked" | undefined;
|
|
320
|
-
zoom?: number | undefined;
|
|
321
|
-
position?: [number, number] | undefined;
|
|
322
|
-
rotation?: number | undefined;
|
|
323
|
-
scale?: number | undefined;
|
|
324
|
-
align?: "left" | "center" | "right" | undefined;
|
|
325
|
-
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
326
|
-
}>;
|
|
327
|
-
declare const NoteCreateSchema: z.ZodObject<Omit<Omit<{
|
|
328
|
-
type: z.ZodLiteral<"Note">;
|
|
329
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
330
|
-
id: z.ZodOptional<z.ZodString>;
|
|
331
|
-
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
332
|
-
color: z.ZodOptional<z.ZodString>;
|
|
333
|
-
name: z.ZodOptional<z.ZodString>;
|
|
334
|
-
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
335
|
-
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
336
|
-
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
337
|
-
zoom: z.ZodOptional<z.ZodNumber>;
|
|
338
|
-
position: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
339
|
-
rotation: z.ZodOptional<z.ZodNumber>;
|
|
340
|
-
scale: z.ZodOptional<z.ZodNumber>;
|
|
341
|
-
text: z.ZodString;
|
|
342
|
-
align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
343
|
-
style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
|
|
344
|
-
widthScale: z.ZodOptional<z.ZodNumber>;
|
|
345
|
-
}, "id">, "coordinates" | "name">, "strip", z.ZodTypeAny, {
|
|
346
|
-
type: "Note";
|
|
347
|
-
text: string;
|
|
348
|
-
groupId?: string | null | undefined;
|
|
349
|
-
color?: string | undefined;
|
|
350
|
-
description?: string | null | undefined;
|
|
351
|
-
attributes?: Record<string, unknown> | undefined;
|
|
352
|
-
interaction?: "default" | "locked" | undefined;
|
|
353
|
-
zoom?: number | undefined;
|
|
354
|
-
position?: [number, number] | undefined;
|
|
355
|
-
rotation?: number | undefined;
|
|
356
|
-
scale?: number | undefined;
|
|
357
|
-
align?: "left" | "center" | "right" | undefined;
|
|
358
|
-
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
359
|
-
widthScale?: number | undefined;
|
|
360
|
-
}, {
|
|
361
|
-
type: "Note";
|
|
362
|
-
text: string;
|
|
363
|
-
groupId?: string | null | undefined;
|
|
364
|
-
color?: string | undefined;
|
|
365
|
-
description?: string | null | undefined;
|
|
366
|
-
attributes?: Record<string, unknown> | undefined;
|
|
367
|
-
interaction?: "default" | "locked" | undefined;
|
|
368
|
-
zoom?: number | undefined;
|
|
369
|
-
position?: [number, number] | undefined;
|
|
370
|
-
rotation?: number | undefined;
|
|
371
|
-
scale?: number | undefined;
|
|
372
|
-
align?: "left" | "center" | "right" | undefined;
|
|
373
|
-
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
374
|
-
widthScale?: number | undefined;
|
|
375
|
-
}>;
|
|
376
|
-
declare const ImageCreateSchema: z.ZodObject<Omit<{
|
|
377
|
-
type: z.ZodLiteral<"Image">;
|
|
378
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
379
|
-
id: z.ZodOptional<z.ZodString>;
|
|
380
|
-
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
381
|
-
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
382
|
-
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
383
|
-
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
384
|
-
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
385
|
-
imageUrl: z.ZodString;
|
|
386
|
-
opacity: z.ZodOptional<z.ZodNumber>;
|
|
387
|
-
}, "id">, "strip", z.ZodTypeAny, {
|
|
388
|
-
type: "Image";
|
|
389
|
-
coordinates: [number, number][][];
|
|
390
|
-
imageUrl: string;
|
|
391
|
-
groupId?: string | null | undefined;
|
|
392
|
-
name?: string | null | undefined;
|
|
393
|
-
description?: string | null | undefined;
|
|
394
|
-
attributes?: Record<string, unknown> | undefined;
|
|
395
|
-
interaction?: "default" | "locked" | undefined;
|
|
396
|
-
opacity?: number | undefined;
|
|
397
|
-
}, {
|
|
398
|
-
type: "Image";
|
|
399
|
-
coordinates: [number, number][][];
|
|
400
|
-
imageUrl: string;
|
|
401
|
-
groupId?: string | null | undefined;
|
|
402
|
-
name?: string | null | undefined;
|
|
403
|
-
description?: string | null | undefined;
|
|
404
|
-
attributes?: Record<string, unknown> | undefined;
|
|
405
|
-
interaction?: "default" | "locked" | undefined;
|
|
406
|
-
opacity?: number | undefined;
|
|
407
|
-
}>;
|
|
408
|
-
declare const PlaceReadSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
409
|
-
id: z.ZodString;
|
|
410
|
-
groupId: z.ZodNullable<z.ZodString>;
|
|
411
|
-
color: z.ZodString;
|
|
412
|
-
name: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
|
413
|
-
description: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
|
414
|
-
attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
415
|
-
interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
|
|
416
|
-
}, {
|
|
417
|
-
imageUrl: z.ZodNullable<z.ZodString>;
|
|
418
|
-
}>, {
|
|
419
|
-
type: z.ZodLiteral<"Place">;
|
|
420
|
-
coordinates: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
421
|
-
symbol: z.ZodString;
|
|
422
|
-
frame: z.ZodNullable<z.ZodEnum<["frame-circle", "frame-square"]>>;
|
|
423
|
-
hideLabel: z.ZodBoolean;
|
|
424
|
-
}>, "strip", z.ZodTypeAny, {
|
|
425
|
-
symbol: string;
|
|
426
|
-
type: "Place";
|
|
427
|
-
coordinates: [number, number];
|
|
428
|
-
id: string;
|
|
429
|
-
groupId: string | null;
|
|
430
|
-
color: string;
|
|
431
|
-
name: string | null;
|
|
432
|
-
description: string | null;
|
|
433
|
-
attributes: Record<string, unknown>;
|
|
434
|
-
imageUrl: string | null;
|
|
435
|
-
frame: "frame-circle" | "frame-square" | null;
|
|
436
|
-
hideLabel: boolean;
|
|
437
|
-
interaction?: "default" | "locked" | undefined;
|
|
438
|
-
}, {
|
|
439
|
-
symbol: string;
|
|
440
|
-
type: "Place";
|
|
441
|
-
coordinates: [number, number];
|
|
442
|
-
id: string;
|
|
443
|
-
groupId: string | null;
|
|
444
|
-
color: string;
|
|
445
|
-
name: string | null;
|
|
446
|
-
description: string | null;
|
|
447
|
-
attributes: Record<string, unknown>;
|
|
448
|
-
imageUrl: string | null;
|
|
449
|
-
frame: "frame-circle" | "frame-square" | null;
|
|
450
|
-
hideLabel: boolean;
|
|
451
|
-
interaction?: "default" | "locked" | undefined;
|
|
452
|
-
}>;
|
|
453
|
-
declare const PathReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
454
|
-
id: z.ZodString;
|
|
455
|
-
groupId: z.ZodNullable<z.ZodString>;
|
|
456
|
-
color: z.ZodString;
|
|
457
|
-
name: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
|
458
|
-
description: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
|
459
|
-
attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
460
|
-
interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
|
|
461
|
-
}, {
|
|
462
|
-
imageUrl: z.ZodNullable<z.ZodString>;
|
|
463
|
-
}>, {
|
|
464
|
-
strokeOpacity: z.ZodNumber;
|
|
465
|
-
strokeWidth: z.ZodNumber;
|
|
466
|
-
strokeStyle: z.ZodEnum<["solid", "dashed", "dotted"]>;
|
|
467
|
-
}>, {
|
|
468
|
-
type: z.ZodLiteral<"Path">;
|
|
469
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
470
|
-
distanceMarker: z.ZodBoolean;
|
|
471
|
-
endCaps: z.ZodBoolean;
|
|
472
|
-
routingMode: z.ZodNullable<z.ZodEnum<["driving", "cycling", "walking", "flying"]>>;
|
|
473
|
-
}>, "coordinates">, "strip", z.ZodTypeAny, {
|
|
474
|
-
type: "Path";
|
|
475
|
-
id: string;
|
|
476
|
-
groupId: string | null;
|
|
477
|
-
color: string;
|
|
478
|
-
name: string | null;
|
|
479
|
-
description: string | null;
|
|
480
|
-
attributes: Record<string, unknown>;
|
|
481
|
-
imageUrl: string | null;
|
|
482
|
-
strokeOpacity: number;
|
|
483
|
-
strokeWidth: number;
|
|
484
|
-
strokeStyle: "solid" | "dashed" | "dotted";
|
|
485
|
-
distanceMarker: boolean;
|
|
486
|
-
endCaps: boolean;
|
|
487
|
-
routingMode: "driving" | "cycling" | "walking" | "flying" | null;
|
|
488
|
-
interaction?: "default" | "locked" | undefined;
|
|
489
|
-
}, {
|
|
490
|
-
type: "Path";
|
|
491
|
-
id: string;
|
|
492
|
-
groupId: string | null;
|
|
493
|
-
color: string;
|
|
494
|
-
name: string | null;
|
|
495
|
-
description: string | null;
|
|
496
|
-
attributes: Record<string, unknown>;
|
|
497
|
-
imageUrl: string | null;
|
|
498
|
-
strokeOpacity: number;
|
|
499
|
-
strokeWidth: number;
|
|
500
|
-
strokeStyle: "solid" | "dashed" | "dotted";
|
|
501
|
-
distanceMarker: boolean;
|
|
502
|
-
endCaps: boolean;
|
|
503
|
-
routingMode: "driving" | "cycling" | "walking" | "flying" | null;
|
|
504
|
-
interaction?: "default" | "locked" | undefined;
|
|
505
|
-
}>;
|
|
506
|
-
declare const PolygonReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
507
|
-
id: z.ZodString;
|
|
508
|
-
groupId: z.ZodNullable<z.ZodString>;
|
|
509
|
-
color: z.ZodString;
|
|
510
|
-
name: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
|
511
|
-
description: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
|
512
|
-
attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
513
|
-
interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
|
|
514
|
-
}, {
|
|
515
|
-
imageUrl: z.ZodNullable<z.ZodString>;
|
|
516
|
-
}>, {
|
|
517
|
-
strokeOpacity: z.ZodNumber;
|
|
518
|
-
strokeWidth: z.ZodNumber;
|
|
519
|
-
strokeStyle: z.ZodEnum<["solid", "dashed", "dotted"]>;
|
|
520
|
-
}>, {
|
|
521
|
-
type: z.ZodLiteral<"Polygon">;
|
|
522
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
523
|
-
fillOpacity: z.ZodNumber;
|
|
524
|
-
areaMarker: z.ZodBoolean;
|
|
525
|
-
}>, "coordinates">, "strip", z.ZodTypeAny, {
|
|
526
|
-
type: "Polygon";
|
|
527
|
-
id: string;
|
|
528
|
-
groupId: string | null;
|
|
529
|
-
color: string;
|
|
530
|
-
name: string | null;
|
|
531
|
-
description: string | null;
|
|
532
|
-
attributes: Record<string, unknown>;
|
|
533
|
-
imageUrl: string | null;
|
|
534
|
-
strokeOpacity: number;
|
|
535
|
-
strokeWidth: number;
|
|
536
|
-
strokeStyle: "solid" | "dashed" | "dotted";
|
|
537
|
-
fillOpacity: number;
|
|
538
|
-
areaMarker: boolean;
|
|
539
|
-
interaction?: "default" | "locked" | undefined;
|
|
540
|
-
}, {
|
|
541
|
-
type: "Polygon";
|
|
542
|
-
id: string;
|
|
543
|
-
groupId: string | null;
|
|
544
|
-
color: string;
|
|
545
|
-
name: string | null;
|
|
546
|
-
description: string | null;
|
|
547
|
-
attributes: Record<string, unknown>;
|
|
548
|
-
imageUrl: string | null;
|
|
549
|
-
strokeOpacity: number;
|
|
550
|
-
strokeWidth: number;
|
|
551
|
-
strokeStyle: "solid" | "dashed" | "dotted";
|
|
552
|
-
fillOpacity: number;
|
|
553
|
-
areaMarker: boolean;
|
|
554
|
-
interaction?: "default" | "locked" | undefined;
|
|
555
|
-
}>;
|
|
556
|
-
declare const CircleReadSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
557
|
-
id: z.ZodString;
|
|
558
|
-
groupId: z.ZodNullable<z.ZodString>;
|
|
559
|
-
color: z.ZodString;
|
|
560
|
-
name: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
|
561
|
-
description: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
|
562
|
-
attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
563
|
-
interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
|
|
564
|
-
}, {
|
|
565
|
-
imageUrl: z.ZodNullable<z.ZodString>;
|
|
566
|
-
}>, {
|
|
567
|
-
strokeOpacity: z.ZodNumber;
|
|
568
|
-
strokeWidth: z.ZodNumber;
|
|
569
|
-
strokeStyle: z.ZodEnum<["solid", "dashed", "dotted"]>;
|
|
570
|
-
}>, {
|
|
571
|
-
type: z.ZodLiteral<"Circle">;
|
|
572
|
-
coordinates: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
573
|
-
radius: z.ZodNumber;
|
|
574
|
-
radiusDisplayAngle: z.ZodNumber;
|
|
575
|
-
radiusDisplayUnit: z.ZodNullable<z.ZodEnum<["meter", "kilometer", "foot", "mile"]>>;
|
|
576
|
-
fillOpacity: z.ZodNumber;
|
|
577
|
-
radiusMarker: z.ZodBoolean;
|
|
578
|
-
}>, "strip", z.ZodTypeAny, {
|
|
579
|
-
type: "Circle";
|
|
580
|
-
coordinates: [number, number];
|
|
581
|
-
id: string;
|
|
582
|
-
groupId: string | null;
|
|
583
|
-
color: string;
|
|
584
|
-
name: string | null;
|
|
585
|
-
description: string | null;
|
|
586
|
-
attributes: Record<string, unknown>;
|
|
587
|
-
imageUrl: string | null;
|
|
588
|
-
strokeOpacity: number;
|
|
589
|
-
strokeWidth: number;
|
|
590
|
-
strokeStyle: "solid" | "dashed" | "dotted";
|
|
591
|
-
fillOpacity: number;
|
|
592
|
-
radius: number;
|
|
593
|
-
radiusDisplayAngle: number;
|
|
594
|
-
radiusDisplayUnit: "meter" | "kilometer" | "foot" | "mile" | null;
|
|
595
|
-
radiusMarker: boolean;
|
|
596
|
-
interaction?: "default" | "locked" | undefined;
|
|
597
|
-
}, {
|
|
598
|
-
type: "Circle";
|
|
599
|
-
coordinates: [number, number];
|
|
600
|
-
id: string;
|
|
601
|
-
groupId: string | null;
|
|
602
|
-
color: string;
|
|
603
|
-
name: string | null;
|
|
604
|
-
description: string | null;
|
|
605
|
-
attributes: Record<string, unknown>;
|
|
606
|
-
imageUrl: string | null;
|
|
607
|
-
strokeOpacity: number;
|
|
608
|
-
strokeWidth: number;
|
|
609
|
-
strokeStyle: "solid" | "dashed" | "dotted";
|
|
610
|
-
fillOpacity: number;
|
|
611
|
-
radius: number;
|
|
612
|
-
radiusDisplayAngle: number;
|
|
613
|
-
radiusDisplayUnit: "meter" | "kilometer" | "foot" | "mile" | null;
|
|
614
|
-
radiusMarker: boolean;
|
|
615
|
-
interaction?: "default" | "locked" | undefined;
|
|
616
|
-
}>;
|
|
617
|
-
declare const MarkerReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
618
|
-
id: z.ZodString;
|
|
619
|
-
groupId: z.ZodNullable<z.ZodString>;
|
|
620
|
-
color: z.ZodString;
|
|
621
|
-
name: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
|
622
|
-
description: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
|
623
|
-
attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
624
|
-
interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
|
|
625
|
-
}, {
|
|
626
|
-
type: z.ZodLiteral<"Marker">;
|
|
627
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
628
|
-
opacity: z.ZodNumber;
|
|
629
|
-
size: z.ZodNumber;
|
|
630
|
-
zoom: z.ZodNumber;
|
|
631
|
-
}>, "coordinates">, "strip", z.ZodTypeAny, {
|
|
632
|
-
type: "Marker";
|
|
633
|
-
id: string;
|
|
634
|
-
groupId: string | null;
|
|
635
|
-
color: string;
|
|
636
|
-
name: string | null;
|
|
637
|
-
description: string | null;
|
|
638
|
-
attributes: Record<string, unknown>;
|
|
639
|
-
opacity: number;
|
|
640
|
-
size: number;
|
|
641
|
-
zoom: number;
|
|
642
|
-
interaction?: "default" | "locked" | undefined;
|
|
643
|
-
}, {
|
|
644
|
-
type: "Marker";
|
|
645
|
-
id: string;
|
|
646
|
-
groupId: string | null;
|
|
647
|
-
color: string;
|
|
648
|
-
name: string | null;
|
|
649
|
-
description: string | null;
|
|
650
|
-
attributes: Record<string, unknown>;
|
|
651
|
-
opacity: number;
|
|
652
|
-
size: number;
|
|
653
|
-
zoom: number;
|
|
654
|
-
interaction?: "default" | "locked" | undefined;
|
|
655
|
-
}>;
|
|
656
|
-
declare const HighlighterReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
657
|
-
id: z.ZodString;
|
|
658
|
-
groupId: z.ZodNullable<z.ZodString>;
|
|
659
|
-
color: z.ZodString;
|
|
660
|
-
name: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
|
661
|
-
description: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
|
662
|
-
attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
663
|
-
interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
|
|
664
|
-
}, {
|
|
665
|
-
type: z.ZodLiteral<"Highlighter">;
|
|
666
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
667
|
-
opacity: z.ZodNumber;
|
|
668
|
-
}>, "coordinates">, "strip", z.ZodTypeAny, {
|
|
669
|
-
type: "Highlighter";
|
|
670
|
-
id: string;
|
|
671
|
-
groupId: string | null;
|
|
672
|
-
color: string;
|
|
673
|
-
name: string | null;
|
|
674
|
-
description: string | null;
|
|
675
|
-
attributes: Record<string, unknown>;
|
|
676
|
-
opacity: number;
|
|
677
|
-
interaction?: "default" | "locked" | undefined;
|
|
678
|
-
}, {
|
|
679
|
-
type: "Highlighter";
|
|
680
|
-
id: string;
|
|
681
|
-
groupId: string | null;
|
|
682
|
-
color: string;
|
|
683
|
-
name: string | null;
|
|
684
|
-
description: string | null;
|
|
685
|
-
attributes: Record<string, unknown>;
|
|
686
|
-
opacity: number;
|
|
687
|
-
interaction?: "default" | "locked" | undefined;
|
|
688
|
-
}>;
|
|
689
|
-
declare const TextReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
690
|
-
id: z.ZodString;
|
|
691
|
-
groupId: z.ZodNullable<z.ZodString>;
|
|
692
|
-
color: z.ZodString;
|
|
693
|
-
name: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
|
694
|
-
description: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
|
695
|
-
attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
696
|
-
interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
|
|
697
|
-
}, {
|
|
698
|
-
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
699
|
-
rotation: z.ZodNumber;
|
|
700
|
-
scale: z.ZodNumber;
|
|
701
|
-
zoom: z.ZodNumber;
|
|
702
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
703
|
-
}>, {
|
|
704
|
-
text: z.ZodString;
|
|
705
|
-
align: z.ZodEnum<["left", "center", "right"]>;
|
|
706
|
-
style: z.ZodEnum<["italic", "light", "regular", "caps"]>;
|
|
707
|
-
name: z.ZodString;
|
|
708
|
-
}>, {
|
|
709
|
-
type: z.ZodLiteral<"Text">;
|
|
710
|
-
}>, "coordinates">, "strip", z.ZodTypeAny, {
|
|
711
|
-
type: "Text";
|
|
712
|
-
id: string;
|
|
713
|
-
groupId: string | null;
|
|
714
|
-
color: string;
|
|
715
|
-
name: string;
|
|
716
|
-
description: string | null;
|
|
717
|
-
attributes: Record<string, unknown>;
|
|
718
|
-
zoom: number;
|
|
719
|
-
position: [number, number];
|
|
720
|
-
rotation: number;
|
|
721
|
-
scale: number;
|
|
722
|
-
text: string;
|
|
723
|
-
align: "left" | "center" | "right";
|
|
724
|
-
style: "italic" | "light" | "regular" | "caps";
|
|
725
|
-
interaction?: "default" | "locked" | undefined;
|
|
726
|
-
}, {
|
|
727
|
-
type: "Text";
|
|
728
|
-
id: string;
|
|
729
|
-
groupId: string | null;
|
|
730
|
-
color: string;
|
|
731
|
-
name: string;
|
|
732
|
-
description: string | null;
|
|
733
|
-
attributes: Record<string, unknown>;
|
|
734
|
-
zoom: number;
|
|
735
|
-
position: [number, number];
|
|
736
|
-
rotation: number;
|
|
737
|
-
scale: number;
|
|
738
|
-
text: string;
|
|
739
|
-
align: "left" | "center" | "right";
|
|
740
|
-
style: "italic" | "light" | "regular" | "caps";
|
|
741
|
-
interaction?: "default" | "locked" | undefined;
|
|
742
|
-
}>;
|
|
743
|
-
declare const NoteReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
744
|
-
id: z.ZodString;
|
|
745
|
-
groupId: z.ZodNullable<z.ZodString>;
|
|
746
|
-
color: z.ZodString;
|
|
747
|
-
name: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
|
748
|
-
description: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
|
749
|
-
attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
750
|
-
interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
|
|
751
|
-
}, {
|
|
752
|
-
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
753
|
-
rotation: z.ZodNumber;
|
|
754
|
-
scale: z.ZodNumber;
|
|
755
|
-
zoom: z.ZodNumber;
|
|
756
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
757
|
-
}>, {
|
|
758
|
-
text: z.ZodString;
|
|
759
|
-
align: z.ZodEnum<["left", "center", "right"]>;
|
|
760
|
-
style: z.ZodEnum<["italic", "light", "regular", "caps"]>;
|
|
761
|
-
name: z.ZodString;
|
|
762
|
-
}>, {
|
|
763
|
-
type: z.ZodLiteral<"Note">;
|
|
764
|
-
widthScale: z.ZodNumber;
|
|
765
|
-
}>, "coordinates">, "strip", z.ZodTypeAny, {
|
|
766
|
-
type: "Note";
|
|
767
|
-
id: string;
|
|
768
|
-
groupId: string | null;
|
|
769
|
-
color: string;
|
|
770
|
-
name: string;
|
|
771
|
-
description: string | null;
|
|
772
|
-
attributes: Record<string, unknown>;
|
|
773
|
-
zoom: number;
|
|
774
|
-
position: [number, number];
|
|
775
|
-
rotation: number;
|
|
776
|
-
scale: number;
|
|
777
|
-
text: string;
|
|
778
|
-
align: "left" | "center" | "right";
|
|
779
|
-
style: "italic" | "light" | "regular" | "caps";
|
|
780
|
-
widthScale: number;
|
|
781
|
-
interaction?: "default" | "locked" | undefined;
|
|
782
|
-
}, {
|
|
783
|
-
type: "Note";
|
|
784
|
-
id: string;
|
|
785
|
-
groupId: string | null;
|
|
786
|
-
color: string;
|
|
787
|
-
name: string;
|
|
788
|
-
description: string | null;
|
|
789
|
-
attributes: Record<string, unknown>;
|
|
790
|
-
zoom: number;
|
|
791
|
-
position: [number, number];
|
|
792
|
-
rotation: number;
|
|
793
|
-
scale: number;
|
|
794
|
-
text: string;
|
|
795
|
-
align: "left" | "center" | "right";
|
|
796
|
-
style: "italic" | "light" | "regular" | "caps";
|
|
797
|
-
widthScale: number;
|
|
798
|
-
interaction?: "default" | "locked" | undefined;
|
|
799
|
-
}>;
|
|
800
|
-
declare const ImageReadSchema: z.ZodObject<Omit<Omit<z.objectUtil.extendShape<{
|
|
801
|
-
id: z.ZodString;
|
|
802
|
-
groupId: z.ZodNullable<z.ZodString>;
|
|
803
|
-
color: z.ZodString;
|
|
804
|
-
name: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
|
805
|
-
description: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
|
806
|
-
attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
807
|
-
interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
|
|
808
|
-
}, {
|
|
809
|
-
type: z.ZodLiteral<"Image">;
|
|
810
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
811
|
-
imageUrl: z.ZodString;
|
|
812
|
-
opacity: z.ZodNumber;
|
|
813
|
-
}>, "color">, "coordinates">, "strip", z.ZodTypeAny, {
|
|
814
|
-
type: "Image";
|
|
815
|
-
id: string;
|
|
816
|
-
groupId: string | null;
|
|
817
|
-
name: string | null;
|
|
818
|
-
description: string | null;
|
|
819
|
-
attributes: Record<string, unknown>;
|
|
820
|
-
imageUrl: string;
|
|
821
|
-
opacity: number;
|
|
822
|
-
interaction?: "default" | "locked" | undefined;
|
|
823
|
-
}, {
|
|
824
|
-
type: "Image";
|
|
825
|
-
id: string;
|
|
826
|
-
groupId: string | null;
|
|
827
|
-
name: string | null;
|
|
828
|
-
description: string | null;
|
|
829
|
-
attributes: Record<string, unknown>;
|
|
830
|
-
imageUrl: string;
|
|
831
|
-
opacity: number;
|
|
832
|
-
interaction?: "default" | "locked" | undefined;
|
|
833
|
-
}>;
|
|
834
|
-
declare const LinkReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
835
|
-
id: z.ZodString;
|
|
836
|
-
groupId: z.ZodNullable<z.ZodString>;
|
|
837
|
-
color: z.ZodString;
|
|
838
|
-
name: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
|
839
|
-
description: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
|
840
|
-
attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
841
|
-
interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
|
|
842
|
-
}, {
|
|
843
|
-
type: z.ZodLiteral<"Link">;
|
|
844
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
845
|
-
url: z.ZodString;
|
|
846
|
-
}>, "coordinates">, "strip", z.ZodTypeAny, {
|
|
847
|
-
type: "Link";
|
|
848
|
-
id: string;
|
|
849
|
-
groupId: string | null;
|
|
850
|
-
color: string;
|
|
851
|
-
name: string | null;
|
|
852
|
-
description: string | null;
|
|
853
|
-
attributes: Record<string, unknown>;
|
|
854
|
-
url: string;
|
|
855
|
-
interaction?: "default" | "locked" | undefined;
|
|
856
|
-
}, {
|
|
857
|
-
type: "Link";
|
|
858
|
-
id: string;
|
|
859
|
-
groupId: string | null;
|
|
860
|
-
color: string;
|
|
861
|
-
name: string | null;
|
|
862
|
-
description: string | null;
|
|
863
|
-
attributes: Record<string, unknown>;
|
|
864
|
-
url: string;
|
|
865
|
-
interaction?: "default" | "locked" | undefined;
|
|
866
|
-
}>;
|
|
867
|
-
declare const PlaceUpdateSchema: z.ZodObject<{
|
|
868
|
-
symbol: z.ZodOptional<z.ZodString>;
|
|
869
|
-
type: z.ZodLiteral<"Place">;
|
|
870
|
-
coordinates: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
871
|
-
id: z.ZodString;
|
|
872
|
-
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
873
|
-
color: z.ZodOptional<z.ZodString>;
|
|
874
|
-
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
875
|
-
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
876
|
-
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
877
|
-
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
878
|
-
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
879
|
-
frame: z.ZodOptional<z.ZodNullable<z.ZodEnum<["frame-circle", "frame-square"]>>>;
|
|
880
|
-
hideLabel: z.ZodOptional<z.ZodBoolean>;
|
|
881
|
-
}, "strip", z.ZodTypeAny, {
|
|
882
|
-
type: "Place";
|
|
883
|
-
id: string;
|
|
884
|
-
symbol?: string | undefined;
|
|
885
|
-
coordinates?: [number, number] | undefined;
|
|
886
|
-
groupId?: string | null | undefined;
|
|
887
|
-
color?: string | undefined;
|
|
888
|
-
name?: string | null | undefined;
|
|
889
|
-
description?: string | null | undefined;
|
|
890
|
-
attributes?: Record<string, unknown> | undefined;
|
|
891
|
-
interaction?: "default" | "locked" | undefined;
|
|
892
|
-
imageUrl?: string | null | undefined;
|
|
893
|
-
frame?: "frame-circle" | "frame-square" | null | undefined;
|
|
894
|
-
hideLabel?: boolean | undefined;
|
|
895
|
-
}, {
|
|
896
|
-
type: "Place";
|
|
897
|
-
id: string;
|
|
898
|
-
symbol?: string | undefined;
|
|
899
|
-
coordinates?: [number, number] | undefined;
|
|
900
|
-
groupId?: string | null | undefined;
|
|
901
|
-
color?: string | undefined;
|
|
902
|
-
name?: string | null | undefined;
|
|
903
|
-
description?: string | null | undefined;
|
|
904
|
-
attributes?: Record<string, unknown> | undefined;
|
|
905
|
-
interaction?: "default" | "locked" | undefined;
|
|
906
|
-
imageUrl?: string | null | undefined;
|
|
907
|
-
frame?: "frame-circle" | "frame-square" | null | undefined;
|
|
908
|
-
hideLabel?: boolean | undefined;
|
|
909
|
-
}>;
|
|
910
|
-
declare const PathUpdateSchema: z.ZodObject<{
|
|
911
|
-
type: z.ZodLiteral<"Path">;
|
|
912
|
-
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
|
|
913
|
-
id: z.ZodString;
|
|
914
|
-
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
915
|
-
color: z.ZodOptional<z.ZodString>;
|
|
916
|
-
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
917
|
-
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
918
|
-
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
919
|
-
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
920
|
-
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
921
|
-
strokeOpacity: z.ZodOptional<z.ZodNumber>;
|
|
922
|
-
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
923
|
-
strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
924
|
-
distanceMarker: z.ZodOptional<z.ZodBoolean>;
|
|
925
|
-
endCaps: z.ZodOptional<z.ZodBoolean>;
|
|
926
|
-
routingMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["driving", "cycling", "walking", "flying"]>>>;
|
|
927
|
-
}, "strip", z.ZodTypeAny, {
|
|
928
|
-
type: "Path";
|
|
929
|
-
id: string;
|
|
930
|
-
coordinates?: [number, number][][] | undefined;
|
|
931
|
-
groupId?: string | null | undefined;
|
|
932
|
-
color?: string | undefined;
|
|
933
|
-
name?: string | null | undefined;
|
|
934
|
-
description?: string | null | undefined;
|
|
935
|
-
attributes?: Record<string, unknown> | undefined;
|
|
936
|
-
interaction?: "default" | "locked" | undefined;
|
|
937
|
-
imageUrl?: string | null | undefined;
|
|
938
|
-
strokeOpacity?: number | undefined;
|
|
939
|
-
strokeWidth?: number | undefined;
|
|
940
|
-
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
941
|
-
distanceMarker?: boolean | undefined;
|
|
942
|
-
endCaps?: boolean | undefined;
|
|
943
|
-
routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
|
|
944
|
-
}, {
|
|
945
|
-
type: "Path";
|
|
946
|
-
id: string;
|
|
947
|
-
coordinates?: [number, number][][] | undefined;
|
|
948
|
-
groupId?: string | null | undefined;
|
|
949
|
-
color?: string | undefined;
|
|
950
|
-
name?: string | null | undefined;
|
|
951
|
-
description?: string | null | undefined;
|
|
952
|
-
attributes?: Record<string, unknown> | undefined;
|
|
953
|
-
interaction?: "default" | "locked" | undefined;
|
|
954
|
-
imageUrl?: string | null | undefined;
|
|
955
|
-
strokeOpacity?: number | undefined;
|
|
956
|
-
strokeWidth?: number | undefined;
|
|
957
|
-
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
958
|
-
distanceMarker?: boolean | undefined;
|
|
959
|
-
endCaps?: boolean | undefined;
|
|
960
|
-
routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
|
|
961
|
-
}>;
|
|
962
|
-
declare const PolygonUpdateSchema: z.ZodObject<{
|
|
963
|
-
type: z.ZodLiteral<"Polygon">;
|
|
964
|
-
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
|
|
965
|
-
id: z.ZodString;
|
|
966
|
-
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
967
|
-
color: z.ZodOptional<z.ZodString>;
|
|
968
|
-
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
969
|
-
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
970
|
-
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
971
|
-
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
972
|
-
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
973
|
-
strokeOpacity: z.ZodOptional<z.ZodNumber>;
|
|
974
|
-
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
975
|
-
strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
976
|
-
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
977
|
-
areaMarker: z.ZodOptional<z.ZodBoolean>;
|
|
978
|
-
}, "strip", z.ZodTypeAny, {
|
|
979
|
-
type: "Polygon";
|
|
980
|
-
id: string;
|
|
981
|
-
coordinates?: [number, number][][] | undefined;
|
|
982
|
-
groupId?: string | null | undefined;
|
|
983
|
-
color?: string | undefined;
|
|
984
|
-
name?: string | null | undefined;
|
|
985
|
-
description?: string | null | undefined;
|
|
986
|
-
attributes?: Record<string, unknown> | undefined;
|
|
987
|
-
interaction?: "default" | "locked" | undefined;
|
|
988
|
-
imageUrl?: string | null | undefined;
|
|
989
|
-
strokeOpacity?: number | undefined;
|
|
990
|
-
strokeWidth?: number | undefined;
|
|
991
|
-
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
992
|
-
fillOpacity?: number | undefined;
|
|
993
|
-
areaMarker?: boolean | undefined;
|
|
994
|
-
}, {
|
|
995
|
-
type: "Polygon";
|
|
996
|
-
id: string;
|
|
997
|
-
coordinates?: [number, number][][] | undefined;
|
|
998
|
-
groupId?: string | null | undefined;
|
|
999
|
-
color?: string | undefined;
|
|
1000
|
-
name?: string | null | undefined;
|
|
1001
|
-
description?: string | null | undefined;
|
|
1002
|
-
attributes?: Record<string, unknown> | undefined;
|
|
1003
|
-
interaction?: "default" | "locked" | undefined;
|
|
1004
|
-
imageUrl?: string | null | undefined;
|
|
1005
|
-
strokeOpacity?: number | undefined;
|
|
1006
|
-
strokeWidth?: number | undefined;
|
|
1007
|
-
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
1008
|
-
fillOpacity?: number | undefined;
|
|
1009
|
-
areaMarker?: boolean | undefined;
|
|
1010
|
-
}>;
|
|
1011
|
-
declare const CircleUpdateSchema: z.ZodObject<{
|
|
1012
|
-
type: z.ZodLiteral<"Circle">;
|
|
1013
|
-
coordinates: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
1014
|
-
id: z.ZodString;
|
|
1015
|
-
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1016
|
-
color: z.ZodOptional<z.ZodString>;
|
|
1017
|
-
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
1018
|
-
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
1019
|
-
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1020
|
-
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
1021
|
-
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1022
|
-
strokeOpacity: z.ZodOptional<z.ZodNumber>;
|
|
1023
|
-
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
1024
|
-
strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
1025
|
-
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
1026
|
-
radius: z.ZodOptional<z.ZodNumber>;
|
|
1027
|
-
radiusDisplayAngle: z.ZodOptional<z.ZodNumber>;
|
|
1028
|
-
radiusDisplayUnit: z.ZodOptional<z.ZodNullable<z.ZodEnum<["meter", "kilometer", "foot", "mile"]>>>;
|
|
1029
|
-
radiusMarker: z.ZodOptional<z.ZodBoolean>;
|
|
1030
|
-
}, "strip", z.ZodTypeAny, {
|
|
1031
|
-
type: "Circle";
|
|
1032
|
-
id: string;
|
|
1033
|
-
coordinates?: [number, number] | undefined;
|
|
1034
|
-
groupId?: string | null | undefined;
|
|
1035
|
-
color?: string | undefined;
|
|
1036
|
-
name?: string | null | undefined;
|
|
1037
|
-
description?: string | null | undefined;
|
|
1038
|
-
attributes?: Record<string, unknown> | undefined;
|
|
1039
|
-
interaction?: "default" | "locked" | undefined;
|
|
1040
|
-
imageUrl?: string | null | undefined;
|
|
1041
|
-
strokeOpacity?: number | undefined;
|
|
1042
|
-
strokeWidth?: number | undefined;
|
|
1043
|
-
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
1044
|
-
fillOpacity?: number | undefined;
|
|
1045
|
-
radius?: number | undefined;
|
|
1046
|
-
radiusDisplayAngle?: number | undefined;
|
|
1047
|
-
radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
|
|
1048
|
-
radiusMarker?: boolean | undefined;
|
|
1049
|
-
}, {
|
|
1050
|
-
type: "Circle";
|
|
1051
|
-
id: string;
|
|
1052
|
-
coordinates?: [number, number] | undefined;
|
|
1053
|
-
groupId?: string | null | undefined;
|
|
1054
|
-
color?: string | undefined;
|
|
1055
|
-
name?: string | null | undefined;
|
|
1056
|
-
description?: string | null | undefined;
|
|
1057
|
-
attributes?: Record<string, unknown> | undefined;
|
|
1058
|
-
interaction?: "default" | "locked" | undefined;
|
|
1059
|
-
imageUrl?: string | null | undefined;
|
|
1060
|
-
strokeOpacity?: number | undefined;
|
|
1061
|
-
strokeWidth?: number | undefined;
|
|
1062
|
-
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
1063
|
-
fillOpacity?: number | undefined;
|
|
1064
|
-
radius?: number | undefined;
|
|
1065
|
-
radiusDisplayAngle?: number | undefined;
|
|
1066
|
-
radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
|
|
1067
|
-
radiusMarker?: boolean | undefined;
|
|
1068
|
-
}>;
|
|
1069
|
-
declare const MarkerUpdateSchema: z.ZodObject<{
|
|
1070
|
-
type: z.ZodLiteral<"Marker">;
|
|
1071
|
-
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
|
|
1072
|
-
id: z.ZodString;
|
|
1073
|
-
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1074
|
-
color: z.ZodOptional<z.ZodString>;
|
|
1075
|
-
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
1076
|
-
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
1077
|
-
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1078
|
-
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
1079
|
-
opacity: z.ZodOptional<z.ZodNumber>;
|
|
1080
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
1081
|
-
zoom: z.ZodOptional<z.ZodNumber>;
|
|
1082
|
-
}, "strip", z.ZodTypeAny, {
|
|
1083
|
-
type: "Marker";
|
|
1084
|
-
id: string;
|
|
1085
|
-
coordinates?: [number, number][][] | undefined;
|
|
1086
|
-
groupId?: string | null | undefined;
|
|
1087
|
-
color?: string | undefined;
|
|
1088
|
-
name?: string | null | undefined;
|
|
1089
|
-
description?: string | null | undefined;
|
|
1090
|
-
attributes?: Record<string, unknown> | undefined;
|
|
1091
|
-
interaction?: "default" | "locked" | undefined;
|
|
1092
|
-
opacity?: number | undefined;
|
|
1093
|
-
size?: number | undefined;
|
|
1094
|
-
zoom?: number | undefined;
|
|
1095
|
-
}, {
|
|
1096
|
-
type: "Marker";
|
|
1097
|
-
id: string;
|
|
1098
|
-
coordinates?: [number, number][][] | undefined;
|
|
1099
|
-
groupId?: string | null | undefined;
|
|
1100
|
-
color?: string | undefined;
|
|
1101
|
-
name?: string | null | undefined;
|
|
1102
|
-
description?: string | null | undefined;
|
|
1103
|
-
attributes?: Record<string, unknown> | undefined;
|
|
1104
|
-
interaction?: "default" | "locked" | undefined;
|
|
1105
|
-
opacity?: number | undefined;
|
|
1106
|
-
size?: number | undefined;
|
|
1107
|
-
zoom?: number | undefined;
|
|
1108
|
-
}>;
|
|
1109
|
-
declare const HighlighterUpdateSchema: z.ZodObject<{
|
|
1110
|
-
type: z.ZodLiteral<"Highlighter">;
|
|
1111
|
-
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
|
|
1112
|
-
id: z.ZodString;
|
|
1113
|
-
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1114
|
-
color: z.ZodOptional<z.ZodString>;
|
|
1115
|
-
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
1116
|
-
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
1117
|
-
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1118
|
-
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
1119
|
-
opacity: z.ZodOptional<z.ZodNumber>;
|
|
1120
|
-
}, "strip", z.ZodTypeAny, {
|
|
1121
|
-
type: "Highlighter";
|
|
1122
|
-
id: string;
|
|
1123
|
-
coordinates?: [number, number][][] | undefined;
|
|
1124
|
-
groupId?: string | null | undefined;
|
|
1125
|
-
color?: string | undefined;
|
|
1126
|
-
name?: string | null | undefined;
|
|
1127
|
-
description?: string | null | undefined;
|
|
1128
|
-
attributes?: Record<string, unknown> | undefined;
|
|
1129
|
-
interaction?: "default" | "locked" | undefined;
|
|
1130
|
-
opacity?: number | undefined;
|
|
1131
|
-
}, {
|
|
1132
|
-
type: "Highlighter";
|
|
1133
|
-
id: string;
|
|
1134
|
-
coordinates?: [number, number][][] | undefined;
|
|
1135
|
-
groupId?: string | null | undefined;
|
|
1136
|
-
color?: string | undefined;
|
|
1137
|
-
name?: string | null | undefined;
|
|
1138
|
-
description?: string | null | undefined;
|
|
1139
|
-
attributes?: Record<string, unknown> | undefined;
|
|
1140
|
-
interaction?: "default" | "locked" | undefined;
|
|
1141
|
-
opacity?: number | undefined;
|
|
1142
|
-
}>;
|
|
1143
|
-
declare const TextUpdateSchema: z.ZodObject<Omit<{
|
|
1144
|
-
type: z.ZodLiteral<"Text">;
|
|
1145
|
-
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
|
|
1146
|
-
id: z.ZodString;
|
|
1147
|
-
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1148
|
-
color: z.ZodOptional<z.ZodString>;
|
|
1149
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1150
|
-
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
1151
|
-
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1152
|
-
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
1153
|
-
zoom: z.ZodOptional<z.ZodNumber>;
|
|
1154
|
-
position: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
1155
|
-
rotation: z.ZodOptional<z.ZodNumber>;
|
|
1156
|
-
scale: z.ZodOptional<z.ZodNumber>;
|
|
1157
|
-
text: z.ZodOptional<z.ZodString>;
|
|
1158
|
-
align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
1159
|
-
style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
|
|
1160
|
-
}, "coordinates" | "name">, "strip", z.ZodTypeAny, {
|
|
1161
|
-
type: "Text";
|
|
1162
|
-
id: string;
|
|
1163
|
-
groupId?: string | null | undefined;
|
|
1164
|
-
color?: string | undefined;
|
|
1165
|
-
description?: string | null | undefined;
|
|
1166
|
-
attributes?: Record<string, unknown> | undefined;
|
|
1167
|
-
interaction?: "default" | "locked" | undefined;
|
|
1168
|
-
zoom?: number | undefined;
|
|
1169
|
-
position?: [number, number] | undefined;
|
|
1170
|
-
rotation?: number | undefined;
|
|
1171
|
-
scale?: number | undefined;
|
|
1172
|
-
text?: string | undefined;
|
|
1173
|
-
align?: "left" | "center" | "right" | undefined;
|
|
1174
|
-
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1175
|
-
}, {
|
|
1176
|
-
type: "Text";
|
|
1177
|
-
id: string;
|
|
1178
|
-
groupId?: string | null | undefined;
|
|
1179
|
-
color?: string | undefined;
|
|
1180
|
-
description?: string | null | undefined;
|
|
1181
|
-
attributes?: Record<string, unknown> | undefined;
|
|
1182
|
-
interaction?: "default" | "locked" | undefined;
|
|
1183
|
-
zoom?: number | undefined;
|
|
1184
|
-
position?: [number, number] | undefined;
|
|
1185
|
-
rotation?: number | undefined;
|
|
1186
|
-
scale?: number | undefined;
|
|
1187
|
-
text?: string | undefined;
|
|
1188
|
-
align?: "left" | "center" | "right" | undefined;
|
|
1189
|
-
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1190
|
-
}>;
|
|
1191
|
-
declare const NoteUpdateSchema: z.ZodObject<Omit<{
|
|
1192
|
-
type: z.ZodLiteral<"Note">;
|
|
1193
|
-
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
|
|
1194
|
-
id: z.ZodString;
|
|
1195
|
-
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1196
|
-
color: z.ZodOptional<z.ZodString>;
|
|
1197
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1198
|
-
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
1199
|
-
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1200
|
-
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
1201
|
-
zoom: z.ZodOptional<z.ZodNumber>;
|
|
1202
|
-
position: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
1203
|
-
rotation: z.ZodOptional<z.ZodNumber>;
|
|
1204
|
-
scale: z.ZodOptional<z.ZodNumber>;
|
|
1205
|
-
text: z.ZodOptional<z.ZodString>;
|
|
1206
|
-
align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
1207
|
-
style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
|
|
1208
|
-
widthScale: z.ZodOptional<z.ZodNumber>;
|
|
1209
|
-
}, "coordinates" | "name">, "strip", z.ZodTypeAny, {
|
|
1210
|
-
type: "Note";
|
|
1211
|
-
id: string;
|
|
1212
|
-
groupId?: string | null | undefined;
|
|
1213
|
-
color?: string | undefined;
|
|
1214
|
-
description?: string | null | undefined;
|
|
1215
|
-
attributes?: Record<string, unknown> | undefined;
|
|
1216
|
-
interaction?: "default" | "locked" | undefined;
|
|
1217
|
-
zoom?: number | undefined;
|
|
1218
|
-
position?: [number, number] | undefined;
|
|
1219
|
-
rotation?: number | undefined;
|
|
1220
|
-
scale?: number | undefined;
|
|
1221
|
-
text?: string | undefined;
|
|
1222
|
-
align?: "left" | "center" | "right" | undefined;
|
|
1223
|
-
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1224
|
-
widthScale?: number | undefined;
|
|
1225
|
-
}, {
|
|
1226
|
-
type: "Note";
|
|
1227
|
-
id: string;
|
|
1228
|
-
groupId?: string | null | undefined;
|
|
1229
|
-
color?: string | undefined;
|
|
1230
|
-
description?: string | null | undefined;
|
|
1231
|
-
attributes?: Record<string, unknown> | undefined;
|
|
1232
|
-
interaction?: "default" | "locked" | undefined;
|
|
1233
|
-
zoom?: number | undefined;
|
|
1234
|
-
position?: [number, number] | undefined;
|
|
1235
|
-
rotation?: number | undefined;
|
|
1236
|
-
scale?: number | undefined;
|
|
1237
|
-
text?: string | undefined;
|
|
1238
|
-
align?: "left" | "center" | "right" | undefined;
|
|
1239
|
-
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1240
|
-
widthScale?: number | undefined;
|
|
1241
|
-
}>;
|
|
1242
|
-
declare const ImageUpdateSchema: z.ZodObject<{
|
|
1243
|
-
type: z.ZodLiteral<"Image">;
|
|
1244
|
-
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
|
|
1245
|
-
id: z.ZodString;
|
|
1246
|
-
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1247
|
-
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
1248
|
-
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
1249
|
-
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1250
|
-
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
1251
|
-
imageUrl: z.ZodOptional<z.ZodString>;
|
|
1252
|
-
opacity: z.ZodOptional<z.ZodNumber>;
|
|
1253
|
-
}, "strip", z.ZodTypeAny, {
|
|
1254
|
-
type: "Image";
|
|
1255
|
-
id: string;
|
|
1256
|
-
coordinates?: [number, number][][] | undefined;
|
|
1257
|
-
groupId?: string | null | undefined;
|
|
1258
|
-
name?: string | null | undefined;
|
|
1259
|
-
description?: string | null | undefined;
|
|
1260
|
-
attributes?: Record<string, unknown> | undefined;
|
|
1261
|
-
interaction?: "default" | "locked" | undefined;
|
|
1262
|
-
imageUrl?: string | undefined;
|
|
1263
|
-
opacity?: number | undefined;
|
|
1264
|
-
}, {
|
|
1265
|
-
type: "Image";
|
|
1266
|
-
id: string;
|
|
1267
|
-
coordinates?: [number, number][][] | undefined;
|
|
1268
|
-
groupId?: string | null | undefined;
|
|
1269
|
-
name?: string | null | undefined;
|
|
1270
|
-
description?: string | null | undefined;
|
|
1271
|
-
attributes?: Record<string, unknown> | undefined;
|
|
1272
|
-
interaction?: "default" | "locked" | undefined;
|
|
1273
|
-
imageUrl?: string | undefined;
|
|
1274
|
-
opacity?: number | undefined;
|
|
1275
|
-
}>;
|
|
1276
|
-
interface PlaceElementCreate extends zInfer<typeof PlaceCreateSchema> {
|
|
1277
|
-
}
|
|
1278
|
-
interface PathElementCreate extends zInfer<typeof PathCreateSchema> {
|
|
1279
|
-
}
|
|
1280
|
-
interface PolygonElementCreate extends zInfer<typeof PolygonCreateSchema> {
|
|
1281
|
-
}
|
|
1282
|
-
interface CircleElementCreate extends zInfer<typeof CircleCreateSchema> {
|
|
1283
|
-
}
|
|
1284
|
-
interface MarkerElementCreate extends zInfer<typeof MarkerCreateSchema> {
|
|
1285
|
-
}
|
|
1286
|
-
interface HighlighterElementCreate extends zInfer<typeof HighlighterCreateSchema> {
|
|
1287
|
-
}
|
|
1288
|
-
interface TextElementCreate extends zInfer<typeof TextCreateSchema> {
|
|
1289
|
-
}
|
|
1290
|
-
interface NoteElementCreate extends zInfer<typeof NoteCreateSchema> {
|
|
1291
|
-
}
|
|
1292
|
-
interface ImageElementCreate extends zInfer<typeof ImageCreateSchema> {
|
|
1293
|
-
}
|
|
1294
|
-
interface PlaceElementRead extends zInfer<typeof PlaceReadSchema> {
|
|
1295
|
-
}
|
|
1296
|
-
interface PathElementRead extends zInfer<typeof PathReadSchema> {
|
|
1297
|
-
}
|
|
1298
|
-
interface PolygonElementRead extends zInfer<typeof PolygonReadSchema> {
|
|
1299
|
-
}
|
|
1300
|
-
interface CircleElementRead extends zInfer<typeof CircleReadSchema> {
|
|
1301
|
-
}
|
|
1302
|
-
interface MarkerElementRead extends zInfer<typeof MarkerReadSchema> {
|
|
1303
|
-
}
|
|
1304
|
-
interface HighlighterElementRead extends zInfer<typeof HighlighterReadSchema> {
|
|
1305
|
-
}
|
|
1306
|
-
interface TextElementRead extends zInfer<typeof TextReadSchema> {
|
|
1307
|
-
}
|
|
1308
|
-
interface NoteElementRead extends zInfer<typeof NoteReadSchema> {
|
|
1309
|
-
}
|
|
1310
|
-
interface ImageElementRead extends zInfer<typeof ImageReadSchema> {
|
|
1311
|
-
}
|
|
1312
|
-
interface LinkElementRead extends zInfer<typeof LinkReadSchema> {
|
|
1313
|
-
}
|
|
1314
|
-
interface PlaceElementUpdate extends zInfer<typeof PlaceUpdateSchema> {
|
|
1315
|
-
}
|
|
1316
|
-
interface PathElementUpdate extends zInfer<typeof PathUpdateSchema> {
|
|
1317
|
-
}
|
|
1318
|
-
interface PolygonElementUpdate extends zInfer<typeof PolygonUpdateSchema> {
|
|
1319
|
-
}
|
|
1320
|
-
interface CircleElementUpdate extends zInfer<typeof CircleUpdateSchema> {
|
|
1321
|
-
}
|
|
1322
|
-
interface MarkerElementUpdate extends zInfer<typeof MarkerUpdateSchema> {
|
|
1323
|
-
}
|
|
1324
|
-
interface HighlighterElementUpdate extends zInfer<typeof HighlighterUpdateSchema> {
|
|
1325
|
-
}
|
|
1326
|
-
interface TextElementUpdate extends zInfer<typeof TextUpdateSchema> {
|
|
1327
|
-
}
|
|
1328
|
-
interface NoteElementUpdate extends zInfer<typeof NoteUpdateSchema> {
|
|
1329
|
-
}
|
|
1330
|
-
interface ImageElementUpdate extends zInfer<typeof ImageUpdateSchema> {
|
|
1331
|
-
}
|
|
1332
|
-
type ElementCreate = PlaceElementCreate | PathElementCreate | PolygonElementCreate | CircleElementCreate | MarkerElementCreate | HighlighterElementCreate | ImageElementCreate | TextElementCreate | NoteElementCreate;
|
|
1333
|
-
type ElementUpdate = PlaceElementUpdate | PathElementUpdate | PolygonElementUpdate | CircleElementUpdate | MarkerElementUpdate | HighlighterElementUpdate | TextElementUpdate | NoteElementUpdate | ImageElementUpdate;
|
|
1334
|
-
/**
|
|
1335
|
-
* @group Elements
|
|
1336
|
-
*/
|
|
1337
|
-
type Element = PlaceElementRead | PathElementRead | PolygonElementRead | CircleElementRead | MarkerElementRead | HighlighterElementRead | TextElementRead | NoteElementRead | ImageElementRead | LinkElementRead;
|
|
1338
|
-
/**
|
|
1339
|
-
* @group Element Groups
|
|
1340
|
-
*/
|
|
1341
|
-
interface ElementGroup {
|
|
1342
|
-
/**
|
|
1343
|
-
* A string identifying the element group.
|
|
1344
|
-
*/
|
|
1345
|
-
id: string;
|
|
1346
|
-
/**
|
|
1347
|
-
* The name of the element group. This is shown in the legend.
|
|
1348
|
-
*/
|
|
1349
|
-
name: string;
|
|
1350
|
-
/**
|
|
1351
|
-
* The caption of the element group. This is shown in the legend.
|
|
1352
|
-
*/
|
|
1353
|
-
caption: string | null;
|
|
1354
|
-
/**
|
|
1355
|
-
* The ids of the elements in the element group.
|
|
1356
|
-
*
|
|
1357
|
-
* @remarks
|
|
1358
|
-
* You can use these ids to get the full element objects via the `getElements` method.
|
|
1359
|
-
*/
|
|
1360
|
-
elementIds: Array<string>;
|
|
1361
|
-
/**
|
|
1362
|
-
* Whether the element group is visible or not.
|
|
1363
|
-
*/
|
|
1364
|
-
visible: boolean;
|
|
1365
|
-
/**
|
|
1366
|
-
* Whether the element group is shown in the legend or not.
|
|
1367
|
-
*/
|
|
1368
|
-
shownInLegend: boolean;
|
|
1369
|
-
}
|
|
1370
|
-
/**
|
|
1371
|
-
* The constraints to apply when getting elements.
|
|
1372
|
-
*
|
|
1373
|
-
* @group Elements
|
|
1374
|
-
*/
|
|
1375
|
-
interface GetElementsConstraint extends zInfer<typeof GetElementsConstraintSchema> {
|
|
1376
|
-
}
|
|
1377
|
-
declare const GetElementsConstraintSchema: z.ZodObject<{
|
|
1378
|
-
/**
|
|
1379
|
-
* The ids of the elements to get.
|
|
1380
|
-
*/
|
|
1381
|
-
ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1382
|
-
}, "strip", z.ZodTypeAny, {
|
|
1383
|
-
ids?: string[] | undefined;
|
|
1384
|
-
}, {
|
|
1385
|
-
ids?: string[] | undefined;
|
|
1386
|
-
}>;
|
|
1387
|
-
/**
|
|
1388
|
-
* The constraints to apply when getting element groups.
|
|
1389
|
-
*
|
|
1390
|
-
* @group Element Groups
|
|
1391
|
-
*/
|
|
1392
|
-
interface GetElementGroupsConstraint extends zInfer<typeof GetElementGroupsConstraintSchema> {
|
|
1393
|
-
}
|
|
1394
|
-
/**
|
|
1395
|
-
* @ignore
|
|
1396
|
-
*/
|
|
1397
|
-
declare const GetElementGroupsConstraintSchema: z.ZodObject<{
|
|
1398
|
-
/**
|
|
1399
|
-
* The ids of the element groups to get.
|
|
1400
|
-
*/
|
|
1401
|
-
ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1402
|
-
}, "strip", z.ZodTypeAny, {
|
|
1403
|
-
ids?: string[] | undefined;
|
|
1404
|
-
}, {
|
|
1405
|
-
ids?: string[] | undefined;
|
|
1406
|
-
}>;
|
|
1407
|
-
/**
|
|
1408
|
-
* The parameters for the `onElementChange` and the `onElementCreate` listeners.
|
|
1409
|
-
*
|
|
1410
|
-
* @group Elements
|
|
1411
|
-
*/
|
|
1412
|
-
interface ElementChangeCallbackParams {
|
|
1413
|
-
/**
|
|
1414
|
-
* The new data for the element or null if the element was removed.
|
|
1415
|
-
*/
|
|
1416
|
-
element: Element | null;
|
|
1417
|
-
/**
|
|
1418
|
-
* Whether or not this element is still being created by a drawing tool.
|
|
1419
|
-
*
|
|
1420
|
-
* For example, if the user begins drawing a polygon, they need to place
|
|
1421
|
-
* multiple points until they've ultimately completed the polygon. All
|
|
1422
|
-
* the time they are still placing points, this will be true.
|
|
1423
|
-
*
|
|
1424
|
-
* For elements that require text entry (such as Places, Text and Notes)
|
|
1425
|
-
* this will be true all the time the user is typing text until the point
|
|
1426
|
-
* at which the user finishes, by pressing Escape for example.
|
|
1427
|
-
*
|
|
1428
|
-
* If the user is editing an existing element, this will be false.
|
|
1429
|
-
*
|
|
1430
|
-
* For elements that are created programatically, this will be false.
|
|
1431
|
-
*/
|
|
1432
|
-
isBeingCreated: boolean;
|
|
1433
|
-
}
|
|
1434
|
-
/**
|
|
1435
|
-
* The parameters for the `onElementGroupChange` listener.
|
|
1436
|
-
*
|
|
1437
|
-
* @group Element Groups
|
|
1438
|
-
*/
|
|
1439
|
-
interface ElementGroupChangeCallbackParams {
|
|
1440
|
-
elementGroup: ElementGroup | null;
|
|
1441
|
-
}
|
|
1442
|
-
|
|
1443
|
-
/**
|
|
1444
|
-
* Represents a point in world coordinates.
|
|
1445
|
-
*/
|
|
1446
|
-
interface LatLng {
|
|
1447
|
-
latitude: number;
|
|
1448
|
-
longitude: number;
|
|
1449
|
-
}
|
|
1450
|
-
/**
|
|
1451
|
-
* A tuple representing a longitude and latitude coordinate.
|
|
1452
|
-
*
|
|
1453
|
-
* This is used hen serializing geometry because that's the standard used in
|
|
1454
|
-
* GeoJSON.
|
|
1455
|
-
*/
|
|
1456
|
-
type LngLatTuple = [longitude: number, latitude: number];
|
|
1457
|
-
interface PointGeometry extends zInfer<typeof PointGeometrySchema> {
|
|
1458
|
-
}
|
|
1459
|
-
/**
|
|
1460
|
-
* A GeoJSON point geometry.
|
|
1461
|
-
*/
|
|
1462
|
-
declare const PointGeometrySchema: z.ZodObject<{
|
|
1463
|
-
type: z.ZodLiteral<"Point">;
|
|
1464
|
-
coordinates: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
1465
|
-
}, "strip", z.ZodTypeAny, {
|
|
1466
|
-
type: "Point";
|
|
1467
|
-
coordinates: [number, number];
|
|
1468
|
-
}, {
|
|
1469
|
-
type: "Point";
|
|
1470
|
-
coordinates: [number, number];
|
|
1471
|
-
}>;
|
|
1472
|
-
interface PolygonGeometry extends zInfer<typeof PolygonGeometrySchema> {
|
|
1473
|
-
}
|
|
1474
|
-
/**
|
|
1475
|
-
* A GeoJSON polygon geometry.
|
|
1476
|
-
*/
|
|
1477
|
-
declare const PolygonGeometrySchema: z.ZodObject<{
|
|
1478
|
-
type: z.ZodLiteral<"Polygon">;
|
|
1479
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
1480
|
-
}, "strip", z.ZodTypeAny, {
|
|
1481
|
-
type: "Polygon";
|
|
1482
|
-
coordinates: [number, number][][];
|
|
1483
|
-
}, {
|
|
1484
|
-
type: "Polygon";
|
|
1485
|
-
coordinates: [number, number][][];
|
|
1486
|
-
}>;
|
|
1487
|
-
/**
|
|
1488
|
-
* A GeoJSON multi-polygon geometry.
|
|
1489
|
-
*
|
|
1490
|
-
* @interface
|
|
1491
|
-
*/
|
|
1492
|
-
type MultiPolygonGeometry = {
|
|
1493
|
-
type: "MultiPolygon";
|
|
1494
|
-
coordinates: PolygonGeometry["coordinates"][];
|
|
1495
|
-
};
|
|
1496
|
-
/**
|
|
1497
|
-
* A GeoJSON line string geometry.
|
|
1498
|
-
*
|
|
1499
|
-
* @interface
|
|
1500
|
-
*/
|
|
1501
|
-
type LineStringGeometry = {
|
|
1502
|
-
type: "LineString";
|
|
1503
|
-
coordinates: LngLatTuple[];
|
|
1504
|
-
};
|
|
1505
|
-
/**
|
|
1506
|
-
* A GeoJSON multi-line string geometry.
|
|
1507
|
-
*
|
|
1508
|
-
* @interface
|
|
1509
|
-
*/
|
|
1510
|
-
type MultiLineStringGeometry = {
|
|
1511
|
-
type: "MultiLineString";
|
|
1512
|
-
coordinates: LineStringGeometry["coordinates"][];
|
|
1513
|
-
};
|
|
1514
|
-
/**
|
|
1515
|
-
* A GeoJSON geometry of any type
|
|
1516
|
-
*/
|
|
1517
|
-
type Geometry = PointGeometry | PolygonGeometry | LineStringGeometry | MultiLineStringGeometry | MultiPolygonGeometry;
|
|
1518
|
-
/**
|
|
1519
|
-
* @ignore
|
|
1520
|
-
* @internal
|
|
1521
|
-
*/
|
|
1522
|
-
declare const FeltZoomSchema: z.ZodNumber;
|
|
1523
|
-
/**
|
|
1524
|
-
* The zoom level of the map.
|
|
1525
|
-
*
|
|
1526
|
-
* It is a floating-point number between 1 and 23, where 1 is the most
|
|
1527
|
-
* zoomed out and 23 is the most zoomed in.
|
|
1528
|
-
*
|
|
1529
|
-
* @group Types
|
|
1530
|
-
* @public
|
|
1531
|
-
*/
|
|
1532
|
-
type FeltZoom = z.infer<typeof FeltZoomSchema>;
|
|
1533
|
-
/**
|
|
1534
|
-
* @ignore
|
|
1535
|
-
* @internal
|
|
1536
|
-
*/
|
|
1537
|
-
declare const FeltBoundarySchema: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
1538
|
-
/**
|
|
1539
|
-
* The edges of the map in the form of a bounding box.
|
|
1540
|
-
*
|
|
1541
|
-
* The boundary is a tuple of the form `[west, south, east, north]`.
|
|
1542
|
-
*
|
|
1543
|
-
* @group Types
|
|
1544
|
-
* @public
|
|
1545
|
-
*/
|
|
1546
|
-
type FeltBoundary = z.infer<typeof FeltBoundarySchema>;
|
|
1547
|
-
/**
|
|
1548
|
-
* The parameters for the methods that change the visibility of entities.
|
|
1549
|
-
*
|
|
1550
|
-
* @public
|
|
1551
|
-
* @category Visibility
|
|
1552
|
-
*/
|
|
1553
|
-
interface SetVisibilityRequest extends zInfer<typeof SetVisibilityRequestSchema> {
|
|
1554
|
-
}
|
|
1555
|
-
/**
|
|
1556
|
-
* @internal
|
|
1557
|
-
*/
|
|
1558
|
-
declare const SetVisibilityRequestSchema: z.ZodObject<{
|
|
1559
|
-
/**
|
|
1560
|
-
* The ids of the entities you want to change the visibility of.
|
|
1561
|
-
*/
|
|
1562
|
-
show: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1563
|
-
hide: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1564
|
-
}, "strip", z.ZodTypeAny, {
|
|
1565
|
-
show?: string[] | undefined;
|
|
1566
|
-
hide?: string[] | undefined;
|
|
1567
|
-
}, {
|
|
1568
|
-
show?: string[] | undefined;
|
|
1569
|
-
hide?: string[] | undefined;
|
|
1570
|
-
}>;
|
|
1571
|
-
/**
|
|
1572
|
-
* Specifies the direction to sort data in
|
|
1573
|
-
*
|
|
1574
|
-
* @group Types
|
|
1575
|
-
*/
|
|
1576
|
-
type SortDirection = z.infer<typeof SortDirectionSchema>;
|
|
1577
|
-
/** @ignore */
|
|
1578
|
-
declare const SortDirectionSchema: z.ZodEnum<["asc", "desc"]>;
|
|
1579
|
-
/**
|
|
1580
|
-
* Configuration for sorting data by a specific attribute
|
|
1581
|
-
*
|
|
1582
|
-
* @group Types
|
|
1583
|
-
*/
|
|
1584
|
-
interface SortConfig extends zInfer<typeof SortConfigSchema> {
|
|
1585
|
-
}
|
|
1586
|
-
/** @ignore */
|
|
1587
|
-
declare const SortConfigSchema: z.ZodObject<{
|
|
1588
|
-
/**
|
|
1589
|
-
* The attribute to sort by. What this represents depends on the context.
|
|
1590
|
-
* For instance, when sorting features in a data table, the attribute is
|
|
1591
|
-
* the column to sort by.
|
|
1592
|
-
*/
|
|
1593
|
-
attribute: z.ZodString;
|
|
1594
|
-
/**
|
|
1595
|
-
* The direction to sort in
|
|
1596
|
-
*/
|
|
1597
|
-
direction: z.ZodEnum<["asc", "desc"]>;
|
|
1598
|
-
}, "strip", z.ZodTypeAny, {
|
|
1599
|
-
attribute: string;
|
|
1600
|
-
direction: "asc" | "desc";
|
|
1601
|
-
}, {
|
|
1602
|
-
attribute: string;
|
|
1603
|
-
direction: "asc" | "desc";
|
|
1604
|
-
}>;
|
|
1605
|
-
|
|
1606
|
-
/**
|
|
1607
|
-
* A feature is a single geographical item in a layer.
|
|
1608
|
-
* The unique ID for a feature is a compound key made up of the layer ID and the feature ID.
|
|
1609
|
-
*/
|
|
1610
|
-
interface Feature {
|
|
1611
|
-
/**
|
|
1612
|
-
* The identifier of the feature, unique within the layer.
|
|
1613
|
-
*/
|
|
1614
|
-
id: string | number;
|
|
1615
|
-
/**
|
|
1616
|
-
* The identifier of the layer that the feature belongs to.
|
|
1617
|
-
*/
|
|
1618
|
-
layerId: string;
|
|
1619
|
-
/**
|
|
1620
|
-
* The type of geometry of the feature.
|
|
1621
|
-
*/
|
|
1622
|
-
geometryType: "Point" | "LineString" | "Polygon" | "MultiPolygon" | (string & {});
|
|
1623
|
-
/**
|
|
1624
|
-
* The properties of the feature, as a bag of attributes.
|
|
1625
|
-
*/
|
|
1626
|
-
properties: Record<string, unknown>;
|
|
1627
|
-
}
|
|
1628
|
-
/**
|
|
1629
|
-
* A raster pixel value for a specific layer.
|
|
1630
|
-
*
|
|
1631
|
-
* @interface
|
|
1632
|
-
*/
|
|
1633
|
-
type RasterValue = {
|
|
1634
|
-
/**
|
|
1635
|
-
* The value of the pixel.
|
|
1636
|
-
*/
|
|
1637
|
-
value: number;
|
|
1638
|
-
/**
|
|
1639
|
-
* The ID of the layer that the pixel belongs to.
|
|
1640
|
-
*/
|
|
1641
|
-
layerId: string;
|
|
1642
|
-
/**
|
|
1643
|
-
* The name of the category that the pixel belongs to.
|
|
1644
|
-
*/
|
|
1645
|
-
categoryName: null | string;
|
|
1646
|
-
/**
|
|
1647
|
-
* The color of the pixel. Each value is between 0 and 255.
|
|
1648
|
-
*/
|
|
1649
|
-
color: null | {
|
|
1650
|
-
r: number;
|
|
1651
|
-
g: number;
|
|
1652
|
-
b: number;
|
|
1653
|
-
a: number;
|
|
1654
|
-
};
|
|
1655
|
-
};
|
|
1656
|
-
|
|
1657
|
-
/**
|
|
1658
|
-
* This describes the processing status of a layer.
|
|
1659
|
-
*
|
|
1660
|
-
* The various values are:
|
|
1661
|
-
* - `processing`: The layer has been uploaded or updated and is still processing.
|
|
1662
|
-
* - `completed`: The layer has been processed and can be viewed on the map.
|
|
1663
|
-
* - `failed`: The layer failed to process and cannot be viewed on the map.
|
|
1664
|
-
* - `incomplete`: The layer has not been processed.
|
|
1665
|
-
*
|
|
1666
|
-
* @group Layers
|
|
1667
|
-
*/
|
|
1668
|
-
type LayerProcessingStatus = z.infer<typeof LayerProcessingStatusSchema>;
|
|
1669
|
-
declare const LayerProcessingStatusSchema: z.ZodEnum<["processing", "completed", "failed", "incomplete"]>;
|
|
1670
|
-
/**
|
|
1671
|
-
* @group Layers
|
|
1672
|
-
*/
|
|
1673
|
-
interface Layer {
|
|
1674
|
-
/**
|
|
1675
|
-
* The string identifying the layer
|
|
1676
|
-
*/
|
|
1677
|
-
id: string;
|
|
1678
|
-
/**
|
|
1679
|
-
* The ID of the layer group that the layer belongs to.
|
|
1680
|
-
*
|
|
1681
|
-
* Layers that appear at the root level in Felt will not have a group ID.
|
|
1682
|
-
*/
|
|
1683
|
-
groupId: string | null;
|
|
1684
|
-
/**
|
|
1685
|
-
* The name of the layer can be displayed in the Legend, depending
|
|
1686
|
-
* on how the layer's legend is configured in its style.
|
|
1687
|
-
*/
|
|
1688
|
-
name: string;
|
|
1689
|
-
/**
|
|
1690
|
-
* The layer's caption is shown in the legend.
|
|
1691
|
-
*/
|
|
1692
|
-
caption: string | null;
|
|
1693
|
-
/**
|
|
1694
|
-
* The layer description forms part of the layer's metadata. This is visible
|
|
1695
|
-
* to users via the layer info button in the legend.
|
|
1696
|
-
*/
|
|
1697
|
-
description: string | null;
|
|
1698
|
-
/**
|
|
1699
|
-
* Whether the layer is visible or not.
|
|
1700
|
-
*/
|
|
1701
|
-
visible: boolean;
|
|
1702
|
-
/**
|
|
1703
|
-
* Whether the layer is shown in the legend or not.
|
|
1704
|
-
*/
|
|
1705
|
-
shownInLegend: boolean;
|
|
1706
|
-
/**
|
|
1707
|
-
* The FSL style for the layer.
|
|
1708
|
-
*
|
|
1709
|
-
* See the [FSL documentation](https://developers.felt.com/felt-style-language) for details
|
|
1710
|
-
* on how to read and write styles.
|
|
1711
|
-
*
|
|
1712
|
-
* As the types of the styles are very complex, we return `object` here and advise that you
|
|
1713
|
-
* program defensively while reading the styles.
|
|
1714
|
-
*/
|
|
1715
|
-
style: object;
|
|
1716
|
-
/**
|
|
1717
|
-
* The current processing status of the layer.
|
|
1718
|
-
*/
|
|
1719
|
-
status: LayerProcessingStatus;
|
|
1720
|
-
/**
|
|
1721
|
-
* The geometry type of the layer.
|
|
1722
|
-
*
|
|
1723
|
-
* @remarks
|
|
1724
|
-
* This will generally be one of:
|
|
1725
|
-
* - `"Point"`
|
|
1726
|
-
* - `"Line"`
|
|
1727
|
-
* - `"Polygon"`
|
|
1728
|
-
* - `"Raster"`
|
|
1729
|
-
* - `null`
|
|
1730
|
-
*
|
|
1731
|
-
* When the layer is processing, or it is a data-only layer, it will be null. You should
|
|
1732
|
-
* expect this to be able to be any string, however, as more geometry types can be added
|
|
1733
|
-
* in the future.
|
|
1734
|
-
*/
|
|
1735
|
-
geometryType: string | null;
|
|
1736
|
-
/**
|
|
1737
|
-
* The bounding box of the layer. If the layer is processing, or the bounds have otherwise
|
|
1738
|
-
* not been calculated or are not available, this will be `null`.
|
|
1739
|
-
*
|
|
1740
|
-
* {@link FeltBoundary}
|
|
1741
|
-
*/
|
|
1742
|
-
bounds: FeltBoundary | null;
|
|
1743
|
-
}
|
|
1744
|
-
/**
|
|
1745
|
-
* @group Layer Groups
|
|
1746
|
-
*/
|
|
1747
|
-
interface LayerGroup {
|
|
1748
|
-
/**
|
|
1749
|
-
* A string identifying the layer group.
|
|
1750
|
-
*/
|
|
1751
|
-
id: string;
|
|
1752
|
-
/**
|
|
1753
|
-
* The name of the layer group. This is shown in the legend.
|
|
1754
|
-
*/
|
|
1755
|
-
name: string;
|
|
1756
|
-
/**
|
|
1757
|
-
* The caption of the layer group. This is shown in the legend.
|
|
1758
|
-
*/
|
|
1759
|
-
caption: string | null;
|
|
1760
|
-
/**
|
|
1761
|
-
* The ids of the layers in the layer group.
|
|
1762
|
-
*
|
|
1763
|
-
* @remarks
|
|
1764
|
-
* You can use these ids to get the full layer objects via the `getLayers` method.
|
|
1765
|
-
*/
|
|
1766
|
-
layerIds: Array<string>;
|
|
1767
|
-
/**
|
|
1768
|
-
* Whether the layer group is visible or not.
|
|
1769
|
-
*/
|
|
1770
|
-
visible: boolean;
|
|
1771
|
-
/**
|
|
1772
|
-
* Whether the layer group is shown in the legend or not.
|
|
1773
|
-
*/
|
|
1774
|
-
shownInLegend: boolean;
|
|
1775
|
-
/**
|
|
1776
|
-
* The bounding box of the layer group.
|
|
1777
|
-
*
|
|
1778
|
-
* {@link FeltBoundary}
|
|
1779
|
-
*/
|
|
1780
|
-
bounds: FeltBoundary | null;
|
|
1781
|
-
}
|
|
1782
|
-
/**
|
|
1783
|
-
* The constraints to apply when getting layers.
|
|
1784
|
-
*
|
|
1785
|
-
* @group Layers
|
|
1786
|
-
*/
|
|
1787
|
-
interface GetLayersConstraint extends zInfer<typeof GetLayersConstraintSchema> {
|
|
1788
|
-
}
|
|
1789
|
-
/**
|
|
1790
|
-
* @ignore
|
|
1791
|
-
*/
|
|
1792
|
-
declare const GetLayersConstraintSchema: z.ZodObject<{
|
|
1793
|
-
/**
|
|
1794
|
-
* The ids of the layers to get.
|
|
1795
|
-
*/
|
|
1796
|
-
ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1797
|
-
}, "strip", z.ZodTypeAny, {
|
|
1798
|
-
ids?: string[] | undefined;
|
|
1799
|
-
}, {
|
|
1800
|
-
ids?: string[] | undefined;
|
|
1801
|
-
}>;
|
|
1802
|
-
/**
|
|
1803
|
-
* The constraints to apply when getting layer groups.
|
|
1804
|
-
*
|
|
1805
|
-
* @group Layer Groups
|
|
1806
|
-
*/
|
|
1807
|
-
interface GetLayerGroupsConstraint extends zInfer<typeof GetLayerGroupsFilterSchema> {
|
|
1808
|
-
}
|
|
1809
|
-
/**
|
|
1810
|
-
* @ignore
|
|
1811
|
-
*/
|
|
1812
|
-
declare const GetLayerGroupsFilterSchema: z.ZodObject<{
|
|
1813
|
-
/**
|
|
1814
|
-
* The ids of the layer groups to get.
|
|
1815
|
-
*/
|
|
1816
|
-
ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1817
|
-
}, "strip", z.ZodTypeAny, {
|
|
1818
|
-
ids?: string[] | undefined;
|
|
1819
|
-
}, {
|
|
1820
|
-
ids?: string[] | undefined;
|
|
1821
|
-
}>;
|
|
1822
|
-
/**
|
|
1823
|
-
* The parameters for the `onLayerChange` listener.
|
|
1824
|
-
*
|
|
1825
|
-
* @group Layers
|
|
1826
|
-
*/
|
|
1827
|
-
interface LayerChangeCallbackParams {
|
|
1828
|
-
/**
|
|
1829
|
-
* The new data for the layer or null if the layer was removed.
|
|
1830
|
-
*/
|
|
1831
|
-
layer: Layer | null;
|
|
1832
|
-
}
|
|
1833
|
-
/**
|
|
1834
|
-
* The parameters for the `onLayerGroupChange` listener.
|
|
1835
|
-
*
|
|
1836
|
-
* @group Layer Groups
|
|
1837
|
-
*/
|
|
1838
|
-
interface LayerGroupChangeCallbackParams {
|
|
1839
|
-
layerGroup: LayerGroup | null;
|
|
1840
|
-
}
|
|
1841
|
-
/**
|
|
1842
|
-
* A legend item, which often represents a sub-class of features in a
|
|
1843
|
-
* layer in the case of categorical or classed layers.
|
|
1844
|
-
*
|
|
1845
|
-
* @group Legend Items
|
|
1846
|
-
*/
|
|
1847
|
-
interface LegendItem extends LegendItemIdentifier {
|
|
1848
|
-
/**
|
|
1849
|
-
* The title of the legend item.
|
|
1850
|
-
*/
|
|
1851
|
-
title: string | Array<string>;
|
|
1852
|
-
/**
|
|
1853
|
-
* Whether the title depends on the zoom level or not. If it does, you
|
|
1854
|
-
* need to call `getLegendItem` when the zoom level changes.
|
|
1855
|
-
*
|
|
1856
|
-
* Note that as the zoom level changes, the `onLegendItemChange` handler
|
|
1857
|
-
* will not be called, so you need to call `getLegendItem` yourself.
|
|
1858
|
-
*/
|
|
1859
|
-
titleDependsOnZoom: boolean;
|
|
1860
|
-
/**
|
|
1861
|
-
* Whether the legend item is visible or not.
|
|
1862
|
-
*/
|
|
1863
|
-
visible: boolean;
|
|
1864
|
-
}
|
|
1865
|
-
/**
|
|
1866
|
-
* The identifier for a legend item. It is a compound key of the layer to
|
|
1867
|
-
* which the legend item belongs and the legend item's own id.
|
|
1868
|
-
*
|
|
1869
|
-
* @group Legend Items
|
|
1870
|
-
*/
|
|
1871
|
-
interface LegendItemIdentifier extends zInfer<typeof LegendItemIdentifierSchema> {
|
|
1872
|
-
}
|
|
1873
|
-
/** @ignore */
|
|
1874
|
-
declare const LegendItemIdentifierSchema: z.ZodObject<{
|
|
1875
|
-
/**
|
|
1876
|
-
* The id of the legend item.
|
|
1877
|
-
*/
|
|
1878
|
-
id: z.ZodString;
|
|
1879
|
-
/**
|
|
1880
|
-
* The id of the layer the legend item belongs to.
|
|
1881
|
-
*/
|
|
1882
|
-
layerId: z.ZodString;
|
|
1883
|
-
}, "strip", z.ZodTypeAny, {
|
|
1884
|
-
id: string;
|
|
1885
|
-
layerId: string;
|
|
1886
|
-
}, {
|
|
1887
|
-
id: string;
|
|
1888
|
-
layerId: string;
|
|
1889
|
-
}>;
|
|
1890
|
-
/**
|
|
1891
|
-
* Constraints for legend items. If nothing is passed, all legend items will be returned.
|
|
1892
|
-
*
|
|
1893
|
-
* @group Legend Items
|
|
1894
|
-
*/
|
|
1895
|
-
interface LegendItemsConstraint extends zInfer<typeof LegendItemsConstraintSchema> {
|
|
1896
|
-
}
|
|
1897
|
-
/** @ignore */
|
|
1898
|
-
declare const LegendItemsConstraintSchema: z.ZodObject<{
|
|
1899
|
-
/**
|
|
1900
|
-
* Array of legend item identifiers to constrain by.
|
|
1901
|
-
*/
|
|
1902
|
-
ids: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1903
|
-
/**
|
|
1904
|
-
* The id of the legend item.
|
|
1905
|
-
*/
|
|
1906
|
-
id: z.ZodString;
|
|
1907
|
-
/**
|
|
1908
|
-
* The id of the layer the legend item belongs to.
|
|
1909
|
-
*/
|
|
1910
|
-
layerId: z.ZodString;
|
|
1911
|
-
}, "strip", z.ZodTypeAny, {
|
|
1912
|
-
id: string;
|
|
1913
|
-
layerId: string;
|
|
1914
|
-
}, {
|
|
1915
|
-
id: string;
|
|
1916
|
-
layerId: string;
|
|
1917
|
-
}>, "many">>;
|
|
1918
|
-
/**
|
|
1919
|
-
* Array of layer ids to constrain legend items by.
|
|
1920
|
-
*/
|
|
1921
|
-
layerIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1922
|
-
}, "strip", z.ZodTypeAny, {
|
|
1923
|
-
ids?: {
|
|
1924
|
-
id: string;
|
|
1925
|
-
layerId: string;
|
|
1926
|
-
}[] | undefined;
|
|
1927
|
-
layerIds?: string[] | undefined;
|
|
1928
|
-
}, {
|
|
1929
|
-
ids?: {
|
|
1930
|
-
id: string;
|
|
1931
|
-
layerId: string;
|
|
1932
|
-
}[] | undefined;
|
|
1933
|
-
layerIds?: string[] | undefined;
|
|
1934
|
-
}>;
|
|
1935
|
-
/**
|
|
1936
|
-
* The parameters for the `onLegendItemChange` listener.
|
|
1937
|
-
*
|
|
1938
|
-
* @group Legend Items
|
|
1939
|
-
*/
|
|
1940
|
-
interface LegendItemChangeCallbackParams {
|
|
1941
|
-
/**
|
|
1942
|
-
* The new data for the legend item or null if the legend item was removed.
|
|
1943
|
-
*/
|
|
1944
|
-
legendItem: LegendItem | null;
|
|
1945
|
-
}
|
|
1946
|
-
/**
|
|
1947
|
-
* Constraints for the `getRenderedFeatures` method. This can include layer constriants, spatial constraints, or both. If no constraints are
|
|
1948
|
-
* provided, all rendered features will be returned.
|
|
1949
|
-
*
|
|
1950
|
-
* @group Layers
|
|
1951
|
-
*/
|
|
1952
|
-
interface GetRenderedFeaturesConstraint extends zInfer<typeof GetRenderedFeaturesConstraintSchema> {
|
|
1953
|
-
/**
|
|
1954
|
-
* The area to query for rendered features. This can be specific coordinates or a {@link FeltBoundary}. If omitted, the entire viewport will be queried.
|
|
1955
|
-
*/
|
|
1956
|
-
areaQuery?: {
|
|
1957
|
-
coordinates: LatLng;
|
|
1958
|
-
} | {
|
|
1959
|
-
boundary: FeltBoundary;
|
|
1960
|
-
};
|
|
1961
|
-
}
|
|
1962
|
-
/** @ignore */
|
|
1963
|
-
declare const GetRenderedFeaturesConstraintSchema: z.ZodObject<{
|
|
1964
|
-
/**
|
|
1965
|
-
* The ids of the layers to get rendered features for.
|
|
1966
|
-
*/
|
|
1967
|
-
layerIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1968
|
-
areaQuery: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1969
|
-
coordinates: z.ZodObject<{
|
|
1970
|
-
latitude: z.ZodNumber;
|
|
1971
|
-
longitude: z.ZodNumber;
|
|
1972
|
-
}, "strip", z.ZodTypeAny, {
|
|
1973
|
-
latitude: number;
|
|
1974
|
-
longitude: number;
|
|
1975
|
-
}, {
|
|
1976
|
-
latitude: number;
|
|
1977
|
-
longitude: number;
|
|
1978
|
-
}>;
|
|
1979
|
-
}, "strip", z.ZodTypeAny, {
|
|
1980
|
-
coordinates: {
|
|
1981
|
-
latitude: number;
|
|
1982
|
-
longitude: number;
|
|
1983
|
-
};
|
|
1984
|
-
}, {
|
|
1985
|
-
coordinates: {
|
|
1986
|
-
latitude: number;
|
|
1987
|
-
longitude: number;
|
|
1988
|
-
};
|
|
1989
|
-
}>, z.ZodObject<{
|
|
1990
|
-
boundary: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
1991
|
-
}, "strip", z.ZodTypeAny, {
|
|
1992
|
-
boundary: [number, number, number, number];
|
|
1993
|
-
}, {
|
|
1994
|
-
boundary: [number, number, number, number];
|
|
1995
|
-
}>]>>;
|
|
1996
|
-
}, "strip", z.ZodTypeAny, {
|
|
1997
|
-
layerIds?: string[] | undefined;
|
|
1998
|
-
areaQuery?: {
|
|
1999
|
-
coordinates: {
|
|
2000
|
-
latitude: number;
|
|
2001
|
-
longitude: number;
|
|
2002
|
-
};
|
|
2003
|
-
} | {
|
|
2004
|
-
boundary: [number, number, number, number];
|
|
2005
|
-
} | undefined;
|
|
2006
|
-
}, {
|
|
2007
|
-
layerIds?: string[] | undefined;
|
|
2008
|
-
areaQuery?: {
|
|
2009
|
-
coordinates: {
|
|
2010
|
-
latitude: number;
|
|
2011
|
-
longitude: number;
|
|
2012
|
-
};
|
|
2013
|
-
} | {
|
|
2014
|
-
boundary: [number, number, number, number];
|
|
2015
|
-
} | undefined;
|
|
2016
|
-
}>;
|
|
2017
|
-
|
|
2018
|
-
/**
|
|
2019
|
-
* @group Filters
|
|
2020
|
-
*/
|
|
2021
|
-
type FilterLogicGate = z.infer<typeof FilterLogicGateSchema>;
|
|
2022
|
-
declare const FilterLogicGateSchema: z.ZodEnum<["and", "or"]>;
|
|
2023
|
-
/**
|
|
2024
|
-
* @group Filters
|
|
2025
|
-
*/
|
|
2026
|
-
type FilterExpression = z.infer<typeof FilterExpressionSchema>;
|
|
2027
|
-
declare const FilterExpressionSchema: z.ZodUnion<[z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["in", "ni"]>, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>, "many">, z.ZodNull]>], null>, z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["lt", "gt", "le", "ge", "eq", "ne", "cn", "nc", "is", "isnt"]>, z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>], null>]>;
|
|
2028
|
-
/**
|
|
2029
|
-
* A `FilterTernary` is a tree structure for combining expressions with logical operators.
|
|
2030
|
-
*
|
|
2031
|
-
* When combining three or more conditions, you must use proper nesting rather than a flat list.
|
|
2032
|
-
*
|
|
2033
|
-
* @example
|
|
2034
|
-
* ```typescript
|
|
2035
|
-
* // A simple filter with a single condition
|
|
2036
|
-
* const filter = [
|
|
2037
|
-
* ["AREA", "gt", 30_000],
|
|
2038
|
-
* "and",
|
|
2039
|
-
* ["COLOR", "eq", "red"]
|
|
2040
|
-
* ]
|
|
2041
|
-
*
|
|
2042
|
-
* // A complex filter with multiple conditions
|
|
2043
|
-
* const filter = [
|
|
2044
|
-
* ["AREA", "gt", 30_000],
|
|
2045
|
-
* "and",
|
|
2046
|
-
* [
|
|
2047
|
-
* ["COLOR", "eq", "red"],
|
|
2048
|
-
* "or",
|
|
2049
|
-
* ["TYPE", "eq", "residential"]
|
|
2050
|
-
* ]
|
|
2051
|
-
* ]
|
|
2052
|
-
* ```
|
|
2053
|
-
*
|
|
2054
|
-
* @group Filters
|
|
2055
|
-
*/
|
|
2056
|
-
type FilterTernary = [
|
|
2057
|
-
FilterTernary | FilterExpression | null | boolean,
|
|
2058
|
-
FilterLogicGate,
|
|
2059
|
-
FilterTernary | FilterExpression | null | boolean
|
|
2060
|
-
];
|
|
2061
|
-
/**
|
|
2062
|
-
*
|
|
2063
|
-
* Filters can be used to change which features in a layer are rendered. Filters can be
|
|
2064
|
-
* applied to a layer by the `setLayerFilters` method on the Felt controller.
|
|
2065
|
-
*
|
|
2066
|
-
* Filters use a tree structure for combining expressions with logical operators, called a
|
|
2067
|
-
* {@link FilterTernary}. When combining three or more conditions, you must use proper nesting
|
|
2068
|
-
* rather than a flat list.
|
|
2069
|
-
*
|
|
2070
|
-
* See the examples below for the correct structure to use when building complex filters.
|
|
2071
|
-
*
|
|
2072
|
-
* @remarks
|
|
2073
|
-
* The possible operators are:
|
|
2074
|
-
* - `lt`: Less than
|
|
2075
|
-
* - `gt`: Greater than
|
|
2076
|
-
* - `le`: Less than or equal to
|
|
2077
|
-
* - `ge`: Greater than or equal to
|
|
2078
|
-
* - `eq`: Equal to
|
|
2079
|
-
* - `ne`: Not equal to
|
|
2080
|
-
* - `cn`: Contains
|
|
2081
|
-
* - `nc`: Does not contain
|
|
2082
|
-
*
|
|
2083
|
-
* The allowed boolean operators are:
|
|
2084
|
-
* - `and`: Logical AND
|
|
2085
|
-
* - `or`: Logical OR
|
|
2086
|
-
*
|
|
2087
|
-
* @example
|
|
2088
|
-
* ```typescript
|
|
2089
|
-
* // 1. Simple filter: single condition
|
|
2090
|
-
* felt.setLayerFilters({
|
|
2091
|
-
* layerId: "layer-1",
|
|
2092
|
-
* filters: ["AREA", "gt", 30_000],
|
|
2093
|
-
* });
|
|
2094
|
-
*
|
|
2095
|
-
* // 2. Basic compound filter: two conditions with AND
|
|
2096
|
-
* felt.setLayerFilters({
|
|
2097
|
-
* layerId: "layer-1",
|
|
2098
|
-
* filters: [
|
|
2099
|
-
* ["AREA", "gt", 30_000], // First condition
|
|
2100
|
-
* "and", // Logic operator
|
|
2101
|
-
* ["COLOR", "eq", "red"] // Second condition
|
|
2102
|
-
* ]
|
|
2103
|
-
* });
|
|
2104
|
-
*
|
|
2105
|
-
* // 3. Complex filter: three or more conditions require nesting
|
|
2106
|
-
* // ⚠️ IMPORTANT: Filters use a tree structure, not a flat list
|
|
2107
|
-
* felt.setLayerFilters({
|
|
2108
|
-
* layerId: "layer-1",
|
|
2109
|
-
* filters: [
|
|
2110
|
-
* ["AREA", "gt", 30_000], // First condition
|
|
2111
|
-
* "and", // First logic operator
|
|
2112
|
-
* [ // Nested group starts
|
|
2113
|
-
* ["COLOR", "eq", "red"], // Second condition
|
|
2114
|
-
* "and", // Second logic operator
|
|
2115
|
-
* ["TYPE", "eq", "residential"] // Third condition
|
|
2116
|
-
* ] // Nested group ends
|
|
2117
|
-
* ]
|
|
2118
|
-
* });
|
|
2119
|
-
*
|
|
2120
|
-
* // 4. Even more complex: four conditions with proper nesting
|
|
2121
|
-
* // Visual structure:
|
|
2122
|
-
* // AND
|
|
2123
|
-
* // / \
|
|
2124
|
-
* // condition AND
|
|
2125
|
-
* // / \
|
|
2126
|
-
* // condition AND
|
|
2127
|
-
* // / \
|
|
2128
|
-
* // condition condition
|
|
2129
|
-
* felt.setLayerFilters({
|
|
2130
|
-
* layerId: "layer-1",
|
|
2131
|
-
* filters: [
|
|
2132
|
-
* ["AREA", "gt", 30_000], // First condition
|
|
2133
|
-
* "and",
|
|
2134
|
-
* [
|
|
2135
|
-
* ["COLOR", "eq", "red"], // Second condition
|
|
2136
|
-
* "and",
|
|
2137
|
-
* [
|
|
2138
|
-
* ["TYPE", "eq", "residential"], // Third condition
|
|
2139
|
-
* "and",
|
|
2140
|
-
* ["YEAR", "gt", 2000] // Fourth condition
|
|
2141
|
-
* ]
|
|
2142
|
-
* ]
|
|
2143
|
-
* ]
|
|
2144
|
-
* });
|
|
2145
|
-
*
|
|
2146
|
-
* // 5. Mixed operators: combining AND and OR
|
|
2147
|
-
* // Visual structure:
|
|
2148
|
-
* // AND
|
|
2149
|
-
* // / \
|
|
2150
|
-
* // condition OR
|
|
2151
|
-
* // / \
|
|
2152
|
-
* // condition condition
|
|
2153
|
-
* felt.setLayerFilters({
|
|
2154
|
-
* layerId: "layer-1",
|
|
2155
|
-
* filters: [
|
|
2156
|
-
* ["AREA", "gt", 30_000], // Must have large area
|
|
2157
|
-
* "and",
|
|
2158
|
-
* [
|
|
2159
|
-
* ["COLOR", "eq", "red"], // Must be either red
|
|
2160
|
-
* "or",
|
|
2161
|
-
* ["TYPE", "eq", "residential"] // OR residential type
|
|
2162
|
-
* ]
|
|
2163
|
-
* ]
|
|
2164
|
-
* });
|
|
2165
|
-
* ```
|
|
2166
|
-
*
|
|
2167
|
-
* @group Filters
|
|
2168
|
-
*/
|
|
2169
|
-
type Filters = FilterTernary | FilterExpression | null | boolean;
|
|
2170
|
-
/**
|
|
2171
|
-
* The filters that are currently set on a layer.
|
|
2172
|
-
*
|
|
2173
|
-
* A layer's filters are the combination of various different places
|
|
2174
|
-
* in which filters can be applied.
|
|
2175
|
-
*
|
|
2176
|
-
* @group Filters
|
|
2177
|
-
*/
|
|
2178
|
-
interface LayerFilters {
|
|
2179
|
-
/**
|
|
2180
|
-
* Filters that are set in the layer's style. These are the lowest level
|
|
2181
|
-
* of filters, and can only be set by editing the map.
|
|
2182
|
-
*/
|
|
2183
|
-
style: Filters;
|
|
2184
|
-
/**
|
|
2185
|
-
* Filters that are set in the layer's components, which are interactive
|
|
2186
|
-
* elements in the legend. These can be set by viewers for their own session,
|
|
2187
|
-
* but their default value can be set by the map creator.
|
|
2188
|
-
*/
|
|
2189
|
-
components: Filters;
|
|
2190
|
-
/**
|
|
2191
|
-
* Filters that are set ephemerally by viewers in their own session.
|
|
2192
|
-
*
|
|
2193
|
-
* These are the filters that are set when the `setLayerFilters` method is
|
|
2194
|
-
* called. There is no way to set these in the Felt UI - they can only be
|
|
2195
|
-
* set using the SDK.
|
|
2196
|
-
*/
|
|
2197
|
-
ephemeral: Filters;
|
|
2198
|
-
/**
|
|
2199
|
-
* The combined result of all the filters set on the layer.
|
|
2200
|
-
*/
|
|
2201
|
-
combined: Filters;
|
|
2202
|
-
}
|
|
2203
|
-
|
|
2204
|
-
declare const AggregateMethodSchema: z.ZodEnum<["avg", "max", "min", "sum", "median"]>;
|
|
2205
|
-
declare const AggregationConfigSchema: z.ZodObject<{
|
|
2206
|
-
/**
|
|
2207
|
-
* The operation to use on the values from the features in the layer
|
|
2208
|
-
*/
|
|
2209
|
-
method: z.ZodEnum<["avg", "max", "min", "sum", "median"]>;
|
|
2210
|
-
/**
|
|
2211
|
-
* The attribute to use for the aggregation. This must be a numeric attribute.
|
|
2212
|
-
*/
|
|
2213
|
-
attribute: z.ZodString;
|
|
2214
|
-
}, "strip", z.ZodTypeAny, {
|
|
2215
|
-
attribute: string;
|
|
2216
|
-
method: "avg" | "max" | "min" | "sum" | "median";
|
|
2217
|
-
}, {
|
|
2218
|
-
attribute: string;
|
|
2219
|
-
method: "avg" | "max" | "min" | "sum" | "median";
|
|
2220
|
-
}>;
|
|
2221
|
-
declare const MutliAggregationConfigSchema: z.ZodObject<{
|
|
2222
|
-
/**
|
|
2223
|
-
* The operations to use on the values from the features in the layer
|
|
2224
|
-
*/
|
|
2225
|
-
methods: z.ZodArray<z.ZodUnion<[z.ZodEnum<["avg", "max", "min", "sum", "median"]>, z.ZodLiteral<"count">]>, "many">;
|
|
2226
|
-
/**
|
|
2227
|
-
* The attribute to use for the aggregation. This must be a numeric attribute.
|
|
2228
|
-
*/
|
|
2229
|
-
attribute: z.ZodOptional<z.ZodString>;
|
|
2230
|
-
}, "strip", z.ZodTypeAny, {
|
|
2231
|
-
methods: ("avg" | "max" | "min" | "sum" | "median" | "count")[];
|
|
2232
|
-
attribute?: string | undefined;
|
|
2233
|
-
}, {
|
|
2234
|
-
methods: ("avg" | "max" | "min" | "sum" | "median" | "count")[];
|
|
2235
|
-
attribute?: string | undefined;
|
|
2236
|
-
}>;
|
|
2237
|
-
/**
|
|
2238
|
-
* Defines how to aggregate a value across features in a layer.
|
|
2239
|
-
*/
|
|
2240
|
-
interface AggregationConfig extends zInfer<typeof AggregationConfigSchema> {
|
|
2241
|
-
/**
|
|
2242
|
-
* The method to use for the aggregation.
|
|
2243
|
-
*/
|
|
2244
|
-
method: AggregationMethod;
|
|
2245
|
-
}
|
|
2246
|
-
/**
|
|
2247
|
-
* The method to use for the aggregation.
|
|
2248
|
-
*/
|
|
2249
|
-
type AggregationMethod = z.infer<typeof AggregateMethodSchema>;
|
|
2250
|
-
/**
|
|
2251
|
-
* Defines how to aggregate a value across features in a layer with multiple aggregations
|
|
2252
|
-
* returned at once.
|
|
2253
|
-
*/
|
|
2254
|
-
interface MultiAggregationConfig<T extends AggregationMethod | "count"> extends zInfer<typeof MutliAggregationConfigSchema> {
|
|
2255
|
-
methods: T[];
|
|
2256
|
-
/**
|
|
2257
|
-
* The attribute to use for the aggregation when aggregations other than "count" are used.
|
|
2258
|
-
*
|
|
2259
|
-
* This can be omitted if the only aggregation is "count", but must be a numeric attribute
|
|
2260
|
-
* otherwise.
|
|
2261
|
-
*/
|
|
2262
|
-
attribute?: string;
|
|
2263
|
-
}
|
|
2264
|
-
declare const ValueConfigurationSchema: z.ZodObject<{
|
|
2265
|
-
boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
|
|
2266
|
-
type: z.ZodLiteral<"Polygon">;
|
|
2267
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
2268
|
-
}, "strip", z.ZodTypeAny, {
|
|
2269
|
-
type: "Polygon";
|
|
2270
|
-
coordinates: [number, number][][];
|
|
2271
|
-
}, {
|
|
2272
|
-
type: "Polygon";
|
|
2273
|
-
coordinates: [number, number][][];
|
|
2274
|
-
}>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]>>;
|
|
2275
|
-
filters: z.ZodOptional<z.ZodUnion<[z.ZodType<FilterTernary, z.ZodTypeDef, FilterTernary>, z.ZodUnion<[z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["in", "ni"]>, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>, "many">, z.ZodNull]>], null>, z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["lt", "gt", "le", "ge", "eq", "ne", "cn", "nc", "is", "isnt"]>, z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>], null>]>, z.ZodNull, z.ZodBoolean]>>;
|
|
2276
|
-
aggregation: z.ZodOptional<z.ZodObject<{
|
|
2277
|
-
/**
|
|
2278
|
-
* The operation to use on the values from the features in the layer
|
|
2279
|
-
*/
|
|
2280
|
-
method: z.ZodEnum<["avg", "max", "min", "sum", "median"]>;
|
|
2281
|
-
/**
|
|
2282
|
-
* The attribute to use for the aggregation. This must be a numeric attribute.
|
|
2283
|
-
*/
|
|
2284
|
-
attribute: z.ZodString;
|
|
2285
|
-
}, "strip", z.ZodTypeAny, {
|
|
2286
|
-
attribute: string;
|
|
2287
|
-
method: "avg" | "max" | "min" | "sum" | "median";
|
|
2288
|
-
}, {
|
|
2289
|
-
attribute: string;
|
|
2290
|
-
method: "avg" | "max" | "min" | "sum" | "median";
|
|
2291
|
-
}>>;
|
|
2292
|
-
}, "strip", z.ZodTypeAny, {
|
|
2293
|
-
boundary?: [number, number][] | {
|
|
2294
|
-
type: "Polygon";
|
|
2295
|
-
coordinates: [number, number][][];
|
|
2296
|
-
} | [number, number, number, number] | undefined;
|
|
2297
|
-
filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
|
|
2298
|
-
aggregation?: {
|
|
2299
|
-
attribute: string;
|
|
2300
|
-
method: "avg" | "max" | "min" | "sum" | "median";
|
|
2301
|
-
} | undefined;
|
|
2302
|
-
}, {
|
|
2303
|
-
boundary?: [number, number][] | {
|
|
2304
|
-
type: "Polygon";
|
|
2305
|
-
coordinates: [number, number][][];
|
|
2306
|
-
} | [number, number, number, number] | undefined;
|
|
2307
|
-
filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
|
|
2308
|
-
aggregation?: {
|
|
2309
|
-
attribute: string;
|
|
2310
|
-
method: "avg" | "max" | "min" | "sum" | "median";
|
|
2311
|
-
} | undefined;
|
|
2312
|
-
}>;
|
|
2313
|
-
/**
|
|
2314
|
-
* Configuration for filtering and aggregating values across features.
|
|
2315
|
-
*
|
|
2316
|
-
* This can be used to restrict the features considered for aggregation via the `boundary`
|
|
2317
|
-
* and `filters` properties.
|
|
2318
|
-
*
|
|
2319
|
-
* It can also be used to specify how to aggregate the values via the `aggregation` property.
|
|
2320
|
-
*/
|
|
2321
|
-
interface ValueConfiguration extends zInfer<typeof ValueConfigurationSchema> {
|
|
2322
|
-
/**
|
|
2323
|
-
* A spatial boundary to filter what gets counted or aggregated, while still including
|
|
2324
|
-
* all possible categories or bin ranges in the results.
|
|
2325
|
-
*/
|
|
2326
|
-
boundary?: PolygonGeometry | LngLatTuple[] | FeltBoundary;
|
|
2327
|
-
/**
|
|
2328
|
-
* Attribute filters to determine what gets counted or aggregated, while still including
|
|
2329
|
-
* all possible categories or bin ranges in the results.
|
|
2330
|
-
*/
|
|
2331
|
-
filters?: Filters;
|
|
2332
|
-
/**
|
|
2333
|
-
* Specifies how to aggregate values within each category or bin. When omitted,
|
|
2334
|
-
* features are counted. When specified, the chosen calculation (avg, sum, etc.)
|
|
2335
|
-
* is performed on the specified attribute.
|
|
2336
|
-
*
|
|
2337
|
-
* For example, instead of counting buildings in each category, you might want
|
|
2338
|
-
* to sum their square footage or average their assessed values.
|
|
2339
|
-
*/
|
|
2340
|
-
aggregation?: AggregationConfig;
|
|
2341
|
-
}
|
|
2342
|
-
declare const GetLayerCategoriesParamsSchema: z.ZodObject<{
|
|
2343
|
-
/**
|
|
2344
|
-
* The ID of the layer to get categories from.
|
|
2345
|
-
*/
|
|
2346
|
-
layerId: z.ZodString;
|
|
2347
|
-
/**
|
|
2348
|
-
* The attribute to use for categorization.
|
|
2349
|
-
*/
|
|
2350
|
-
attribute: z.ZodString;
|
|
2351
|
-
/**
|
|
2352
|
-
* The maximum number of categories to return.
|
|
2353
|
-
*/
|
|
2354
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
2355
|
-
boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
|
|
2356
|
-
type: z.ZodLiteral<"Polygon">;
|
|
2357
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
2358
|
-
}, "strip", z.ZodTypeAny, {
|
|
2359
|
-
type: "Polygon";
|
|
2360
|
-
coordinates: [number, number][][];
|
|
2361
|
-
}, {
|
|
2362
|
-
type: "Polygon";
|
|
2363
|
-
coordinates: [number, number][][];
|
|
2364
|
-
}>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]>>;
|
|
2365
|
-
filters: z.ZodOptional<z.ZodUnion<[z.ZodType<FilterTernary, z.ZodTypeDef, FilterTernary>, z.ZodUnion<[z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["in", "ni"]>, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>, "many">, z.ZodNull]>], null>, z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["lt", "gt", "le", "ge", "eq", "ne", "cn", "nc", "is", "isnt"]>, z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>], null>]>, z.ZodNull, z.ZodBoolean]>>;
|
|
2366
|
-
values: z.ZodOptional<z.ZodObject<{
|
|
2367
|
-
boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
|
|
2368
|
-
type: z.ZodLiteral<"Polygon">;
|
|
2369
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
2370
|
-
}, "strip", z.ZodTypeAny, {
|
|
2371
|
-
type: "Polygon";
|
|
2372
|
-
coordinates: [number, number][][];
|
|
2373
|
-
}, {
|
|
2374
|
-
type: "Polygon";
|
|
2375
|
-
coordinates: [number, number][][];
|
|
2376
|
-
}>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]>>;
|
|
2377
|
-
filters: z.ZodOptional<z.ZodUnion<[z.ZodType<FilterTernary, z.ZodTypeDef, FilterTernary>, z.ZodUnion<[z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["in", "ni"]>, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>, "many">, z.ZodNull]>], null>, z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["lt", "gt", "le", "ge", "eq", "ne", "cn", "nc", "is", "isnt"]>, z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>], null>]>, z.ZodNull, z.ZodBoolean]>>;
|
|
2378
|
-
aggregation: z.ZodOptional<z.ZodObject<{
|
|
2379
|
-
/**
|
|
2380
|
-
* The operation to use on the values from the features in the layer
|
|
2381
|
-
*/
|
|
2382
|
-
method: z.ZodEnum<["avg", "max", "min", "sum", "median"]>;
|
|
2383
|
-
/**
|
|
2384
|
-
* The attribute to use for the aggregation. This must be a numeric attribute.
|
|
2385
|
-
*/
|
|
2386
|
-
attribute: z.ZodString;
|
|
2387
|
-
}, "strip", z.ZodTypeAny, {
|
|
2388
|
-
attribute: string;
|
|
2389
|
-
method: "avg" | "max" | "min" | "sum" | "median";
|
|
2390
|
-
}, {
|
|
2391
|
-
attribute: string;
|
|
2392
|
-
method: "avg" | "max" | "min" | "sum" | "median";
|
|
2393
|
-
}>>;
|
|
2394
|
-
}, "strip", z.ZodTypeAny, {
|
|
2395
|
-
boundary?: [number, number][] | {
|
|
2396
|
-
type: "Polygon";
|
|
2397
|
-
coordinates: [number, number][][];
|
|
2398
|
-
} | [number, number, number, number] | undefined;
|
|
2399
|
-
filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
|
|
2400
|
-
aggregation?: {
|
|
2401
|
-
attribute: string;
|
|
2402
|
-
method: "avg" | "max" | "min" | "sum" | "median";
|
|
2403
|
-
} | undefined;
|
|
2404
|
-
}, {
|
|
2405
|
-
boundary?: [number, number][] | {
|
|
2406
|
-
type: "Polygon";
|
|
2407
|
-
coordinates: [number, number][][];
|
|
2408
|
-
} | [number, number, number, number] | undefined;
|
|
2409
|
-
filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
|
|
2410
|
-
aggregation?: {
|
|
2411
|
-
attribute: string;
|
|
2412
|
-
method: "avg" | "max" | "min" | "sum" | "median";
|
|
2413
|
-
} | undefined;
|
|
2414
|
-
}>>;
|
|
2415
|
-
}, "strip", z.ZodTypeAny, {
|
|
2416
|
-
attribute: string;
|
|
2417
|
-
layerId: string;
|
|
2418
|
-
values?: {
|
|
2419
|
-
boundary?: [number, number][] | {
|
|
2420
|
-
type: "Polygon";
|
|
2421
|
-
coordinates: [number, number][][];
|
|
2422
|
-
} | [number, number, number, number] | undefined;
|
|
2423
|
-
filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
|
|
2424
|
-
aggregation?: {
|
|
2425
|
-
attribute: string;
|
|
2426
|
-
method: "avg" | "max" | "min" | "sum" | "median";
|
|
2427
|
-
} | undefined;
|
|
2428
|
-
} | undefined;
|
|
2429
|
-
boundary?: [number, number][] | {
|
|
2430
|
-
type: "Polygon";
|
|
2431
|
-
coordinates: [number, number][][];
|
|
2432
|
-
} | [number, number, number, number] | undefined;
|
|
2433
|
-
filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
|
|
2434
|
-
limit?: number | undefined;
|
|
2435
|
-
}, {
|
|
2436
|
-
attribute: string;
|
|
2437
|
-
layerId: string;
|
|
2438
|
-
values?: {
|
|
2439
|
-
boundary?: [number, number][] | {
|
|
2440
|
-
type: "Polygon";
|
|
2441
|
-
coordinates: [number, number][][];
|
|
2442
|
-
} | [number, number, number, number] | undefined;
|
|
2443
|
-
filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
|
|
2444
|
-
aggregation?: {
|
|
2445
|
-
attribute: string;
|
|
2446
|
-
method: "avg" | "max" | "min" | "sum" | "median";
|
|
2447
|
-
} | undefined;
|
|
2448
|
-
} | undefined;
|
|
2449
|
-
boundary?: [number, number][] | {
|
|
2450
|
-
type: "Polygon";
|
|
2451
|
-
coordinates: [number, number][][];
|
|
2452
|
-
} | [number, number, number, number] | undefined;
|
|
2453
|
-
filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
|
|
2454
|
-
limit?: number | undefined;
|
|
2455
|
-
}>;
|
|
2456
|
-
/**
|
|
2457
|
-
* The parameters for getting categories from a layer, passed to
|
|
2458
|
-
* the {@link LayersController.getCategoryData} method.
|
|
2459
|
-
*/
|
|
2460
|
-
interface GetLayerCategoriesParams extends zInfer<typeof GetLayerCategoriesParamsSchema> {
|
|
2461
|
-
/**
|
|
2462
|
-
* Attribute filters to determine what gets counted or aggregated.
|
|
2463
|
-
*/
|
|
2464
|
-
filters?: Filters;
|
|
2465
|
-
/**
|
|
2466
|
-
* A spatial boundary to filter what gets counted or aggregated. This can be either
|
|
2467
|
-
* a [w, s, e, n] bounding box, a GeoJSON Polygon geometry, or a list of coordinates
|
|
2468
|
-
* that form a polyline.
|
|
2469
|
-
*/
|
|
2470
|
-
boundary?: PolygonGeometry | LngLatTuple[] | FeltBoundary;
|
|
2471
|
-
/**
|
|
2472
|
-
* Configuration for filtering and aggregating values while preserving the full set of
|
|
2473
|
-
* categories in the results.
|
|
2474
|
-
*
|
|
2475
|
-
* This is particularly useful when you want to compare different subsets of data while
|
|
2476
|
-
* maintaining consistent categories. For example:
|
|
2477
|
-
*
|
|
2478
|
-
* - Show all building types in a city, but only count recent buildings in each type
|
|
2479
|
-
* - Keep all neighborhood categories but only sum up residential square footage
|
|
2480
|
-
*
|
|
2481
|
-
* Unlike top-level filters which affect both what categories appear AND their values,
|
|
2482
|
-
* filters in this configuration only affect the values while keeping all possible
|
|
2483
|
-
* categories in the results.
|
|
2484
|
-
*/
|
|
2485
|
-
values?: ValueConfiguration;
|
|
2486
|
-
}
|
|
2487
|
-
declare const GetLayerCategoriesGroupSchema: z.ZodObject<{
|
|
2488
|
-
/**
|
|
2489
|
-
* The category for which the value was calculated.
|
|
2490
|
-
*/
|
|
2491
|
-
key: z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean]>;
|
|
2492
|
-
/**
|
|
2493
|
-
* The value calculated for the category, whether a count, sum, average, etc.
|
|
2494
|
-
*
|
|
2495
|
-
* `null` is returned if there are no features in the category as opposed to zero,
|
|
2496
|
-
* so as not to confuse with a real zero value from some aggregation.
|
|
2497
|
-
*/
|
|
2498
|
-
value: z.ZodNullable<z.ZodNumber>;
|
|
2499
|
-
}, "strip", z.ZodTypeAny, {
|
|
2500
|
-
value: number | null;
|
|
2501
|
-
key: string | number | boolean;
|
|
2502
|
-
}, {
|
|
2503
|
-
value: number | null;
|
|
2504
|
-
key: string | number | boolean;
|
|
2505
|
-
}>;
|
|
2506
|
-
/**
|
|
2507
|
-
* A single category from the response from the {@link LayersController.getCategoryData} method.
|
|
2508
|
-
*/
|
|
2509
|
-
interface GetLayerCategoriesGroup extends zInfer<typeof GetLayerCategoriesGroupSchema> {
|
|
2510
|
-
}
|
|
2511
|
-
declare const GetLayerHistogramParamsSchema: z.ZodObject<{
|
|
2512
|
-
layerId: z.ZodString;
|
|
2513
|
-
attribute: z.ZodString;
|
|
2514
|
-
steps: z.ZodUnion<[z.ZodObject<{
|
|
2515
|
-
type: z.ZodLiteral<"equal-intervals">;
|
|
2516
|
-
count: z.ZodNumber;
|
|
2517
|
-
}, "strip", z.ZodTypeAny, {
|
|
2518
|
-
type: "equal-intervals";
|
|
2519
|
-
count: number;
|
|
2520
|
-
}, {
|
|
2521
|
-
type: "equal-intervals";
|
|
2522
|
-
count: number;
|
|
2523
|
-
}>, z.ZodObject<{
|
|
2524
|
-
type: z.ZodLiteral<"time-interval">;
|
|
2525
|
-
interval: z.ZodEnum<["hour", "day", "week", "month", "year"]>;
|
|
2526
|
-
}, "strip", z.ZodTypeAny, {
|
|
2527
|
-
type: "time-interval";
|
|
2528
|
-
interval: "hour" | "day" | "week" | "month" | "year";
|
|
2529
|
-
}, {
|
|
2530
|
-
type: "time-interval";
|
|
2531
|
-
interval: "hour" | "day" | "week" | "month" | "year";
|
|
2532
|
-
}>, z.ZodArray<z.ZodNumber, "many">]>;
|
|
2533
|
-
boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
|
|
2534
|
-
type: z.ZodLiteral<"Polygon">;
|
|
2535
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
2536
|
-
}, "strip", z.ZodTypeAny, {
|
|
2537
|
-
type: "Polygon";
|
|
2538
|
-
coordinates: [number, number][][];
|
|
2539
|
-
}, {
|
|
2540
|
-
type: "Polygon";
|
|
2541
|
-
coordinates: [number, number][][];
|
|
2542
|
-
}>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]>>;
|
|
2543
|
-
filters: z.ZodOptional<z.ZodUnion<[z.ZodType<FilterTernary, z.ZodTypeDef, FilterTernary>, z.ZodUnion<[z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["in", "ni"]>, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>, "many">, z.ZodNull]>], null>, z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["lt", "gt", "le", "ge", "eq", "ne", "cn", "nc", "is", "isnt"]>, z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>], null>]>, z.ZodNull, z.ZodBoolean]>>;
|
|
2544
|
-
/**
|
|
2545
|
-
* Configuration for filtering and aggregating values while preserving the full set of
|
|
2546
|
-
* bin ranges in the results.
|
|
2547
|
-
*
|
|
2548
|
-
* This is particularly useful when you want to compare different subsets of data while
|
|
2549
|
-
* maintaining consistent ranges. For example:
|
|
2550
|
-
*
|
|
2551
|
-
* - Use the same height ranges for comparing old vs new buildings
|
|
2552
|
-
*
|
|
2553
|
-
* Unlike top-level filters which affect both what ranges appear AND their values,
|
|
2554
|
-
* filters in this configuration only affect the values while keeping all possible
|
|
2555
|
-
* ranges in the results.
|
|
2556
|
-
*/
|
|
2557
|
-
values: z.ZodOptional<z.ZodObject<{
|
|
2558
|
-
boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
|
|
2559
|
-
type: z.ZodLiteral<"Polygon">;
|
|
2560
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
2561
|
-
}, "strip", z.ZodTypeAny, {
|
|
2562
|
-
type: "Polygon";
|
|
2563
|
-
coordinates: [number, number][][];
|
|
2564
|
-
}, {
|
|
2565
|
-
type: "Polygon";
|
|
2566
|
-
coordinates: [number, number][][];
|
|
2567
|
-
}>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]>>;
|
|
2568
|
-
filters: z.ZodOptional<z.ZodUnion<[z.ZodType<FilterTernary, z.ZodTypeDef, FilterTernary>, z.ZodUnion<[z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["in", "ni"]>, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>, "many">, z.ZodNull]>], null>, z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["lt", "gt", "le", "ge", "eq", "ne", "cn", "nc", "is", "isnt"]>, z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>], null>]>, z.ZodNull, z.ZodBoolean]>>;
|
|
2569
|
-
aggregation: z.ZodOptional<z.ZodObject<{
|
|
2570
|
-
/**
|
|
2571
|
-
* The operation to use on the values from the features in the layer
|
|
2572
|
-
*/
|
|
2573
|
-
method: z.ZodEnum<["avg", "max", "min", "sum", "median"]>;
|
|
2574
|
-
/**
|
|
2575
|
-
* The attribute to use for the aggregation. This must be a numeric attribute.
|
|
2576
|
-
*/
|
|
2577
|
-
attribute: z.ZodString;
|
|
2578
|
-
}, "strip", z.ZodTypeAny, {
|
|
2579
|
-
attribute: string;
|
|
2580
|
-
method: "avg" | "max" | "min" | "sum" | "median";
|
|
2581
|
-
}, {
|
|
2582
|
-
attribute: string;
|
|
2583
|
-
method: "avg" | "max" | "min" | "sum" | "median";
|
|
2584
|
-
}>>;
|
|
2585
|
-
}, "strip", z.ZodTypeAny, {
|
|
2586
|
-
boundary?: [number, number][] | {
|
|
2587
|
-
type: "Polygon";
|
|
2588
|
-
coordinates: [number, number][][];
|
|
2589
|
-
} | [number, number, number, number] | undefined;
|
|
2590
|
-
filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
|
|
2591
|
-
aggregation?: {
|
|
2592
|
-
attribute: string;
|
|
2593
|
-
method: "avg" | "max" | "min" | "sum" | "median";
|
|
2594
|
-
} | undefined;
|
|
2595
|
-
}, {
|
|
2596
|
-
boundary?: [number, number][] | {
|
|
2597
|
-
type: "Polygon";
|
|
2598
|
-
coordinates: [number, number][][];
|
|
2599
|
-
} | [number, number, number, number] | undefined;
|
|
2600
|
-
filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
|
|
2601
|
-
aggregation?: {
|
|
2602
|
-
attribute: string;
|
|
2603
|
-
method: "avg" | "max" | "min" | "sum" | "median";
|
|
2604
|
-
} | undefined;
|
|
2605
|
-
}>>;
|
|
2606
|
-
}, "strip", z.ZodTypeAny, {
|
|
2607
|
-
attribute: string;
|
|
2608
|
-
layerId: string;
|
|
2609
|
-
steps: number[] | {
|
|
2610
|
-
type: "equal-intervals";
|
|
2611
|
-
count: number;
|
|
2612
|
-
} | {
|
|
2613
|
-
type: "time-interval";
|
|
2614
|
-
interval: "hour" | "day" | "week" | "month" | "year";
|
|
2615
|
-
};
|
|
2616
|
-
values?: {
|
|
2617
|
-
boundary?: [number, number][] | {
|
|
2618
|
-
type: "Polygon";
|
|
2619
|
-
coordinates: [number, number][][];
|
|
2620
|
-
} | [number, number, number, number] | undefined;
|
|
2621
|
-
filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
|
|
2622
|
-
aggregation?: {
|
|
2623
|
-
attribute: string;
|
|
2624
|
-
method: "avg" | "max" | "min" | "sum" | "median";
|
|
2625
|
-
} | undefined;
|
|
2626
|
-
} | undefined;
|
|
2627
|
-
boundary?: [number, number][] | {
|
|
2628
|
-
type: "Polygon";
|
|
2629
|
-
coordinates: [number, number][][];
|
|
2630
|
-
} | [number, number, number, number] | undefined;
|
|
2631
|
-
filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
|
|
2632
|
-
}, {
|
|
2633
|
-
attribute: string;
|
|
2634
|
-
layerId: string;
|
|
2635
|
-
steps: number[] | {
|
|
2636
|
-
type: "equal-intervals";
|
|
2637
|
-
count: number;
|
|
2638
|
-
} | {
|
|
2639
|
-
type: "time-interval";
|
|
2640
|
-
interval: "hour" | "day" | "week" | "month" | "year";
|
|
2641
|
-
};
|
|
2642
|
-
values?: {
|
|
2643
|
-
boundary?: [number, number][] | {
|
|
2644
|
-
type: "Polygon";
|
|
2645
|
-
coordinates: [number, number][][];
|
|
2646
|
-
} | [number, number, number, number] | undefined;
|
|
2647
|
-
filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
|
|
2648
|
-
aggregation?: {
|
|
2649
|
-
attribute: string;
|
|
2650
|
-
method: "avg" | "max" | "min" | "sum" | "median";
|
|
2651
|
-
} | undefined;
|
|
2652
|
-
} | undefined;
|
|
2653
|
-
boundary?: [number, number][] | {
|
|
2654
|
-
type: "Polygon";
|
|
2655
|
-
coordinates: [number, number][][];
|
|
2656
|
-
} | [number, number, number, number] | undefined;
|
|
2657
|
-
filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
|
|
2658
|
-
}>;
|
|
2659
|
-
/**
|
|
2660
|
-
* The params used to request a histogram of values from a layer, passed to
|
|
2661
|
-
* the {@link LayersController.getHistogramData} method.
|
|
2662
|
-
*/
|
|
2663
|
-
interface GetLayerHistogramParams extends zInfer<typeof GetLayerHistogramParamsSchema> {
|
|
2664
|
-
/**
|
|
2665
|
-
* Attribute filters to determine what gets counted or aggregated.
|
|
2666
|
-
*/
|
|
2667
|
-
filters?: Filters;
|
|
2668
|
-
/**
|
|
2669
|
-
* A spatial boundary to filter what gets counted or aggregated. This can be either
|
|
2670
|
-
* a [w, s, e, n] bounding box, a GeoJSON Polygon geometry, or a list of coordinates
|
|
2671
|
-
* that form a polyline.
|
|
2672
|
-
*/
|
|
2673
|
-
boundary?: PolygonGeometry | LngLatTuple[] | FeltBoundary;
|
|
2674
|
-
}
|
|
2675
|
-
declare const GetLayerHistogramBinSchema: z.ZodObject<{
|
|
2676
|
-
/**
|
|
2677
|
-
* The left edge of the bin.
|
|
2678
|
-
*/
|
|
2679
|
-
min: z.ZodNumber;
|
|
2680
|
-
/**
|
|
2681
|
-
* The right edge of the bin.
|
|
2682
|
-
*/
|
|
2683
|
-
max: z.ZodNumber;
|
|
2684
|
-
/**
|
|
2685
|
-
* The number of features in the bin.
|
|
2686
|
-
*/
|
|
2687
|
-
value: z.ZodNumber;
|
|
2688
|
-
}, "strip", z.ZodTypeAny, {
|
|
2689
|
-
value: number;
|
|
2690
|
-
max: number;
|
|
2691
|
-
min: number;
|
|
2692
|
-
}, {
|
|
2693
|
-
value: number;
|
|
2694
|
-
max: number;
|
|
2695
|
-
min: number;
|
|
2696
|
-
}>;
|
|
2697
|
-
/**
|
|
2698
|
-
* One bin from the response from the {@link LayersController.getHistogramData} method.
|
|
2699
|
-
*/
|
|
2700
|
-
interface GetLayerHistogramBin extends zInfer<typeof GetLayerHistogramBinSchema> {
|
|
2701
|
-
}
|
|
2702
|
-
declare const GetLayerCalculationParamsSchema: z.ZodObject<{
|
|
2703
|
-
/**
|
|
2704
|
-
* The ID of the layer to calculate an aggregate value for.
|
|
2705
|
-
*/
|
|
2706
|
-
layerId: z.ZodString;
|
|
2707
|
-
boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
|
|
2708
|
-
type: z.ZodLiteral<"Polygon">;
|
|
2709
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
2710
|
-
}, "strip", z.ZodTypeAny, {
|
|
2711
|
-
type: "Polygon";
|
|
2712
|
-
coordinates: [number, number][][];
|
|
2713
|
-
}, {
|
|
2714
|
-
type: "Polygon";
|
|
2715
|
-
coordinates: [number, number][][];
|
|
2716
|
-
}>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]>>;
|
|
2717
|
-
filters: z.ZodOptional<z.ZodUnion<[z.ZodType<FilterTernary, z.ZodTypeDef, FilterTernary>, z.ZodUnion<[z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["in", "ni"]>, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>, "many">, z.ZodNull]>], null>, z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["lt", "gt", "le", "ge", "eq", "ne", "cn", "nc", "is", "isnt"]>, z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>], null>]>, z.ZodNull, z.ZodBoolean]>>;
|
|
2718
|
-
aggregation: z.ZodObject<{
|
|
2719
|
-
/**
|
|
2720
|
-
* The operations to use on the values from the features in the layer
|
|
2721
|
-
*/
|
|
2722
|
-
methods: z.ZodArray<z.ZodUnion<[z.ZodEnum<["avg", "max", "min", "sum", "median"]>, z.ZodLiteral<"count">]>, "many">;
|
|
2723
|
-
/**
|
|
2724
|
-
* The attribute to use for the aggregation. This must be a numeric attribute.
|
|
2725
|
-
*/
|
|
2726
|
-
attribute: z.ZodOptional<z.ZodString>;
|
|
2727
|
-
}, "strip", z.ZodTypeAny, {
|
|
2728
|
-
methods: ("avg" | "max" | "min" | "sum" | "median" | "count")[];
|
|
2729
|
-
attribute?: string | undefined;
|
|
2730
|
-
}, {
|
|
2731
|
-
methods: ("avg" | "max" | "min" | "sum" | "median" | "count")[];
|
|
2732
|
-
attribute?: string | undefined;
|
|
2733
|
-
}>;
|
|
2734
|
-
}, "strip", z.ZodTypeAny, {
|
|
2735
|
-
layerId: string;
|
|
2736
|
-
aggregation: {
|
|
2737
|
-
methods: ("avg" | "max" | "min" | "sum" | "median" | "count")[];
|
|
2738
|
-
attribute?: string | undefined;
|
|
2739
|
-
};
|
|
2740
|
-
boundary?: [number, number][] | {
|
|
2741
|
-
type: "Polygon";
|
|
2742
|
-
coordinates: [number, number][][];
|
|
2743
|
-
} | [number, number, number, number] | undefined;
|
|
2744
|
-
filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
|
|
2745
|
-
}, {
|
|
2746
|
-
layerId: string;
|
|
2747
|
-
aggregation: {
|
|
2748
|
-
methods: ("avg" | "max" | "min" | "sum" | "median" | "count")[];
|
|
2749
|
-
attribute?: string | undefined;
|
|
2750
|
-
};
|
|
2751
|
-
boundary?: [number, number][] | {
|
|
2752
|
-
type: "Polygon";
|
|
2753
|
-
coordinates: [number, number][][];
|
|
2754
|
-
} | [number, number, number, number] | undefined;
|
|
2755
|
-
filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
|
|
2756
|
-
}>;
|
|
2757
|
-
/**
|
|
2758
|
-
* The parameters for calculating a single aggregate value for a layer, passed to
|
|
2759
|
-
* the {@link LayersController.getAggregates} method.
|
|
2760
|
-
*/
|
|
2761
|
-
interface GetLayerCalculationParams<T extends AggregationMethod | "count"> extends z.infer<typeof GetLayerCalculationParamsSchema> {
|
|
2762
|
-
/**
|
|
2763
|
-
* Attribute filters to determine what gets counted or aggregated.
|
|
2764
|
-
*/
|
|
2765
|
-
filters?: Filters;
|
|
2766
|
-
/**
|
|
2767
|
-
* A spatial boundary to filter what gets counted or aggregated. This can be either
|
|
2768
|
-
* a [w, s, e, n] bounding box, a GeoJSON Polygon geometry, or a list of coordinates
|
|
2769
|
-
* that form a polyline.
|
|
2770
|
-
*/
|
|
2771
|
-
boundary?: PolygonGeometry | LngLatTuple[] | FeltBoundary;
|
|
2772
|
-
/**
|
|
2773
|
-
* Specifies how to aggregate values within each category or bin. When omitted,
|
|
2774
|
-
* features are counted. When specified, the chosen calculation (avg, sum, etc.)
|
|
2775
|
-
* is performed on the specified attribute.
|
|
2776
|
-
*/
|
|
2777
|
-
aggregation: MultiAggregationConfig<T>;
|
|
2778
|
-
}
|
|
2779
|
-
|
|
2780
|
-
/**
|
|
2781
|
-
* The event object passed to the interaction listeners.
|
|
2782
|
-
*/
|
|
2783
|
-
interface MapInteractionEvent {
|
|
2784
|
-
/**
|
|
2785
|
-
* The cursor position in world coordinates.
|
|
2786
|
-
*/
|
|
2787
|
-
coordinate: LatLng;
|
|
2788
|
-
/**
|
|
2789
|
-
* The vector features that are under the cursor.
|
|
2790
|
-
*/
|
|
2791
|
-
features: Array<Feature>;
|
|
2792
|
-
/**
|
|
2793
|
-
* The raster pixel values that are under the cursor.
|
|
2794
|
-
*/
|
|
2795
|
-
rasterValues: Array<RasterValue>;
|
|
2796
|
-
}
|
|
2797
|
-
|
|
2798
|
-
/**
|
|
2799
|
-
* The details of a map.
|
|
2800
|
-
*
|
|
2801
|
-
* @group Types
|
|
2802
|
-
*/
|
|
2803
|
-
type MapDetails = {
|
|
2804
|
-
/**
|
|
2805
|
-
* The id of the map.
|
|
2806
|
-
*/
|
|
2807
|
-
id: string;
|
|
2808
|
-
/**
|
|
2809
|
-
* The title of the map.
|
|
2810
|
-
*/
|
|
2811
|
-
title: string;
|
|
2812
|
-
/**
|
|
2813
|
-
* The description of the map.
|
|
2814
|
-
*/
|
|
2815
|
-
description: string | null;
|
|
2816
|
-
};
|
|
2817
|
-
|
|
2818
|
-
/**
|
|
2819
|
-
* A reference to any kind of entity in the map.
|
|
2820
|
-
*
|
|
2821
|
-
* @remarks
|
|
2822
|
-
* EntityNodes are used when you have some collection of entities and you need to
|
|
2823
|
-
*
|
|
2824
|
-
* @group Entity Node
|
|
2825
|
-
*/
|
|
2826
|
-
type EntityNode = ElementNode | ElementGroupNode | LayerNode | LayerGroupNode | FeatureNode;
|
|
2827
|
-
/**
|
|
2828
|
-
* References an element on the map.
|
|
2829
|
-
*
|
|
2830
|
-
* @interface
|
|
2831
|
-
* @group Entity Nodes
|
|
2832
|
-
*/
|
|
2833
|
-
type ElementNode = {
|
|
2834
|
-
type: "element";
|
|
2835
|
-
entity: Element;
|
|
2836
|
-
};
|
|
2837
|
-
/**
|
|
2838
|
-
* References an element group.
|
|
2839
|
-
*
|
|
2840
|
-
* @interface
|
|
2841
|
-
* @group Entity Nodes
|
|
2842
|
-
*/
|
|
2843
|
-
type ElementGroupNode = {
|
|
2844
|
-
type: "elementGroup";
|
|
2845
|
-
entity: ElementGroup;
|
|
2846
|
-
};
|
|
2847
|
-
/**
|
|
2848
|
-
* References a layer on the map.
|
|
2849
|
-
*
|
|
2850
|
-
* @interface
|
|
2851
|
-
* @group Entity Nodes
|
|
2852
|
-
*/
|
|
2853
|
-
type LayerNode = {
|
|
2854
|
-
type: "layer";
|
|
2855
|
-
entity: Layer;
|
|
2856
|
-
};
|
|
2857
|
-
/**
|
|
2858
|
-
* References a layer group on the map.
|
|
2859
|
-
*
|
|
2860
|
-
* @interface
|
|
2861
|
-
* @group Entity Nodes
|
|
2862
|
-
*/
|
|
2863
|
-
type LayerGroupNode = {
|
|
2864
|
-
type: "layerGroup";
|
|
2865
|
-
entity: LayerGroup;
|
|
2866
|
-
};
|
|
2867
|
-
/**
|
|
2868
|
-
* References a feature on the map.
|
|
2869
|
-
*
|
|
2870
|
-
* @interface
|
|
2871
|
-
* @group Entity Nodes
|
|
2872
|
-
*/
|
|
2873
|
-
type FeatureNode = {
|
|
2874
|
-
type: "feature";
|
|
2875
|
-
entity: Feature;
|
|
2876
|
-
};
|
|
2877
|
-
/**
|
|
2878
|
-
* The options for selecting a feature in a layer.
|
|
2879
|
-
*/
|
|
2880
|
-
interface FeatureSelection extends zInfer<typeof FeatureSelectionSchema> {
|
|
2881
|
-
}
|
|
2882
|
-
/**
|
|
2883
|
-
* @ignore
|
|
2884
|
-
*/
|
|
2885
|
-
declare const FeatureSelectionSchema: z.ZodObject<{
|
|
2886
|
-
/**
|
|
2887
|
-
* The id of the feature to select.
|
|
2888
|
-
*/
|
|
2889
|
-
id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
2890
|
-
/**
|
|
2891
|
-
* The id of the layer that the feature belongs to.
|
|
2892
|
-
*/
|
|
2893
|
-
layerId: z.ZodString;
|
|
2894
|
-
/**
|
|
2895
|
-
* Whether to show the feature's popup, if it is configured in the layer's style.
|
|
2896
|
-
*
|
|
2897
|
-
* @default true
|
|
2898
|
-
*/
|
|
2899
|
-
showPopup: z.ZodOptional<z.ZodBoolean>;
|
|
2900
|
-
/**
|
|
2901
|
-
* Whether to center the view on the feature after selecting it.
|
|
2902
|
-
*
|
|
2903
|
-
* When true, the viewport will be centered on the feature and zoomed to fit the feature
|
|
2904
|
-
* in the viewport. If you need to control the zoom level to prevent it zooming in too
|
|
2905
|
-
* far, you can pass an object with a `maxZoom` property.
|
|
2906
|
-
*
|
|
2907
|
-
* This is useful for avoiding zooming in too far on point features, or if you want
|
|
2908
|
-
* to maintain the current zoom level.
|
|
2909
|
-
*
|
|
2910
|
-
* @default true
|
|
2911
|
-
*/
|
|
2912
|
-
fitViewport: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
2913
|
-
maxZoom: z.ZodNumber;
|
|
2914
|
-
}, "strip", z.ZodTypeAny, {
|
|
2915
|
-
maxZoom: number;
|
|
2916
|
-
}, {
|
|
2917
|
-
maxZoom: number;
|
|
2918
|
-
}>]>>;
|
|
2919
|
-
}, "strip", z.ZodTypeAny, {
|
|
2920
|
-
id: string | number;
|
|
2921
|
-
layerId: string;
|
|
2922
|
-
showPopup?: boolean | undefined;
|
|
2923
|
-
fitViewport?: boolean | {
|
|
2924
|
-
maxZoom: number;
|
|
2925
|
-
} | undefined;
|
|
2926
|
-
}, {
|
|
2927
|
-
id: string | number;
|
|
2928
|
-
layerId: string;
|
|
2929
|
-
showPopup?: boolean | undefined;
|
|
2930
|
-
fitViewport?: boolean | {
|
|
2931
|
-
maxZoom: number;
|
|
2932
|
-
} | undefined;
|
|
2933
|
-
}>;
|
|
2934
|
-
|
|
2935
|
-
declare const ToolSchema: z.ZodEnum<["pin", "line", "route", "polygon", "circle", "marker", "highlighter", "text", "note", "link"]>;
|
|
2936
|
-
type ToolType = z.infer<typeof ToolSchema>;
|
|
2937
|
-
type ConfigurableToolType = keyof ToolSettingsMap;
|
|
2938
|
-
declare const PinToolSettingsSchema: z.ZodObject<{
|
|
2939
|
-
symbol: z.ZodString;
|
|
2940
|
-
color: z.ZodString;
|
|
2941
|
-
frame: z.ZodNullable<z.ZodEnum<["frame-circle", "frame-square"]>>;
|
|
2942
|
-
afterCreation: z.ZodEnum<["enter name", "add another", "select"]>;
|
|
2943
|
-
}, "strip", z.ZodTypeAny, {
|
|
2944
|
-
symbol: string;
|
|
2945
|
-
color: string;
|
|
2946
|
-
frame: "frame-circle" | "frame-square" | null;
|
|
2947
|
-
afterCreation: "enter name" | "add another" | "select";
|
|
2948
|
-
}, {
|
|
2949
|
-
symbol: string;
|
|
2950
|
-
color: string;
|
|
2951
|
-
frame: "frame-circle" | "frame-square" | null;
|
|
2952
|
-
afterCreation: "enter name" | "add another" | "select";
|
|
2953
|
-
}>;
|
|
2954
|
-
interface PinToolSettings extends zInfer<typeof PinToolSettingsSchema> {
|
|
2955
|
-
symbol: PlaceSymbol;
|
|
2956
|
-
/**
|
|
2957
|
-
* What to do after creating the Place element.
|
|
2958
|
-
*
|
|
2959
|
-
* - `"enter name"`: Enter a name for the Place, focusing the name input.
|
|
2960
|
-
* - `"add another"`: Add another Place, leaving the tool still selected.
|
|
2961
|
-
* - `"none"`: Puts the tool down and selects the new Place element.
|
|
2962
|
-
*
|
|
2963
|
-
* @defaultValue `"enter name"`
|
|
2964
|
-
*/
|
|
2965
|
-
afterCreation: "enter name" | "add another" | "select";
|
|
2966
|
-
}
|
|
2967
|
-
declare const LineToolSettingsSchema: z.ZodObject<{
|
|
2968
|
-
color: z.ZodString;
|
|
2969
|
-
strokeOpacity: z.ZodNumber;
|
|
2970
|
-
strokeWidth: z.ZodNumber;
|
|
2971
|
-
strokeStyle: z.ZodEnum<["solid", "dashed", "dotted"]>;
|
|
2972
|
-
distanceMarker: z.ZodBoolean;
|
|
2973
|
-
}, "strip", z.ZodTypeAny, {
|
|
2974
|
-
color: string;
|
|
2975
|
-
strokeOpacity: number;
|
|
2976
|
-
strokeWidth: number;
|
|
2977
|
-
strokeStyle: "solid" | "dashed" | "dotted";
|
|
2978
|
-
distanceMarker: boolean;
|
|
2979
|
-
}, {
|
|
2980
|
-
color: string;
|
|
2981
|
-
strokeOpacity: number;
|
|
2982
|
-
strokeWidth: number;
|
|
2983
|
-
strokeStyle: "solid" | "dashed" | "dotted";
|
|
2984
|
-
distanceMarker: boolean;
|
|
2985
|
-
}>;
|
|
2986
|
-
interface LineToolSettings extends zInfer<typeof LineToolSettingsSchema> {
|
|
2987
|
-
}
|
|
2988
|
-
declare const RouteToolSettingsSchema: z.ZodObject<{
|
|
2989
|
-
color: z.ZodString;
|
|
2990
|
-
strokeOpacity: z.ZodNumber;
|
|
2991
|
-
strokeWidth: z.ZodNumber;
|
|
2992
|
-
strokeStyle: z.ZodEnum<["solid", "dashed", "dotted"]>;
|
|
2993
|
-
distanceMarker: z.ZodBoolean;
|
|
2994
|
-
endCaps: z.ZodBoolean;
|
|
2995
|
-
routingMode: z.ZodNullable<z.ZodEnum<["driving", "cycling", "walking", "flying"]>>;
|
|
2996
|
-
}, "strip", z.ZodTypeAny, {
|
|
2997
|
-
color: string;
|
|
2998
|
-
strokeOpacity: number;
|
|
2999
|
-
strokeWidth: number;
|
|
3000
|
-
strokeStyle: "solid" | "dashed" | "dotted";
|
|
3001
|
-
distanceMarker: boolean;
|
|
3002
|
-
endCaps: boolean;
|
|
3003
|
-
routingMode: "driving" | "cycling" | "walking" | "flying" | null;
|
|
3004
|
-
}, {
|
|
3005
|
-
color: string;
|
|
3006
|
-
strokeOpacity: number;
|
|
3007
|
-
strokeWidth: number;
|
|
3008
|
-
strokeStyle: "solid" | "dashed" | "dotted";
|
|
3009
|
-
distanceMarker: boolean;
|
|
3010
|
-
endCaps: boolean;
|
|
3011
|
-
routingMode: "driving" | "cycling" | "walking" | "flying" | null;
|
|
3012
|
-
}>;
|
|
3013
|
-
interface RouteToolSettings extends zInfer<typeof RouteToolSettingsSchema> {
|
|
3014
|
-
}
|
|
3015
|
-
declare const PolygonToolSettingsSchema: z.ZodObject<{
|
|
3016
|
-
color: z.ZodString;
|
|
3017
|
-
strokeOpacity: z.ZodNumber;
|
|
3018
|
-
strokeWidth: z.ZodNumber;
|
|
3019
|
-
strokeStyle: z.ZodEnum<["solid", "dashed", "dotted"]>;
|
|
3020
|
-
fillOpacity: z.ZodNumber;
|
|
3021
|
-
areaMarker: z.ZodBoolean;
|
|
3022
|
-
}, "strip", z.ZodTypeAny, {
|
|
3023
|
-
color: string;
|
|
3024
|
-
strokeOpacity: number;
|
|
3025
|
-
strokeWidth: number;
|
|
3026
|
-
strokeStyle: "solid" | "dashed" | "dotted";
|
|
3027
|
-
fillOpacity: number;
|
|
3028
|
-
areaMarker: boolean;
|
|
3029
|
-
}, {
|
|
3030
|
-
color: string;
|
|
3031
|
-
strokeOpacity: number;
|
|
3032
|
-
strokeWidth: number;
|
|
3033
|
-
strokeStyle: "solid" | "dashed" | "dotted";
|
|
3034
|
-
fillOpacity: number;
|
|
3035
|
-
areaMarker: boolean;
|
|
3036
|
-
}>;
|
|
3037
|
-
interface PolygonToolSettings extends zInfer<typeof PolygonToolSettingsSchema> {
|
|
3038
|
-
}
|
|
3039
|
-
declare const CircleToolSettingsSchema: z.ZodObject<{
|
|
3040
|
-
color: z.ZodString;
|
|
3041
|
-
strokeOpacity: z.ZodNumber;
|
|
3042
|
-
strokeWidth: z.ZodNumber;
|
|
3043
|
-
strokeStyle: z.ZodEnum<["solid", "dashed", "dotted"]>;
|
|
3044
|
-
fillOpacity: z.ZodNumber;
|
|
3045
|
-
radiusMarker: z.ZodBoolean;
|
|
3046
|
-
}, "strip", z.ZodTypeAny, {
|
|
3047
|
-
color: string;
|
|
3048
|
-
strokeOpacity: number;
|
|
3049
|
-
strokeWidth: number;
|
|
3050
|
-
strokeStyle: "solid" | "dashed" | "dotted";
|
|
3051
|
-
fillOpacity: number;
|
|
3052
|
-
radiusMarker: boolean;
|
|
3053
|
-
}, {
|
|
3054
|
-
color: string;
|
|
3055
|
-
strokeOpacity: number;
|
|
3056
|
-
strokeWidth: number;
|
|
3057
|
-
strokeStyle: "solid" | "dashed" | "dotted";
|
|
3058
|
-
fillOpacity: number;
|
|
3059
|
-
radiusMarker: boolean;
|
|
3060
|
-
}>;
|
|
3061
|
-
interface CircleToolSettings extends zInfer<typeof CircleToolSettingsSchema> {
|
|
3062
|
-
}
|
|
3063
|
-
declare const MarkerToolSettingsSchema: z.ZodObject<{
|
|
3064
|
-
color: z.ZodString;
|
|
3065
|
-
opacity: z.ZodNumber;
|
|
3066
|
-
size: z.ZodNumber;
|
|
3067
|
-
}, "strip", z.ZodTypeAny, {
|
|
3068
|
-
color: string;
|
|
3069
|
-
opacity: number;
|
|
3070
|
-
size: number;
|
|
3071
|
-
}, {
|
|
3072
|
-
color: string;
|
|
3073
|
-
opacity: number;
|
|
3074
|
-
size: number;
|
|
3075
|
-
}>;
|
|
3076
|
-
interface MarkerToolSettings extends zInfer<typeof MarkerToolSettingsSchema> {
|
|
3077
|
-
}
|
|
3078
|
-
declare const HighlighterToolSettingsSchema: z.ZodObject<{
|
|
3079
|
-
color: z.ZodString;
|
|
3080
|
-
opacity: z.ZodNumber;
|
|
3081
|
-
size: z.ZodNumber;
|
|
3082
|
-
}, "strip", z.ZodTypeAny, {
|
|
3083
|
-
color: string;
|
|
3084
|
-
opacity: number;
|
|
3085
|
-
size: number;
|
|
3086
|
-
}, {
|
|
3087
|
-
color: string;
|
|
3088
|
-
opacity: number;
|
|
3089
|
-
size: number;
|
|
3090
|
-
}>;
|
|
3091
|
-
interface HighlighterToolSettings extends zInfer<typeof HighlighterToolSettingsSchema> {
|
|
3092
|
-
}
|
|
3093
|
-
declare const TextToolSettingsSchema: z.ZodObject<{
|
|
3094
|
-
color: z.ZodString;
|
|
3095
|
-
align: z.ZodEnum<["left", "center", "right"]>;
|
|
3096
|
-
style: z.ZodEnum<["italic", "light", "regular", "caps"]>;
|
|
3097
|
-
}, "strip", z.ZodTypeAny, {
|
|
3098
|
-
color: string;
|
|
3099
|
-
align: "left" | "center" | "right";
|
|
3100
|
-
style: "italic" | "light" | "regular" | "caps";
|
|
3101
|
-
}, {
|
|
3102
|
-
color: string;
|
|
3103
|
-
align: "left" | "center" | "right";
|
|
3104
|
-
style: "italic" | "light" | "regular" | "caps";
|
|
3105
|
-
}>;
|
|
3106
|
-
interface TextToolSettings extends zInfer<typeof TextToolSettingsSchema> {
|
|
3107
|
-
}
|
|
3108
|
-
declare const NoteToolSettingsSchema: z.ZodObject<{
|
|
3109
|
-
color: z.ZodString;
|
|
3110
|
-
align: z.ZodEnum<["left", "center", "right"]>;
|
|
3111
|
-
style: z.ZodEnum<["italic", "light", "regular", "caps"]>;
|
|
3112
|
-
}, "strip", z.ZodTypeAny, {
|
|
3113
|
-
color: string;
|
|
3114
|
-
align: "left" | "center" | "right";
|
|
3115
|
-
style: "italic" | "light" | "regular" | "caps";
|
|
3116
|
-
}, {
|
|
3117
|
-
color: string;
|
|
3118
|
-
align: "left" | "center" | "right";
|
|
3119
|
-
style: "italic" | "light" | "regular" | "caps";
|
|
3120
|
-
}>;
|
|
3121
|
-
interface NoteToolSettings extends zInfer<typeof NoteToolSettingsSchema> {
|
|
3122
|
-
}
|
|
3123
|
-
type InputToolSettings = {
|
|
3124
|
-
[K in ConfigurableToolType]: Partial<ToolSettingsMap[K]> & {
|
|
3125
|
-
tool: K;
|
|
3126
|
-
};
|
|
3127
|
-
}[ConfigurableToolType];
|
|
3128
|
-
type ToolSettingsChangeEvent = {
|
|
3129
|
-
[K in ConfigurableToolType]: ToolSettingsMap[K] & {
|
|
3130
|
-
tool: K;
|
|
3131
|
-
};
|
|
3132
|
-
}[ConfigurableToolType];
|
|
3133
|
-
type ToolSettingsMap = {
|
|
3134
|
-
pin: PinToolSettings;
|
|
3135
|
-
line: LineToolSettings;
|
|
3136
|
-
route: RouteToolSettings;
|
|
3137
|
-
polygon: PolygonToolSettings;
|
|
3138
|
-
circle: CircleToolSettings;
|
|
3139
|
-
marker: MarkerToolSettings;
|
|
3140
|
-
highlighter: HighlighterToolSettings;
|
|
3141
|
-
text: TextToolSettings;
|
|
3142
|
-
note: NoteToolSettings;
|
|
3143
|
-
};
|
|
3144
|
-
type PlaceFrame = "frame-circle" | "frame-square" | null;
|
|
3145
|
-
type PlaceSymbol = "dot" | "square" | "diamond" | "triangle" | "x" | "plus" | "circle-line" | "circle-slash" | "star" | "heart" | "hexagon" | "octagon" | "pedestrian" | "bicycle" | "wheelchair" | "airport" | "car" | "bus" | "train" | "truck" | "ferry" | "sailboat" | "electric-service" | "gas-service" | "blood-clinic" | "badge" | "traffic-light" | "traffic-cone" | "road-sign-caution" | "person" | "restroom" | "house" | "work" | "letter" | "hotel" | "factory" | "hospital" | "religious-facility" | "school" | "government" | "university" | "bank" | "landmark" | "museum" | "clothing" | "shopping" | "store" | "bar" | "pub" | "cafe" | "food" | "park" | "amusement-park" | "camping-tent" | "cabin" | "picnic" | "water-refill" | "trailhead" | "guidepost" | "viewpoint" | "camera" | "us-football" | "football" | "tennis" | "binoculars" | "swimming" | "zap" | "battery-full" | "battery-half" | "battery-low" | "boom" | "radar" | "wind-turbine" | "solar-panel" | "antenna" | "telephone-pole" | "oil-well" | "oil-barrel" | "railroad-track" | "bridge" | "lighthouse" | "lock-closed" | "lock-open" | "wifi" | "trash" | "recycle" | "tree" | "flower" | "leaf" | "fire" | "mountain" | "snowy-mountain" | "volcano" | "island" | "wave" | "hot-springs" | "water" | "lake" | "ocean" | "animal" | "bird" | "duck" | "dog" | "fish" | "beach" | "wetland" | "sun" | "moon" | "cloud" | "partial-sun" | "rain" | "lightning" | "snowflake" | "wind" | "snow" | "fog" | "sleet" | "hurricane" | "warning" | "parking" | "info" | "circle-exclamation" | "circle-triangle" | "circle-x" | "circle-plus" | (`:${string}:` & {});
|
|
3146
|
-
|
|
3147
|
-
/**
|
|
3148
|
-
* The input type for setting the viewport to a particular center and zoom.
|
|
3149
|
-
*
|
|
3150
|
-
* @group Types
|
|
3151
|
-
*/
|
|
3152
|
-
interface ViewportCenterZoom extends zInfer<typeof ViewportCenterZoomSchema> {
|
|
3153
|
-
/**
|
|
3154
|
-
* The center of the viewport in latitude and longitude.
|
|
3155
|
-
*/
|
|
3156
|
-
center: LatLng;
|
|
3157
|
-
/**
|
|
3158
|
-
* The zoom level of the viewport.
|
|
3159
|
-
*/
|
|
3160
|
-
zoom: FeltZoom;
|
|
3161
|
-
}
|
|
3162
|
-
declare const ViewportCenterZoomSchema: z.ZodObject<{
|
|
3163
|
-
center: z.ZodObject<{
|
|
3164
|
-
latitude: z.ZodNumber;
|
|
3165
|
-
longitude: z.ZodNumber;
|
|
3166
|
-
}, "strip", z.ZodTypeAny, {
|
|
3167
|
-
latitude: number;
|
|
3168
|
-
longitude: number;
|
|
3169
|
-
}, {
|
|
3170
|
-
latitude: number;
|
|
3171
|
-
longitude: number;
|
|
3172
|
-
}>;
|
|
3173
|
-
zoom: z.ZodNumber;
|
|
3174
|
-
}, "strip", z.ZodTypeAny, {
|
|
3175
|
-
zoom: number;
|
|
3176
|
-
center: {
|
|
3177
|
-
latitude: number;
|
|
3178
|
-
longitude: number;
|
|
3179
|
-
};
|
|
3180
|
-
}, {
|
|
3181
|
-
zoom: number;
|
|
3182
|
-
center: {
|
|
3183
|
-
latitude: number;
|
|
3184
|
-
longitude: number;
|
|
3185
|
-
};
|
|
3186
|
-
}>;
|
|
3187
|
-
/**
|
|
3188
|
-
* The current state of the viewport, including the derived bounds.
|
|
3189
|
-
*
|
|
3190
|
-
* @group Types
|
|
3191
|
-
*/
|
|
3192
|
-
interface ViewportState {
|
|
3193
|
-
/**
|
|
3194
|
-
* The center of the viewport in latitude and longitude.
|
|
3195
|
-
*
|
|
3196
|
-
* {@link LatLng}
|
|
3197
|
-
*/
|
|
3198
|
-
center: LatLng;
|
|
3199
|
-
/**
|
|
3200
|
-
* The zoom level of the viewport.
|
|
3201
|
-
*
|
|
3202
|
-
* {@link FeltZoom}
|
|
3203
|
-
*/
|
|
3204
|
-
zoom: FeltZoom;
|
|
3205
|
-
/**
|
|
3206
|
-
* The bounding box of the viewport.
|
|
3207
|
-
*
|
|
3208
|
-
* This is derived, and depends on the center and zoom of the viewport, as
|
|
3209
|
-
* well as its size.
|
|
3210
|
-
*
|
|
3211
|
-
* {@link FeltBoundary}
|
|
3212
|
-
*/
|
|
3213
|
-
bounds: FeltBoundary;
|
|
3214
|
-
}
|
|
3215
|
-
/**
|
|
3216
|
-
* The parameters for the `setViewport` method.
|
|
3217
|
-
*
|
|
3218
|
-
* @group Types
|
|
3219
|
-
*/
|
|
3220
|
-
interface SetViewportCenterZoomParams extends zInfer<typeof SetViewportCenterZoomParamsSchema> {
|
|
3221
|
-
}
|
|
3222
|
-
declare const SetViewportCenterZoomParamsSchema: z.ZodObject<{
|
|
3223
|
-
center: z.ZodOptional<z.ZodObject<{
|
|
3224
|
-
latitude: z.ZodNumber;
|
|
3225
|
-
longitude: z.ZodNumber;
|
|
3226
|
-
}, "strip", z.ZodTypeAny, {
|
|
3227
|
-
latitude: number;
|
|
3228
|
-
longitude: number;
|
|
3229
|
-
}, {
|
|
3230
|
-
latitude: number;
|
|
3231
|
-
longitude: number;
|
|
3232
|
-
}>>;
|
|
3233
|
-
zoom: z.ZodOptional<z.ZodNumber>;
|
|
3234
|
-
}, "strip", z.ZodTypeAny, {
|
|
3235
|
-
zoom?: number | undefined;
|
|
3236
|
-
center?: {
|
|
3237
|
-
latitude: number;
|
|
3238
|
-
longitude: number;
|
|
3239
|
-
} | undefined;
|
|
3240
|
-
}, {
|
|
3241
|
-
zoom?: number | undefined;
|
|
3242
|
-
center?: {
|
|
3243
|
-
latitude: number;
|
|
3244
|
-
longitude: number;
|
|
3245
|
-
} | undefined;
|
|
3246
|
-
}>;
|
|
3247
|
-
/**
|
|
3248
|
-
* The constraints for the viewport. Used to ensure that the viewport stays
|
|
3249
|
-
* within certain bounds and zoom levels.
|
|
3250
|
-
*
|
|
3251
|
-
* @group Types
|
|
3252
|
-
*/
|
|
3253
|
-
interface ViewportConstraints {
|
|
3254
|
-
/**
|
|
3255
|
-
* The minimum zoom level for the viewport.
|
|
3256
|
-
*
|
|
3257
|
-
* {@link FeltZoom}
|
|
3258
|
-
*/
|
|
3259
|
-
minZoom: FeltZoom | null;
|
|
3260
|
-
/**
|
|
3261
|
-
* The maximum zoom level for the viewport.
|
|
3262
|
-
*
|
|
3263
|
-
* {@link FeltZoom}
|
|
3264
|
-
*/
|
|
3265
|
-
maxZoom: FeltZoom | null;
|
|
3266
|
-
/**
|
|
3267
|
-
* The bounds for the viewport.
|
|
3268
|
-
*
|
|
3269
|
-
* {@link FeltBoundary}
|
|
3270
|
-
*/
|
|
3271
|
-
bounds: FeltBoundary | null;
|
|
3272
|
-
}
|
|
3273
|
-
/**
|
|
3274
|
-
* The parameters for the `fitViewportToBounds` method.
|
|
3275
|
-
*
|
|
3276
|
-
* @group Types
|
|
3277
|
-
*/
|
|
3278
|
-
interface ViewportFitBoundsParams extends zInfer<typeof ViewportFitBoundsParamsSchema> {
|
|
3279
|
-
/**
|
|
3280
|
-
* The bounds to fit the viewport to.
|
|
3281
|
-
*
|
|
3282
|
-
* {@link FeltBoundary}
|
|
3283
|
-
*/
|
|
3284
|
-
bounds: FeltBoundary;
|
|
3285
|
-
}
|
|
3286
|
-
declare const ViewportFitBoundsParamsSchema: z.ZodObject<{
|
|
3287
|
-
bounds: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
3288
|
-
}, "strip", z.ZodTypeAny, {
|
|
3289
|
-
bounds: [number, number, number, number];
|
|
3290
|
-
}, {
|
|
3291
|
-
bounds: [number, number, number, number];
|
|
3292
|
-
}>;
|
|
3293
|
-
|
|
3294
|
-
export type { ImageElementRead as $, AggregationMethod as A, FeatureSelection as B, ConfigurableToolType as C, ToolSettingsMap as D, Element as E, Filters as F, Geometry as G, ToolSettingsChangeEvent as H, InputToolSettings as I, zInfer as J, SortConfig as K, Layer as L, MapInteractionEvent as M, SetViewportCenterZoomParams as N, ViewportConstraints as O, ViewportFitBoundsParams as P, ViewportCenterZoom as Q, CircleElementCreate as R, SetVisibilityRequest as S, ToolType as T, CircleElementRead as U, ViewportState as V, CircleElementUpdate as W, HighlighterElementCreate as X, HighlighterElementRead as Y, HighlighterElementUpdate as Z, ImageElementCreate as _, GetElementsConstraint as a, ImageElementUpdate as a0, LinkElementRead as a1, MarkerElementCreate as a2, MarkerElementRead as a3, MarkerElementUpdate as a4, NoteElementCreate as a5, NoteElementRead as a6, NoteElementUpdate as a7, PathElementCreate as a8, PathElementRead as a9, LineStringGeometry as aA, LngLatTuple as aB, MultiLineStringGeometry as aC, MultiPolygonGeometry as aD, PointGeometry as aE, PolygonGeometry as aF, SortDirection as aG, CircleToolSettings as aH, HighlighterToolSettings as aI, LineToolSettings as aJ, MarkerToolSettings as aK, NoteToolSettings as aL, PinToolSettings as aM, PlaceFrame as aN, PlaceSymbol as aO, PolygonToolSettings as aP, RouteToolSettings as aQ, TextToolSettings as aR, UnionToIntersection as aS, PromiseOrNot as aT, PathElementUpdate as aa, PlaceElementCreate as ab, PlaceElementRead as ac, PlaceElementUpdate as ad, PolygonElementCreate as ae, PolygonElementRead as af, PolygonElementUpdate as ag, TextElementCreate as ah, TextElementRead as ai, TextElementUpdate as aj, LayerProcessingStatus as ak, RasterValue as al, FilterExpression as am, FilterLogicGate as an, FilterTernary as ao, AggregationConfig as ap, MultiAggregationConfig as aq, ValueConfiguration as ar, ElementGroupNode as as, ElementNode as at, FeatureNode as au, LayerGroupNode as av, LayerNode as aw, FeltBoundary as ax, FeltZoom as ay, LatLng as az, ElementGroup as b, GetElementGroupsConstraint as c, ElementChangeCallbackParams as d, ElementGroupChangeCallbackParams as e, ElementCreate as f, ElementUpdate as g, GetLayersConstraint as h, LayerChangeCallbackParams as i, LayerGroup as j, GetLayerGroupsConstraint as k, LayerGroupChangeCallbackParams as l, LegendItemIdentifier as m, LegendItem as n, LegendItemsConstraint as o, LegendItemChangeCallbackParams as p, LayerFilters as q, GetRenderedFeaturesConstraint as r, Feature as s, GetLayerCategoriesParams as t, GetLayerCategoriesGroup as u, GetLayerHistogramParams as v, GetLayerHistogramBin as w, GetLayerCalculationParams as x, MapDetails as y, EntityNode as z };
|