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