@feltmaps/js-sdk 1.5.0-next.1 → 1.5.0-next.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.cjs +1 -1
- package/dist/client.d.cts +576 -24
- package/dist/client.d.ts +576 -24
- package/dist/client.js +1 -1
- package/dist/handler.cjs +1 -1
- package/dist/handler.d.cts +2119 -127
- package/dist/handler.d.ts +2119 -127
- package/dist/handler.js +1 -1
- package/dist/types-CI-GVo6N.d.cts +3555 -0
- package/dist/types-CI-GVo6N.d.ts +3555 -0
- package/handler.d.ts +2119 -127
- package/handler.js +1 -1
- package/package.json +9 -7
- package/types-CI-GVo6N.d.ts +3555 -0
- package/dist/types-CVxZMwC_.d.cts +0 -1203
- package/dist/types-CVxZMwC_.d.ts +0 -1203
- package/types-CVxZMwC_.d.ts +0 -1203
package/dist/handler.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as zod from 'zod';
|
|
2
1
|
import { z } from 'zod';
|
|
3
|
-
import {
|
|
2
|
+
import { N as zInfer, E as Element, G as GeoJsonGeometry, b as ElementGroup, d as ElementChangeCallbackParams, e as ElementGroupChangeCallbackParams, M as MapInteractionEvent, L as Layer, j as LayerGroup, n as LegendItem, q as LayerFilters, s as LayerFeature, t as GeoJsonFeature, v as GetLayerCategoriesGroup, x as GetLayerHistogramBin, A as AggregationMethod, z as LayerSchema, i as LayerChangeCallbackParams, l as LayerGroupChangeCallbackParams, p as LegendItemChangeCallbackParams, ax as FilterTernary, B as MapDetails, C as EntityNode, T as ToolType, J as ToolSettingsMap, K as ToolSettingsChangeEvent, V as ViewportState, Q as ViewportConstraints, b1 as UnionToIntersection, b2 as PromiseOrNot } from './types-CI-GVo6N.js';
|
|
4
3
|
|
|
5
4
|
type Method<TRequest extends {
|
|
6
5
|
type: string;
|
|
@@ -13,6 +12,9 @@ type Listener<TOptions, TParams> = {
|
|
|
13
12
|
options: TOptions;
|
|
14
13
|
eventParams: TParams;
|
|
15
14
|
};
|
|
15
|
+
type ListenerNoOptions<TParams> = {
|
|
16
|
+
eventParams: TParams;
|
|
17
|
+
};
|
|
16
18
|
|
|
17
19
|
declare const GetElementMessage: z.ZodObject<{
|
|
18
20
|
type: z.ZodLiteral<"getElement">;
|
|
@@ -90,91 +92,1444 @@ declare const SetElementGroupVisibilityMessage: z.ZodObject<{
|
|
|
90
92
|
show: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
91
93
|
hide: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
92
94
|
}, "strip", z.ZodTypeAny, {
|
|
93
|
-
show?: string[] | undefined;
|
|
94
|
-
hide?: string[] | undefined;
|
|
95
|
+
show?: string[] | undefined;
|
|
96
|
+
hide?: string[] | undefined;
|
|
97
|
+
}, {
|
|
98
|
+
show?: string[] | undefined;
|
|
99
|
+
hide?: string[] | undefined;
|
|
100
|
+
}>;
|
|
101
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
102
|
+
params: {
|
|
103
|
+
show?: string[] | undefined;
|
|
104
|
+
hide?: string[] | undefined;
|
|
105
|
+
};
|
|
106
|
+
type: "setElementGroupVisibility";
|
|
107
|
+
}, {
|
|
108
|
+
params: {
|
|
109
|
+
show?: string[] | undefined;
|
|
110
|
+
hide?: string[] | undefined;
|
|
111
|
+
};
|
|
112
|
+
type: "setElementGroupVisibility";
|
|
113
|
+
}>;
|
|
114
|
+
declare const OnElementChangeMessage: z.ZodObject<{
|
|
115
|
+
eventName: z.ZodLiteral<"onElementChange">;
|
|
116
|
+
id: z.ZodString;
|
|
117
|
+
options: z.ZodObject<{
|
|
118
|
+
id: z.ZodString;
|
|
119
|
+
}, "strip", z.ZodTypeAny, {
|
|
120
|
+
id: string;
|
|
121
|
+
}, {
|
|
122
|
+
id: string;
|
|
123
|
+
}>;
|
|
124
|
+
}, "strict", z.ZodTypeAny, {
|
|
125
|
+
options: {
|
|
126
|
+
id: string;
|
|
127
|
+
};
|
|
128
|
+
id: string;
|
|
129
|
+
eventName: "onElementChange";
|
|
130
|
+
}, {
|
|
131
|
+
options: {
|
|
132
|
+
id: string;
|
|
133
|
+
};
|
|
134
|
+
id: string;
|
|
135
|
+
eventName: "onElementChange";
|
|
136
|
+
}>;
|
|
137
|
+
declare const OnElementDeleteMessage: z.ZodObject<{
|
|
138
|
+
eventName: z.ZodLiteral<"onElementDelete">;
|
|
139
|
+
id: z.ZodString;
|
|
140
|
+
options: z.ZodObject<{
|
|
141
|
+
id: z.ZodString;
|
|
142
|
+
}, "strip", z.ZodTypeAny, {
|
|
143
|
+
id: string;
|
|
144
|
+
}, {
|
|
145
|
+
id: string;
|
|
146
|
+
}>;
|
|
147
|
+
}, "strict", z.ZodTypeAny, {
|
|
148
|
+
options: {
|
|
149
|
+
id: string;
|
|
150
|
+
};
|
|
151
|
+
id: string;
|
|
152
|
+
eventName: "onElementDelete";
|
|
153
|
+
}, {
|
|
154
|
+
options: {
|
|
155
|
+
id: string;
|
|
156
|
+
};
|
|
157
|
+
id: string;
|
|
158
|
+
eventName: "onElementDelete";
|
|
159
|
+
}>;
|
|
160
|
+
declare const OnElementGroupChangeMessage: z.ZodObject<{
|
|
161
|
+
eventName: z.ZodLiteral<"onElementGroupChange">;
|
|
162
|
+
id: z.ZodString;
|
|
163
|
+
options: z.ZodObject<{
|
|
164
|
+
id: z.ZodString;
|
|
165
|
+
}, "strip", z.ZodTypeAny, {
|
|
166
|
+
id: string;
|
|
167
|
+
}, {
|
|
168
|
+
id: string;
|
|
169
|
+
}>;
|
|
170
|
+
}, "strict", z.ZodTypeAny, {
|
|
171
|
+
options: {
|
|
172
|
+
id: string;
|
|
173
|
+
};
|
|
174
|
+
id: string;
|
|
175
|
+
eventName: "onElementGroupChange";
|
|
176
|
+
}, {
|
|
177
|
+
options: {
|
|
178
|
+
id: string;
|
|
179
|
+
};
|
|
180
|
+
id: string;
|
|
181
|
+
eventName: "onElementGroupChange";
|
|
182
|
+
}>;
|
|
183
|
+
declare const CreateElementMessage: z.ZodObject<{
|
|
184
|
+
type: z.ZodLiteral<"createElement">;
|
|
185
|
+
params: z.ZodDiscriminatedUnion<"type", [z.ZodObject<Omit<{
|
|
186
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
187
|
+
type: z.ZodLiteral<"Place">;
|
|
188
|
+
coordinates: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
189
|
+
id: z.ZodOptional<z.ZodString>;
|
|
190
|
+
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
191
|
+
color: z.ZodOptional<z.ZodString>;
|
|
192
|
+
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
193
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
194
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
195
|
+
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
196
|
+
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
197
|
+
frame: z.ZodOptional<z.ZodNullable<z.ZodEnum<["frame-circle", "frame-square"]>>>;
|
|
198
|
+
hideLabel: z.ZodOptional<z.ZodBoolean>;
|
|
199
|
+
}, "id">, "strip", z.ZodTypeAny, {
|
|
200
|
+
type: "Place";
|
|
201
|
+
coordinates: [number, number];
|
|
202
|
+
symbol?: string | undefined;
|
|
203
|
+
groupId?: string | null | undefined;
|
|
204
|
+
color?: string | undefined;
|
|
205
|
+
name?: string | null | undefined;
|
|
206
|
+
description?: string | null | undefined;
|
|
207
|
+
attributes?: Record<string, unknown> | undefined;
|
|
208
|
+
interaction?: "default" | "locked" | undefined;
|
|
209
|
+
imageUrl?: string | null | undefined;
|
|
210
|
+
frame?: "frame-circle" | "frame-square" | null | undefined;
|
|
211
|
+
hideLabel?: boolean | undefined;
|
|
212
|
+
}, {
|
|
213
|
+
type: "Place";
|
|
214
|
+
coordinates: [number, number];
|
|
215
|
+
symbol?: string | undefined;
|
|
216
|
+
groupId?: string | null | undefined;
|
|
217
|
+
color?: string | undefined;
|
|
218
|
+
name?: string | null | undefined;
|
|
219
|
+
description?: string | null | undefined;
|
|
220
|
+
attributes?: Record<string, unknown> | undefined;
|
|
221
|
+
interaction?: "default" | "locked" | undefined;
|
|
222
|
+
imageUrl?: string | null | undefined;
|
|
223
|
+
frame?: "frame-circle" | "frame-square" | null | undefined;
|
|
224
|
+
hideLabel?: boolean | undefined;
|
|
225
|
+
}>, z.ZodObject<Omit<{
|
|
226
|
+
type: z.ZodLiteral<"Path">;
|
|
227
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
228
|
+
id: z.ZodOptional<z.ZodString>;
|
|
229
|
+
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
230
|
+
color: z.ZodOptional<z.ZodString>;
|
|
231
|
+
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
232
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
233
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
234
|
+
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
235
|
+
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
236
|
+
strokeOpacity: z.ZodOptional<z.ZodNumber>;
|
|
237
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
238
|
+
strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
239
|
+
distanceMarker: z.ZodOptional<z.ZodBoolean>;
|
|
240
|
+
endCaps: z.ZodOptional<z.ZodBoolean>;
|
|
241
|
+
routingMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["driving", "cycling", "walking", "flying"]>>>;
|
|
242
|
+
}, "id">, "strip", z.ZodTypeAny, {
|
|
243
|
+
type: "Path";
|
|
244
|
+
coordinates: [number, number][][];
|
|
245
|
+
groupId?: string | null | undefined;
|
|
246
|
+
color?: string | undefined;
|
|
247
|
+
name?: string | null | undefined;
|
|
248
|
+
description?: string | null | undefined;
|
|
249
|
+
attributes?: Record<string, unknown> | undefined;
|
|
250
|
+
interaction?: "default" | "locked" | undefined;
|
|
251
|
+
imageUrl?: string | null | undefined;
|
|
252
|
+
strokeOpacity?: number | undefined;
|
|
253
|
+
strokeWidth?: number | undefined;
|
|
254
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
255
|
+
distanceMarker?: boolean | undefined;
|
|
256
|
+
endCaps?: boolean | undefined;
|
|
257
|
+
routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
|
|
258
|
+
}, {
|
|
259
|
+
type: "Path";
|
|
260
|
+
coordinates: [number, number][][];
|
|
261
|
+
groupId?: string | null | undefined;
|
|
262
|
+
color?: string | undefined;
|
|
263
|
+
name?: string | null | undefined;
|
|
264
|
+
description?: string | null | undefined;
|
|
265
|
+
attributes?: Record<string, unknown> | undefined;
|
|
266
|
+
interaction?: "default" | "locked" | undefined;
|
|
267
|
+
imageUrl?: string | null | undefined;
|
|
268
|
+
strokeOpacity?: number | undefined;
|
|
269
|
+
strokeWidth?: number | undefined;
|
|
270
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
271
|
+
distanceMarker?: boolean | undefined;
|
|
272
|
+
endCaps?: boolean | undefined;
|
|
273
|
+
routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
|
|
274
|
+
}>, z.ZodObject<Omit<{
|
|
275
|
+
type: z.ZodLiteral<"Polygon">;
|
|
276
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
277
|
+
id: z.ZodOptional<z.ZodString>;
|
|
278
|
+
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
279
|
+
color: z.ZodOptional<z.ZodString>;
|
|
280
|
+
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
281
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
282
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
283
|
+
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
284
|
+
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
285
|
+
strokeOpacity: z.ZodOptional<z.ZodNumber>;
|
|
286
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
287
|
+
strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
288
|
+
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
289
|
+
areaMarker: z.ZodOptional<z.ZodBoolean>;
|
|
290
|
+
}, "id">, "strip", z.ZodTypeAny, {
|
|
291
|
+
type: "Polygon";
|
|
292
|
+
coordinates: [number, number][][];
|
|
293
|
+
groupId?: string | null | undefined;
|
|
294
|
+
color?: string | undefined;
|
|
295
|
+
name?: string | null | undefined;
|
|
296
|
+
description?: string | null | undefined;
|
|
297
|
+
attributes?: Record<string, unknown> | undefined;
|
|
298
|
+
interaction?: "default" | "locked" | undefined;
|
|
299
|
+
imageUrl?: string | null | undefined;
|
|
300
|
+
strokeOpacity?: number | undefined;
|
|
301
|
+
strokeWidth?: number | undefined;
|
|
302
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
303
|
+
fillOpacity?: number | undefined;
|
|
304
|
+
areaMarker?: boolean | undefined;
|
|
305
|
+
}, {
|
|
306
|
+
type: "Polygon";
|
|
307
|
+
coordinates: [number, number][][];
|
|
308
|
+
groupId?: string | null | undefined;
|
|
309
|
+
color?: string | undefined;
|
|
310
|
+
name?: string | null | undefined;
|
|
311
|
+
description?: string | null | undefined;
|
|
312
|
+
attributes?: Record<string, unknown> | undefined;
|
|
313
|
+
interaction?: "default" | "locked" | undefined;
|
|
314
|
+
imageUrl?: string | null | undefined;
|
|
315
|
+
strokeOpacity?: number | undefined;
|
|
316
|
+
strokeWidth?: number | undefined;
|
|
317
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
318
|
+
fillOpacity?: number | undefined;
|
|
319
|
+
areaMarker?: boolean | undefined;
|
|
320
|
+
}>, z.ZodObject<Omit<{
|
|
321
|
+
type: z.ZodLiteral<"Circle">;
|
|
322
|
+
coordinates: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
323
|
+
id: z.ZodOptional<z.ZodString>;
|
|
324
|
+
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
325
|
+
color: z.ZodOptional<z.ZodString>;
|
|
326
|
+
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
327
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
328
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
329
|
+
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
330
|
+
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
331
|
+
strokeOpacity: z.ZodOptional<z.ZodNumber>;
|
|
332
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
333
|
+
strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
334
|
+
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
335
|
+
radius: z.ZodNumber;
|
|
336
|
+
radiusDisplayAngle: z.ZodOptional<z.ZodNumber>;
|
|
337
|
+
radiusDisplayUnit: z.ZodOptional<z.ZodNullable<z.ZodEnum<["meter", "kilometer", "foot", "mile"]>>>;
|
|
338
|
+
radiusMarker: z.ZodOptional<z.ZodBoolean>;
|
|
339
|
+
}, "id">, "strip", z.ZodTypeAny, {
|
|
340
|
+
type: "Circle";
|
|
341
|
+
coordinates: [number, number];
|
|
342
|
+
radius: number;
|
|
343
|
+
groupId?: string | null | undefined;
|
|
344
|
+
color?: string | undefined;
|
|
345
|
+
name?: string | null | undefined;
|
|
346
|
+
description?: string | null | undefined;
|
|
347
|
+
attributes?: Record<string, unknown> | undefined;
|
|
348
|
+
interaction?: "default" | "locked" | undefined;
|
|
349
|
+
imageUrl?: string | null | undefined;
|
|
350
|
+
strokeOpacity?: number | undefined;
|
|
351
|
+
strokeWidth?: number | undefined;
|
|
352
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
353
|
+
fillOpacity?: number | undefined;
|
|
354
|
+
radiusDisplayAngle?: number | undefined;
|
|
355
|
+
radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
|
|
356
|
+
radiusMarker?: boolean | undefined;
|
|
357
|
+
}, {
|
|
358
|
+
type: "Circle";
|
|
359
|
+
coordinates: [number, number];
|
|
360
|
+
radius: number;
|
|
361
|
+
groupId?: string | null | undefined;
|
|
362
|
+
color?: string | undefined;
|
|
363
|
+
name?: string | null | undefined;
|
|
364
|
+
description?: string | null | undefined;
|
|
365
|
+
attributes?: Record<string, unknown> | undefined;
|
|
366
|
+
interaction?: "default" | "locked" | undefined;
|
|
367
|
+
imageUrl?: string | null | undefined;
|
|
368
|
+
strokeOpacity?: number | undefined;
|
|
369
|
+
strokeWidth?: number | undefined;
|
|
370
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
371
|
+
fillOpacity?: number | undefined;
|
|
372
|
+
radiusDisplayAngle?: number | undefined;
|
|
373
|
+
radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
|
|
374
|
+
radiusMarker?: boolean | undefined;
|
|
375
|
+
}>, z.ZodObject<Omit<{
|
|
376
|
+
type: z.ZodLiteral<"Marker">;
|
|
377
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
378
|
+
id: z.ZodOptional<z.ZodString>;
|
|
379
|
+
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
380
|
+
color: z.ZodOptional<z.ZodString>;
|
|
381
|
+
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
382
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
383
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
384
|
+
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
385
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
386
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
387
|
+
zoom: z.ZodOptional<z.ZodNumber>;
|
|
388
|
+
}, "id">, "strip", z.ZodTypeAny, {
|
|
389
|
+
type: "Marker";
|
|
390
|
+
coordinates: [number, number][][];
|
|
391
|
+
groupId?: string | null | undefined;
|
|
392
|
+
color?: string | undefined;
|
|
393
|
+
name?: string | null | undefined;
|
|
394
|
+
description?: string | null | undefined;
|
|
395
|
+
attributes?: Record<string, unknown> | undefined;
|
|
396
|
+
interaction?: "default" | "locked" | undefined;
|
|
397
|
+
opacity?: number | undefined;
|
|
398
|
+
size?: number | undefined;
|
|
399
|
+
zoom?: number | undefined;
|
|
400
|
+
}, {
|
|
401
|
+
type: "Marker";
|
|
402
|
+
coordinates: [number, number][][];
|
|
403
|
+
groupId?: string | null | undefined;
|
|
404
|
+
color?: string | undefined;
|
|
405
|
+
name?: string | null | undefined;
|
|
406
|
+
description?: string | null | undefined;
|
|
407
|
+
attributes?: Record<string, unknown> | undefined;
|
|
408
|
+
interaction?: "default" | "locked" | undefined;
|
|
409
|
+
opacity?: number | undefined;
|
|
410
|
+
size?: number | undefined;
|
|
411
|
+
zoom?: number | undefined;
|
|
412
|
+
}>, z.ZodObject<Omit<{
|
|
413
|
+
type: z.ZodLiteral<"Highlighter">;
|
|
414
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
415
|
+
id: z.ZodOptional<z.ZodString>;
|
|
416
|
+
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
417
|
+
color: z.ZodOptional<z.ZodString>;
|
|
418
|
+
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
419
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
420
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
421
|
+
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
422
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
423
|
+
}, "id">, "strip", z.ZodTypeAny, {
|
|
424
|
+
type: "Highlighter";
|
|
425
|
+
coordinates: [number, number][][];
|
|
426
|
+
groupId?: string | null | undefined;
|
|
427
|
+
color?: string | undefined;
|
|
428
|
+
name?: string | null | undefined;
|
|
429
|
+
description?: string | null | undefined;
|
|
430
|
+
attributes?: Record<string, unknown> | undefined;
|
|
431
|
+
interaction?: "default" | "locked" | undefined;
|
|
432
|
+
opacity?: number | undefined;
|
|
433
|
+
}, {
|
|
434
|
+
type: "Highlighter";
|
|
435
|
+
coordinates: [number, number][][];
|
|
436
|
+
groupId?: string | null | undefined;
|
|
437
|
+
color?: string | undefined;
|
|
438
|
+
name?: string | null | undefined;
|
|
439
|
+
description?: string | null | undefined;
|
|
440
|
+
attributes?: Record<string, unknown> | undefined;
|
|
441
|
+
interaction?: "default" | "locked" | undefined;
|
|
442
|
+
opacity?: number | undefined;
|
|
443
|
+
}>, z.ZodObject<Omit<{
|
|
444
|
+
type: z.ZodLiteral<"Image">;
|
|
445
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
446
|
+
id: z.ZodOptional<z.ZodString>;
|
|
447
|
+
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
448
|
+
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
449
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
450
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
451
|
+
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
452
|
+
imageUrl: z.ZodString;
|
|
453
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
454
|
+
}, "id">, "strip", z.ZodTypeAny, {
|
|
455
|
+
type: "Image";
|
|
456
|
+
coordinates: [number, number][][];
|
|
457
|
+
imageUrl: string;
|
|
458
|
+
groupId?: string | null | undefined;
|
|
459
|
+
name?: string | null | undefined;
|
|
460
|
+
description?: string | null | undefined;
|
|
461
|
+
attributes?: Record<string, unknown> | undefined;
|
|
462
|
+
interaction?: "default" | "locked" | undefined;
|
|
463
|
+
opacity?: number | undefined;
|
|
464
|
+
}, {
|
|
465
|
+
type: "Image";
|
|
466
|
+
coordinates: [number, number][][];
|
|
467
|
+
imageUrl: string;
|
|
468
|
+
groupId?: string | null | undefined;
|
|
469
|
+
name?: string | null | undefined;
|
|
470
|
+
description?: string | null | undefined;
|
|
471
|
+
attributes?: Record<string, unknown> | undefined;
|
|
472
|
+
interaction?: "default" | "locked" | undefined;
|
|
473
|
+
opacity?: number | undefined;
|
|
474
|
+
}>, z.ZodObject<Omit<Omit<{
|
|
475
|
+
type: z.ZodLiteral<"Text">;
|
|
476
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
477
|
+
id: z.ZodOptional<z.ZodString>;
|
|
478
|
+
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
479
|
+
color: z.ZodOptional<z.ZodString>;
|
|
480
|
+
name: z.ZodOptional<z.ZodString>;
|
|
481
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
482
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
483
|
+
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
484
|
+
zoom: z.ZodOptional<z.ZodNumber>;
|
|
485
|
+
position: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
486
|
+
rotation: z.ZodOptional<z.ZodNumber>;
|
|
487
|
+
scale: z.ZodOptional<z.ZodNumber>;
|
|
488
|
+
text: z.ZodString;
|
|
489
|
+
align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
490
|
+
style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
|
|
491
|
+
}, "id">, "coordinates" | "name">, "strip", z.ZodTypeAny, {
|
|
492
|
+
type: "Text";
|
|
493
|
+
text: string;
|
|
494
|
+
groupId?: string | null | undefined;
|
|
495
|
+
color?: string | undefined;
|
|
496
|
+
description?: string | null | undefined;
|
|
497
|
+
attributes?: Record<string, unknown> | undefined;
|
|
498
|
+
interaction?: "default" | "locked" | undefined;
|
|
499
|
+
zoom?: number | undefined;
|
|
500
|
+
position?: [number, number] | undefined;
|
|
501
|
+
rotation?: number | undefined;
|
|
502
|
+
scale?: number | undefined;
|
|
503
|
+
align?: "left" | "center" | "right" | undefined;
|
|
504
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
505
|
+
}, {
|
|
506
|
+
type: "Text";
|
|
507
|
+
text: string;
|
|
508
|
+
groupId?: string | null | undefined;
|
|
509
|
+
color?: string | undefined;
|
|
510
|
+
description?: string | null | undefined;
|
|
511
|
+
attributes?: Record<string, unknown> | undefined;
|
|
512
|
+
interaction?: "default" | "locked" | undefined;
|
|
513
|
+
zoom?: number | undefined;
|
|
514
|
+
position?: [number, number] | undefined;
|
|
515
|
+
rotation?: number | undefined;
|
|
516
|
+
scale?: number | undefined;
|
|
517
|
+
align?: "left" | "center" | "right" | undefined;
|
|
518
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
519
|
+
}>, z.ZodObject<Omit<Omit<{
|
|
520
|
+
type: z.ZodLiteral<"Note">;
|
|
521
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
522
|
+
id: z.ZodOptional<z.ZodString>;
|
|
523
|
+
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
524
|
+
color: z.ZodOptional<z.ZodString>;
|
|
525
|
+
name: z.ZodOptional<z.ZodString>;
|
|
526
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
527
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
528
|
+
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
529
|
+
zoom: z.ZodOptional<z.ZodNumber>;
|
|
530
|
+
position: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
531
|
+
rotation: z.ZodOptional<z.ZodNumber>;
|
|
532
|
+
scale: z.ZodOptional<z.ZodNumber>;
|
|
533
|
+
text: z.ZodString;
|
|
534
|
+
align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
535
|
+
style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
|
|
536
|
+
widthScale: z.ZodOptional<z.ZodNumber>;
|
|
537
|
+
}, "id">, "coordinates" | "name">, "strip", z.ZodTypeAny, {
|
|
538
|
+
type: "Note";
|
|
539
|
+
text: string;
|
|
540
|
+
groupId?: string | null | undefined;
|
|
541
|
+
color?: string | undefined;
|
|
542
|
+
description?: string | null | undefined;
|
|
543
|
+
attributes?: Record<string, unknown> | undefined;
|
|
544
|
+
interaction?: "default" | "locked" | undefined;
|
|
545
|
+
zoom?: number | undefined;
|
|
546
|
+
position?: [number, number] | undefined;
|
|
547
|
+
rotation?: number | undefined;
|
|
548
|
+
scale?: number | undefined;
|
|
549
|
+
align?: "left" | "center" | "right" | undefined;
|
|
550
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
551
|
+
widthScale?: number | undefined;
|
|
552
|
+
}, {
|
|
553
|
+
type: "Note";
|
|
554
|
+
text: string;
|
|
555
|
+
groupId?: string | null | undefined;
|
|
556
|
+
color?: string | undefined;
|
|
557
|
+
description?: string | null | undefined;
|
|
558
|
+
attributes?: Record<string, unknown> | undefined;
|
|
559
|
+
interaction?: "default" | "locked" | undefined;
|
|
560
|
+
zoom?: number | undefined;
|
|
561
|
+
position?: [number, number] | undefined;
|
|
562
|
+
rotation?: number | undefined;
|
|
563
|
+
scale?: number | undefined;
|
|
564
|
+
align?: "left" | "center" | "right" | undefined;
|
|
565
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
566
|
+
widthScale?: number | undefined;
|
|
567
|
+
}>]>;
|
|
568
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
569
|
+
params: {
|
|
570
|
+
type: "Place";
|
|
571
|
+
coordinates: [number, number];
|
|
572
|
+
symbol?: string | undefined;
|
|
573
|
+
groupId?: string | null | undefined;
|
|
574
|
+
color?: string | undefined;
|
|
575
|
+
name?: string | null | undefined;
|
|
576
|
+
description?: string | null | undefined;
|
|
577
|
+
attributes?: Record<string, unknown> | undefined;
|
|
578
|
+
interaction?: "default" | "locked" | undefined;
|
|
579
|
+
imageUrl?: string | null | undefined;
|
|
580
|
+
frame?: "frame-circle" | "frame-square" | null | undefined;
|
|
581
|
+
hideLabel?: boolean | undefined;
|
|
582
|
+
} | {
|
|
583
|
+
type: "Path";
|
|
584
|
+
coordinates: [number, number][][];
|
|
585
|
+
groupId?: string | null | undefined;
|
|
586
|
+
color?: string | undefined;
|
|
587
|
+
name?: string | null | undefined;
|
|
588
|
+
description?: string | null | undefined;
|
|
589
|
+
attributes?: Record<string, unknown> | undefined;
|
|
590
|
+
interaction?: "default" | "locked" | undefined;
|
|
591
|
+
imageUrl?: string | null | undefined;
|
|
592
|
+
strokeOpacity?: number | undefined;
|
|
593
|
+
strokeWidth?: number | undefined;
|
|
594
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
595
|
+
distanceMarker?: boolean | undefined;
|
|
596
|
+
endCaps?: boolean | undefined;
|
|
597
|
+
routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
|
|
598
|
+
} | {
|
|
599
|
+
type: "Polygon";
|
|
600
|
+
coordinates: [number, number][][];
|
|
601
|
+
groupId?: string | null | undefined;
|
|
602
|
+
color?: string | undefined;
|
|
603
|
+
name?: string | null | undefined;
|
|
604
|
+
description?: string | null | undefined;
|
|
605
|
+
attributes?: Record<string, unknown> | undefined;
|
|
606
|
+
interaction?: "default" | "locked" | undefined;
|
|
607
|
+
imageUrl?: string | null | undefined;
|
|
608
|
+
strokeOpacity?: number | undefined;
|
|
609
|
+
strokeWidth?: number | undefined;
|
|
610
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
611
|
+
fillOpacity?: number | undefined;
|
|
612
|
+
areaMarker?: boolean | undefined;
|
|
613
|
+
} | {
|
|
614
|
+
type: "Circle";
|
|
615
|
+
coordinates: [number, number];
|
|
616
|
+
radius: number;
|
|
617
|
+
groupId?: string | null | undefined;
|
|
618
|
+
color?: string | undefined;
|
|
619
|
+
name?: string | null | undefined;
|
|
620
|
+
description?: string | null | undefined;
|
|
621
|
+
attributes?: Record<string, unknown> | undefined;
|
|
622
|
+
interaction?: "default" | "locked" | undefined;
|
|
623
|
+
imageUrl?: string | null | undefined;
|
|
624
|
+
strokeOpacity?: number | undefined;
|
|
625
|
+
strokeWidth?: number | undefined;
|
|
626
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
627
|
+
fillOpacity?: number | undefined;
|
|
628
|
+
radiusDisplayAngle?: number | undefined;
|
|
629
|
+
radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
|
|
630
|
+
radiusMarker?: boolean | undefined;
|
|
631
|
+
} | {
|
|
632
|
+
type: "Marker";
|
|
633
|
+
coordinates: [number, number][][];
|
|
634
|
+
groupId?: string | null | undefined;
|
|
635
|
+
color?: string | undefined;
|
|
636
|
+
name?: string | null | undefined;
|
|
637
|
+
description?: string | null | undefined;
|
|
638
|
+
attributes?: Record<string, unknown> | undefined;
|
|
639
|
+
interaction?: "default" | "locked" | undefined;
|
|
640
|
+
opacity?: number | undefined;
|
|
641
|
+
size?: number | undefined;
|
|
642
|
+
zoom?: number | undefined;
|
|
643
|
+
} | {
|
|
644
|
+
type: "Highlighter";
|
|
645
|
+
coordinates: [number, number][][];
|
|
646
|
+
groupId?: string | null | undefined;
|
|
647
|
+
color?: string | undefined;
|
|
648
|
+
name?: string | null | undefined;
|
|
649
|
+
description?: string | null | undefined;
|
|
650
|
+
attributes?: Record<string, unknown> | undefined;
|
|
651
|
+
interaction?: "default" | "locked" | undefined;
|
|
652
|
+
opacity?: number | undefined;
|
|
653
|
+
} | {
|
|
654
|
+
type: "Text";
|
|
655
|
+
text: string;
|
|
656
|
+
groupId?: string | null | undefined;
|
|
657
|
+
color?: string | undefined;
|
|
658
|
+
description?: string | null | undefined;
|
|
659
|
+
attributes?: Record<string, unknown> | undefined;
|
|
660
|
+
interaction?: "default" | "locked" | undefined;
|
|
661
|
+
zoom?: number | undefined;
|
|
662
|
+
position?: [number, number] | undefined;
|
|
663
|
+
rotation?: number | undefined;
|
|
664
|
+
scale?: number | undefined;
|
|
665
|
+
align?: "left" | "center" | "right" | undefined;
|
|
666
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
667
|
+
} | {
|
|
668
|
+
type: "Note";
|
|
669
|
+
text: string;
|
|
670
|
+
groupId?: string | null | undefined;
|
|
671
|
+
color?: string | undefined;
|
|
672
|
+
description?: string | null | undefined;
|
|
673
|
+
attributes?: Record<string, unknown> | undefined;
|
|
674
|
+
interaction?: "default" | "locked" | undefined;
|
|
675
|
+
zoom?: number | undefined;
|
|
676
|
+
position?: [number, number] | undefined;
|
|
677
|
+
rotation?: number | undefined;
|
|
678
|
+
scale?: number | undefined;
|
|
679
|
+
align?: "left" | "center" | "right" | undefined;
|
|
680
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
681
|
+
widthScale?: number | undefined;
|
|
682
|
+
} | {
|
|
683
|
+
type: "Image";
|
|
684
|
+
coordinates: [number, number][][];
|
|
685
|
+
imageUrl: string;
|
|
686
|
+
groupId?: string | null | undefined;
|
|
687
|
+
name?: string | null | undefined;
|
|
688
|
+
description?: string | null | undefined;
|
|
689
|
+
attributes?: Record<string, unknown> | undefined;
|
|
690
|
+
interaction?: "default" | "locked" | undefined;
|
|
691
|
+
opacity?: number | undefined;
|
|
692
|
+
};
|
|
693
|
+
type: "createElement";
|
|
694
|
+
}, {
|
|
695
|
+
params: {
|
|
696
|
+
type: "Place";
|
|
697
|
+
coordinates: [number, number];
|
|
698
|
+
symbol?: string | undefined;
|
|
699
|
+
groupId?: string | null | undefined;
|
|
700
|
+
color?: string | undefined;
|
|
701
|
+
name?: string | null | undefined;
|
|
702
|
+
description?: string | null | undefined;
|
|
703
|
+
attributes?: Record<string, unknown> | undefined;
|
|
704
|
+
interaction?: "default" | "locked" | undefined;
|
|
705
|
+
imageUrl?: string | null | undefined;
|
|
706
|
+
frame?: "frame-circle" | "frame-square" | null | undefined;
|
|
707
|
+
hideLabel?: boolean | undefined;
|
|
708
|
+
} | {
|
|
709
|
+
type: "Path";
|
|
710
|
+
coordinates: [number, number][][];
|
|
711
|
+
groupId?: string | null | undefined;
|
|
712
|
+
color?: string | undefined;
|
|
713
|
+
name?: string | null | undefined;
|
|
714
|
+
description?: string | null | undefined;
|
|
715
|
+
attributes?: Record<string, unknown> | undefined;
|
|
716
|
+
interaction?: "default" | "locked" | undefined;
|
|
717
|
+
imageUrl?: string | null | undefined;
|
|
718
|
+
strokeOpacity?: number | undefined;
|
|
719
|
+
strokeWidth?: number | undefined;
|
|
720
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
721
|
+
distanceMarker?: boolean | undefined;
|
|
722
|
+
endCaps?: boolean | undefined;
|
|
723
|
+
routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
|
|
724
|
+
} | {
|
|
725
|
+
type: "Polygon";
|
|
726
|
+
coordinates: [number, number][][];
|
|
727
|
+
groupId?: string | null | undefined;
|
|
728
|
+
color?: string | undefined;
|
|
729
|
+
name?: string | null | undefined;
|
|
730
|
+
description?: string | null | undefined;
|
|
731
|
+
attributes?: Record<string, unknown> | undefined;
|
|
732
|
+
interaction?: "default" | "locked" | undefined;
|
|
733
|
+
imageUrl?: string | null | undefined;
|
|
734
|
+
strokeOpacity?: number | undefined;
|
|
735
|
+
strokeWidth?: number | undefined;
|
|
736
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
737
|
+
fillOpacity?: number | undefined;
|
|
738
|
+
areaMarker?: boolean | undefined;
|
|
739
|
+
} | {
|
|
740
|
+
type: "Circle";
|
|
741
|
+
coordinates: [number, number];
|
|
742
|
+
radius: number;
|
|
743
|
+
groupId?: string | null | undefined;
|
|
744
|
+
color?: string | undefined;
|
|
745
|
+
name?: string | null | undefined;
|
|
746
|
+
description?: string | null | undefined;
|
|
747
|
+
attributes?: Record<string, unknown> | undefined;
|
|
748
|
+
interaction?: "default" | "locked" | undefined;
|
|
749
|
+
imageUrl?: string | null | undefined;
|
|
750
|
+
strokeOpacity?: number | undefined;
|
|
751
|
+
strokeWidth?: number | undefined;
|
|
752
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
753
|
+
fillOpacity?: number | undefined;
|
|
754
|
+
radiusDisplayAngle?: number | undefined;
|
|
755
|
+
radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
|
|
756
|
+
radiusMarker?: boolean | undefined;
|
|
757
|
+
} | {
|
|
758
|
+
type: "Marker";
|
|
759
|
+
coordinates: [number, number][][];
|
|
760
|
+
groupId?: string | null | undefined;
|
|
761
|
+
color?: string | undefined;
|
|
762
|
+
name?: string | null | undefined;
|
|
763
|
+
description?: string | null | undefined;
|
|
764
|
+
attributes?: Record<string, unknown> | undefined;
|
|
765
|
+
interaction?: "default" | "locked" | undefined;
|
|
766
|
+
opacity?: number | undefined;
|
|
767
|
+
size?: number | undefined;
|
|
768
|
+
zoom?: number | undefined;
|
|
769
|
+
} | {
|
|
770
|
+
type: "Highlighter";
|
|
771
|
+
coordinates: [number, number][][];
|
|
772
|
+
groupId?: string | null | undefined;
|
|
773
|
+
color?: string | undefined;
|
|
774
|
+
name?: string | null | undefined;
|
|
775
|
+
description?: string | null | undefined;
|
|
776
|
+
attributes?: Record<string, unknown> | undefined;
|
|
777
|
+
interaction?: "default" | "locked" | undefined;
|
|
778
|
+
opacity?: number | undefined;
|
|
779
|
+
} | {
|
|
780
|
+
type: "Text";
|
|
781
|
+
text: string;
|
|
782
|
+
groupId?: string | null | undefined;
|
|
783
|
+
color?: string | undefined;
|
|
784
|
+
description?: string | null | undefined;
|
|
785
|
+
attributes?: Record<string, unknown> | undefined;
|
|
786
|
+
interaction?: "default" | "locked" | undefined;
|
|
787
|
+
zoom?: number | undefined;
|
|
788
|
+
position?: [number, number] | undefined;
|
|
789
|
+
rotation?: number | undefined;
|
|
790
|
+
scale?: number | undefined;
|
|
791
|
+
align?: "left" | "center" | "right" | undefined;
|
|
792
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
793
|
+
} | {
|
|
794
|
+
type: "Note";
|
|
795
|
+
text: string;
|
|
796
|
+
groupId?: string | null | undefined;
|
|
797
|
+
color?: string | undefined;
|
|
798
|
+
description?: string | null | undefined;
|
|
799
|
+
attributes?: Record<string, unknown> | undefined;
|
|
800
|
+
interaction?: "default" | "locked" | undefined;
|
|
801
|
+
zoom?: number | undefined;
|
|
802
|
+
position?: [number, number] | undefined;
|
|
803
|
+
rotation?: number | undefined;
|
|
804
|
+
scale?: number | undefined;
|
|
805
|
+
align?: "left" | "center" | "right" | undefined;
|
|
806
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
807
|
+
widthScale?: number | undefined;
|
|
808
|
+
} | {
|
|
809
|
+
type: "Image";
|
|
810
|
+
coordinates: [number, number][][];
|
|
811
|
+
imageUrl: string;
|
|
812
|
+
groupId?: string | null | undefined;
|
|
813
|
+
name?: string | null | undefined;
|
|
814
|
+
description?: string | null | undefined;
|
|
815
|
+
attributes?: Record<string, unknown> | undefined;
|
|
816
|
+
interaction?: "default" | "locked" | undefined;
|
|
817
|
+
opacity?: number | undefined;
|
|
818
|
+
};
|
|
819
|
+
type: "createElement";
|
|
820
|
+
}>;
|
|
821
|
+
declare const UpdateElementMessage: z.ZodObject<{
|
|
822
|
+
type: z.ZodLiteral<"updateElement">;
|
|
823
|
+
params: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
824
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
825
|
+
type: z.ZodLiteral<"Place">;
|
|
826
|
+
coordinates: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
827
|
+
id: z.ZodString;
|
|
828
|
+
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
829
|
+
color: z.ZodOptional<z.ZodString>;
|
|
830
|
+
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
831
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
832
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
833
|
+
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
834
|
+
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
835
|
+
frame: z.ZodOptional<z.ZodNullable<z.ZodEnum<["frame-circle", "frame-square"]>>>;
|
|
836
|
+
hideLabel: z.ZodOptional<z.ZodBoolean>;
|
|
837
|
+
}, "strip", z.ZodTypeAny, {
|
|
838
|
+
type: "Place";
|
|
839
|
+
id: string;
|
|
840
|
+
symbol?: string | undefined;
|
|
841
|
+
coordinates?: [number, number] | undefined;
|
|
842
|
+
groupId?: string | null | undefined;
|
|
843
|
+
color?: string | undefined;
|
|
844
|
+
name?: string | null | undefined;
|
|
845
|
+
description?: string | null | undefined;
|
|
846
|
+
attributes?: Record<string, unknown> | undefined;
|
|
847
|
+
interaction?: "default" | "locked" | undefined;
|
|
848
|
+
imageUrl?: string | null | undefined;
|
|
849
|
+
frame?: "frame-circle" | "frame-square" | null | undefined;
|
|
850
|
+
hideLabel?: boolean | undefined;
|
|
851
|
+
}, {
|
|
852
|
+
type: "Place";
|
|
853
|
+
id: string;
|
|
854
|
+
symbol?: string | undefined;
|
|
855
|
+
coordinates?: [number, number] | undefined;
|
|
856
|
+
groupId?: string | null | undefined;
|
|
857
|
+
color?: string | undefined;
|
|
858
|
+
name?: string | null | undefined;
|
|
859
|
+
description?: string | null | undefined;
|
|
860
|
+
attributes?: Record<string, unknown> | undefined;
|
|
861
|
+
interaction?: "default" | "locked" | undefined;
|
|
862
|
+
imageUrl?: string | null | undefined;
|
|
863
|
+
frame?: "frame-circle" | "frame-square" | null | undefined;
|
|
864
|
+
hideLabel?: boolean | undefined;
|
|
865
|
+
}>, z.ZodObject<{
|
|
866
|
+
type: z.ZodLiteral<"Path">;
|
|
867
|
+
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
|
|
868
|
+
id: z.ZodString;
|
|
869
|
+
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
870
|
+
color: z.ZodOptional<z.ZodString>;
|
|
871
|
+
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
872
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
873
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
874
|
+
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
875
|
+
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
876
|
+
strokeOpacity: z.ZodOptional<z.ZodNumber>;
|
|
877
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
878
|
+
strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
879
|
+
distanceMarker: z.ZodOptional<z.ZodBoolean>;
|
|
880
|
+
endCaps: z.ZodOptional<z.ZodBoolean>;
|
|
881
|
+
routingMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["driving", "cycling", "walking", "flying"]>>>;
|
|
882
|
+
}, "strip", z.ZodTypeAny, {
|
|
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
|
+
interaction?: "default" | "locked" | undefined;
|
|
892
|
+
imageUrl?: string | null | undefined;
|
|
893
|
+
strokeOpacity?: number | undefined;
|
|
894
|
+
strokeWidth?: number | undefined;
|
|
895
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
896
|
+
distanceMarker?: boolean | undefined;
|
|
897
|
+
endCaps?: boolean | undefined;
|
|
898
|
+
routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
|
|
899
|
+
}, {
|
|
900
|
+
type: "Path";
|
|
901
|
+
id: string;
|
|
902
|
+
coordinates?: [number, number][][] | undefined;
|
|
903
|
+
groupId?: string | null | undefined;
|
|
904
|
+
color?: string | undefined;
|
|
905
|
+
name?: string | null | undefined;
|
|
906
|
+
description?: string | null | undefined;
|
|
907
|
+
attributes?: Record<string, unknown> | undefined;
|
|
908
|
+
interaction?: "default" | "locked" | undefined;
|
|
909
|
+
imageUrl?: string | null | undefined;
|
|
910
|
+
strokeOpacity?: number | undefined;
|
|
911
|
+
strokeWidth?: number | undefined;
|
|
912
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
913
|
+
distanceMarker?: boolean | undefined;
|
|
914
|
+
endCaps?: boolean | undefined;
|
|
915
|
+
routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
|
|
916
|
+
}>, z.ZodObject<{
|
|
917
|
+
type: z.ZodLiteral<"Polygon">;
|
|
918
|
+
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
|
|
919
|
+
id: z.ZodString;
|
|
920
|
+
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
921
|
+
color: z.ZodOptional<z.ZodString>;
|
|
922
|
+
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
923
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
924
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
925
|
+
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
926
|
+
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
927
|
+
strokeOpacity: z.ZodOptional<z.ZodNumber>;
|
|
928
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
929
|
+
strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
930
|
+
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
931
|
+
areaMarker: z.ZodOptional<z.ZodBoolean>;
|
|
932
|
+
}, "strip", z.ZodTypeAny, {
|
|
933
|
+
type: "Polygon";
|
|
934
|
+
id: string;
|
|
935
|
+
coordinates?: [number, number][][] | undefined;
|
|
936
|
+
groupId?: string | null | undefined;
|
|
937
|
+
color?: string | undefined;
|
|
938
|
+
name?: string | null | undefined;
|
|
939
|
+
description?: string | null | undefined;
|
|
940
|
+
attributes?: Record<string, unknown> | undefined;
|
|
941
|
+
interaction?: "default" | "locked" | undefined;
|
|
942
|
+
imageUrl?: string | null | undefined;
|
|
943
|
+
strokeOpacity?: number | undefined;
|
|
944
|
+
strokeWidth?: number | undefined;
|
|
945
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
946
|
+
fillOpacity?: number | undefined;
|
|
947
|
+
areaMarker?: boolean | undefined;
|
|
948
|
+
}, {
|
|
949
|
+
type: "Polygon";
|
|
950
|
+
id: string;
|
|
951
|
+
coordinates?: [number, number][][] | undefined;
|
|
952
|
+
groupId?: string | null | undefined;
|
|
953
|
+
color?: string | undefined;
|
|
954
|
+
name?: string | null | undefined;
|
|
955
|
+
description?: string | null | undefined;
|
|
956
|
+
attributes?: Record<string, unknown> | undefined;
|
|
957
|
+
interaction?: "default" | "locked" | undefined;
|
|
958
|
+
imageUrl?: string | null | undefined;
|
|
959
|
+
strokeOpacity?: number | undefined;
|
|
960
|
+
strokeWidth?: number | undefined;
|
|
961
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
962
|
+
fillOpacity?: number | undefined;
|
|
963
|
+
areaMarker?: boolean | undefined;
|
|
964
|
+
}>, z.ZodObject<{
|
|
965
|
+
type: z.ZodLiteral<"Circle">;
|
|
966
|
+
coordinates: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
967
|
+
id: z.ZodString;
|
|
968
|
+
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
969
|
+
color: z.ZodOptional<z.ZodString>;
|
|
970
|
+
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
971
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
972
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
973
|
+
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
974
|
+
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
975
|
+
strokeOpacity: z.ZodOptional<z.ZodNumber>;
|
|
976
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
977
|
+
strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
978
|
+
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
979
|
+
radius: z.ZodOptional<z.ZodNumber>;
|
|
980
|
+
radiusDisplayAngle: z.ZodOptional<z.ZodNumber>;
|
|
981
|
+
radiusDisplayUnit: z.ZodOptional<z.ZodNullable<z.ZodEnum<["meter", "kilometer", "foot", "mile"]>>>;
|
|
982
|
+
radiusMarker: z.ZodOptional<z.ZodBoolean>;
|
|
983
|
+
}, "strip", z.ZodTypeAny, {
|
|
984
|
+
type: "Circle";
|
|
985
|
+
id: string;
|
|
986
|
+
coordinates?: [number, number] | undefined;
|
|
987
|
+
groupId?: string | null | undefined;
|
|
988
|
+
color?: string | undefined;
|
|
989
|
+
name?: string | null | undefined;
|
|
990
|
+
description?: string | null | undefined;
|
|
991
|
+
attributes?: Record<string, unknown> | undefined;
|
|
992
|
+
interaction?: "default" | "locked" | undefined;
|
|
993
|
+
imageUrl?: string | null | undefined;
|
|
994
|
+
strokeOpacity?: number | undefined;
|
|
995
|
+
strokeWidth?: number | undefined;
|
|
996
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
997
|
+
fillOpacity?: number | undefined;
|
|
998
|
+
radius?: number | undefined;
|
|
999
|
+
radiusDisplayAngle?: number | undefined;
|
|
1000
|
+
radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
|
|
1001
|
+
radiusMarker?: boolean | undefined;
|
|
1002
|
+
}, {
|
|
1003
|
+
type: "Circle";
|
|
1004
|
+
id: string;
|
|
1005
|
+
coordinates?: [number, number] | undefined;
|
|
1006
|
+
groupId?: string | null | undefined;
|
|
1007
|
+
color?: string | undefined;
|
|
1008
|
+
name?: string | null | undefined;
|
|
1009
|
+
description?: string | null | undefined;
|
|
1010
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1011
|
+
interaction?: "default" | "locked" | undefined;
|
|
1012
|
+
imageUrl?: string | null | undefined;
|
|
1013
|
+
strokeOpacity?: number | undefined;
|
|
1014
|
+
strokeWidth?: number | undefined;
|
|
1015
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
1016
|
+
fillOpacity?: number | undefined;
|
|
1017
|
+
radius?: number | undefined;
|
|
1018
|
+
radiusDisplayAngle?: number | undefined;
|
|
1019
|
+
radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
|
|
1020
|
+
radiusMarker?: boolean | undefined;
|
|
1021
|
+
}>, z.ZodObject<{
|
|
1022
|
+
type: z.ZodLiteral<"Marker">;
|
|
1023
|
+
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
|
|
1024
|
+
id: z.ZodString;
|
|
1025
|
+
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1026
|
+
color: z.ZodOptional<z.ZodString>;
|
|
1027
|
+
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
1028
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
1029
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1030
|
+
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
1031
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
1032
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
1033
|
+
zoom: z.ZodOptional<z.ZodNumber>;
|
|
1034
|
+
}, "strip", z.ZodTypeAny, {
|
|
1035
|
+
type: "Marker";
|
|
1036
|
+
id: string;
|
|
1037
|
+
coordinates?: [number, number][][] | undefined;
|
|
1038
|
+
groupId?: string | null | undefined;
|
|
1039
|
+
color?: string | undefined;
|
|
1040
|
+
name?: string | null | undefined;
|
|
1041
|
+
description?: string | null | undefined;
|
|
1042
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1043
|
+
interaction?: "default" | "locked" | undefined;
|
|
1044
|
+
opacity?: number | undefined;
|
|
1045
|
+
size?: number | undefined;
|
|
1046
|
+
zoom?: number | undefined;
|
|
95
1047
|
}, {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}>;
|
|
112
|
-
declare const OnElementChangeMessage: z.ZodObject<{
|
|
113
|
-
eventName: z.ZodLiteral<"onElementChange">;
|
|
114
|
-
id: z.ZodString;
|
|
115
|
-
options: z.ZodObject<{
|
|
1048
|
+
type: "Marker";
|
|
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
|
+
interaction?: "default" | "locked" | undefined;
|
|
1057
|
+
opacity?: number | undefined;
|
|
1058
|
+
size?: number | undefined;
|
|
1059
|
+
zoom?: number | undefined;
|
|
1060
|
+
}>, z.ZodObject<{
|
|
1061
|
+
type: z.ZodLiteral<"Highlighter">;
|
|
1062
|
+
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
|
|
116
1063
|
id: z.ZodString;
|
|
1064
|
+
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1065
|
+
color: z.ZodOptional<z.ZodString>;
|
|
1066
|
+
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
1067
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
1068
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1069
|
+
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
1070
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
117
1071
|
}, "strip", z.ZodTypeAny, {
|
|
1072
|
+
type: "Highlighter";
|
|
118
1073
|
id: string;
|
|
1074
|
+
coordinates?: [number, number][][] | undefined;
|
|
1075
|
+
groupId?: string | null | undefined;
|
|
1076
|
+
color?: string | undefined;
|
|
1077
|
+
name?: string | null | undefined;
|
|
1078
|
+
description?: string | null | undefined;
|
|
1079
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1080
|
+
interaction?: "default" | "locked" | undefined;
|
|
1081
|
+
opacity?: number | undefined;
|
|
119
1082
|
}, {
|
|
1083
|
+
type: "Highlighter";
|
|
120
1084
|
id: string;
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
1085
|
+
coordinates?: [number, number][][] | undefined;
|
|
1086
|
+
groupId?: string | null | undefined;
|
|
1087
|
+
color?: string | undefined;
|
|
1088
|
+
name?: string | null | undefined;
|
|
1089
|
+
description?: string | null | undefined;
|
|
1090
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1091
|
+
interaction?: "default" | "locked" | undefined;
|
|
1092
|
+
opacity?: number | undefined;
|
|
1093
|
+
}>, z.ZodObject<Omit<{
|
|
1094
|
+
type: z.ZodLiteral<"Text">;
|
|
1095
|
+
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
|
|
1096
|
+
id: z.ZodString;
|
|
1097
|
+
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1098
|
+
color: z.ZodOptional<z.ZodString>;
|
|
1099
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1100
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
1101
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1102
|
+
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
1103
|
+
zoom: z.ZodOptional<z.ZodNumber>;
|
|
1104
|
+
position: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
1105
|
+
rotation: z.ZodOptional<z.ZodNumber>;
|
|
1106
|
+
scale: z.ZodOptional<z.ZodNumber>;
|
|
1107
|
+
text: z.ZodOptional<z.ZodString>;
|
|
1108
|
+
align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
1109
|
+
style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
|
|
1110
|
+
}, "coordinates" | "name">, "strip", z.ZodTypeAny, {
|
|
1111
|
+
type: "Text";
|
|
124
1112
|
id: string;
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
1113
|
+
groupId?: string | null | undefined;
|
|
1114
|
+
color?: string | undefined;
|
|
1115
|
+
description?: string | null | undefined;
|
|
1116
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1117
|
+
interaction?: "default" | "locked" | undefined;
|
|
1118
|
+
zoom?: number | undefined;
|
|
1119
|
+
position?: [number, number] | undefined;
|
|
1120
|
+
rotation?: number | undefined;
|
|
1121
|
+
scale?: number | undefined;
|
|
1122
|
+
text?: string | undefined;
|
|
1123
|
+
align?: "left" | "center" | "right" | undefined;
|
|
1124
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1125
|
+
}, {
|
|
1126
|
+
type: "Text";
|
|
130
1127
|
id: string;
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
1128
|
+
groupId?: string | null | undefined;
|
|
1129
|
+
color?: string | undefined;
|
|
1130
|
+
description?: string | null | undefined;
|
|
1131
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1132
|
+
interaction?: "default" | "locked" | undefined;
|
|
1133
|
+
zoom?: number | undefined;
|
|
1134
|
+
position?: [number, number] | undefined;
|
|
1135
|
+
rotation?: number | undefined;
|
|
1136
|
+
scale?: number | undefined;
|
|
1137
|
+
text?: string | undefined;
|
|
1138
|
+
align?: "left" | "center" | "right" | undefined;
|
|
1139
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1140
|
+
}>, z.ZodObject<Omit<{
|
|
1141
|
+
type: z.ZodLiteral<"Note">;
|
|
1142
|
+
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
|
|
1143
|
+
id: z.ZodString;
|
|
1144
|
+
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1145
|
+
color: z.ZodOptional<z.ZodString>;
|
|
1146
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1147
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
1148
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1149
|
+
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
1150
|
+
zoom: z.ZodOptional<z.ZodNumber>;
|
|
1151
|
+
position: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
1152
|
+
rotation: z.ZodOptional<z.ZodNumber>;
|
|
1153
|
+
scale: z.ZodOptional<z.ZodNumber>;
|
|
1154
|
+
text: z.ZodOptional<z.ZodString>;
|
|
1155
|
+
align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
1156
|
+
style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
|
|
1157
|
+
widthScale: z.ZodOptional<z.ZodNumber>;
|
|
1158
|
+
}, "coordinates" | "name">, "strip", z.ZodTypeAny, {
|
|
1159
|
+
type: "Note";
|
|
1160
|
+
id: string;
|
|
1161
|
+
groupId?: string | null | undefined;
|
|
1162
|
+
color?: string | undefined;
|
|
1163
|
+
description?: string | null | undefined;
|
|
1164
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1165
|
+
interaction?: "default" | "locked" | undefined;
|
|
1166
|
+
zoom?: number | undefined;
|
|
1167
|
+
position?: [number, number] | undefined;
|
|
1168
|
+
rotation?: number | undefined;
|
|
1169
|
+
scale?: number | undefined;
|
|
1170
|
+
text?: string | undefined;
|
|
1171
|
+
align?: "left" | "center" | "right" | undefined;
|
|
1172
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1173
|
+
widthScale?: number | undefined;
|
|
1174
|
+
}, {
|
|
1175
|
+
type: "Note";
|
|
1176
|
+
id: string;
|
|
1177
|
+
groupId?: string | null | undefined;
|
|
1178
|
+
color?: string | undefined;
|
|
1179
|
+
description?: string | null | undefined;
|
|
1180
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1181
|
+
interaction?: "default" | "locked" | undefined;
|
|
1182
|
+
zoom?: number | undefined;
|
|
1183
|
+
position?: [number, number] | undefined;
|
|
1184
|
+
rotation?: number | undefined;
|
|
1185
|
+
scale?: number | undefined;
|
|
1186
|
+
text?: string | undefined;
|
|
1187
|
+
align?: "left" | "center" | "right" | undefined;
|
|
1188
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1189
|
+
widthScale?: number | undefined;
|
|
1190
|
+
}>, z.ZodObject<{
|
|
1191
|
+
type: z.ZodLiteral<"Image">;
|
|
1192
|
+
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
|
|
139
1193
|
id: z.ZodString;
|
|
1194
|
+
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1195
|
+
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
1196
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
1197
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1198
|
+
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
1199
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
1200
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
140
1201
|
}, "strip", z.ZodTypeAny, {
|
|
1202
|
+
type: "Image";
|
|
141
1203
|
id: string;
|
|
1204
|
+
coordinates?: [number, number][][] | undefined;
|
|
1205
|
+
groupId?: string | null | undefined;
|
|
1206
|
+
name?: string | null | undefined;
|
|
1207
|
+
description?: string | null | undefined;
|
|
1208
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1209
|
+
interaction?: "default" | "locked" | undefined;
|
|
1210
|
+
imageUrl?: string | undefined;
|
|
1211
|
+
opacity?: number | undefined;
|
|
142
1212
|
}, {
|
|
1213
|
+
type: "Image";
|
|
143
1214
|
id: string;
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
1215
|
+
coordinates?: [number, number][][] | undefined;
|
|
1216
|
+
groupId?: string | null | undefined;
|
|
1217
|
+
name?: string | null | undefined;
|
|
1218
|
+
description?: string | null | undefined;
|
|
1219
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1220
|
+
interaction?: "default" | "locked" | undefined;
|
|
1221
|
+
imageUrl?: string | undefined;
|
|
1222
|
+
opacity?: number | undefined;
|
|
1223
|
+
}>]>;
|
|
1224
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1225
|
+
params: {
|
|
1226
|
+
type: "Place";
|
|
1227
|
+
id: string;
|
|
1228
|
+
symbol?: string | undefined;
|
|
1229
|
+
coordinates?: [number, number] | undefined;
|
|
1230
|
+
groupId?: string | null | undefined;
|
|
1231
|
+
color?: string | undefined;
|
|
1232
|
+
name?: string | null | undefined;
|
|
1233
|
+
description?: string | null | undefined;
|
|
1234
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1235
|
+
interaction?: "default" | "locked" | undefined;
|
|
1236
|
+
imageUrl?: string | null | undefined;
|
|
1237
|
+
frame?: "frame-circle" | "frame-square" | null | undefined;
|
|
1238
|
+
hideLabel?: boolean | undefined;
|
|
1239
|
+
} | {
|
|
1240
|
+
type: "Path";
|
|
1241
|
+
id: string;
|
|
1242
|
+
coordinates?: [number, number][][] | undefined;
|
|
1243
|
+
groupId?: string | null | undefined;
|
|
1244
|
+
color?: string | undefined;
|
|
1245
|
+
name?: string | null | undefined;
|
|
1246
|
+
description?: string | null | undefined;
|
|
1247
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1248
|
+
interaction?: "default" | "locked" | undefined;
|
|
1249
|
+
imageUrl?: string | null | undefined;
|
|
1250
|
+
strokeOpacity?: number | undefined;
|
|
1251
|
+
strokeWidth?: number | undefined;
|
|
1252
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
1253
|
+
distanceMarker?: boolean | undefined;
|
|
1254
|
+
endCaps?: boolean | undefined;
|
|
1255
|
+
routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
|
|
1256
|
+
} | {
|
|
1257
|
+
type: "Polygon";
|
|
1258
|
+
id: string;
|
|
1259
|
+
coordinates?: [number, number][][] | undefined;
|
|
1260
|
+
groupId?: string | null | undefined;
|
|
1261
|
+
color?: string | undefined;
|
|
1262
|
+
name?: string | null | undefined;
|
|
1263
|
+
description?: string | null | undefined;
|
|
1264
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1265
|
+
interaction?: "default" | "locked" | undefined;
|
|
1266
|
+
imageUrl?: string | null | undefined;
|
|
1267
|
+
strokeOpacity?: number | undefined;
|
|
1268
|
+
strokeWidth?: number | undefined;
|
|
1269
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
1270
|
+
fillOpacity?: number | undefined;
|
|
1271
|
+
areaMarker?: boolean | undefined;
|
|
1272
|
+
} | {
|
|
1273
|
+
type: "Circle";
|
|
1274
|
+
id: string;
|
|
1275
|
+
coordinates?: [number, number] | undefined;
|
|
1276
|
+
groupId?: string | null | undefined;
|
|
1277
|
+
color?: string | undefined;
|
|
1278
|
+
name?: string | null | undefined;
|
|
1279
|
+
description?: string | null | undefined;
|
|
1280
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1281
|
+
interaction?: "default" | "locked" | undefined;
|
|
1282
|
+
imageUrl?: string | null | undefined;
|
|
1283
|
+
strokeOpacity?: number | undefined;
|
|
1284
|
+
strokeWidth?: number | undefined;
|
|
1285
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
1286
|
+
fillOpacity?: number | undefined;
|
|
1287
|
+
radius?: number | undefined;
|
|
1288
|
+
radiusDisplayAngle?: number | undefined;
|
|
1289
|
+
radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
|
|
1290
|
+
radiusMarker?: boolean | undefined;
|
|
1291
|
+
} | {
|
|
1292
|
+
type: "Marker";
|
|
1293
|
+
id: string;
|
|
1294
|
+
coordinates?: [number, number][][] | undefined;
|
|
1295
|
+
groupId?: string | null | undefined;
|
|
1296
|
+
color?: string | undefined;
|
|
1297
|
+
name?: string | null | undefined;
|
|
1298
|
+
description?: string | null | undefined;
|
|
1299
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1300
|
+
interaction?: "default" | "locked" | undefined;
|
|
1301
|
+
opacity?: number | undefined;
|
|
1302
|
+
size?: number | undefined;
|
|
1303
|
+
zoom?: number | undefined;
|
|
1304
|
+
} | {
|
|
1305
|
+
type: "Highlighter";
|
|
1306
|
+
id: string;
|
|
1307
|
+
coordinates?: [number, number][][] | undefined;
|
|
1308
|
+
groupId?: string | null | undefined;
|
|
1309
|
+
color?: string | undefined;
|
|
1310
|
+
name?: string | null | undefined;
|
|
1311
|
+
description?: string | null | undefined;
|
|
1312
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1313
|
+
interaction?: "default" | "locked" | undefined;
|
|
1314
|
+
opacity?: number | undefined;
|
|
1315
|
+
} | {
|
|
1316
|
+
type: "Text";
|
|
147
1317
|
id: string;
|
|
1318
|
+
groupId?: string | null | undefined;
|
|
1319
|
+
color?: string | undefined;
|
|
1320
|
+
description?: string | null | undefined;
|
|
1321
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1322
|
+
interaction?: "default" | "locked" | undefined;
|
|
1323
|
+
zoom?: number | undefined;
|
|
1324
|
+
position?: [number, number] | undefined;
|
|
1325
|
+
rotation?: number | undefined;
|
|
1326
|
+
scale?: number | undefined;
|
|
1327
|
+
text?: string | undefined;
|
|
1328
|
+
align?: "left" | "center" | "right" | undefined;
|
|
1329
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1330
|
+
} | {
|
|
1331
|
+
type: "Note";
|
|
1332
|
+
id: string;
|
|
1333
|
+
groupId?: string | null | undefined;
|
|
1334
|
+
color?: string | undefined;
|
|
1335
|
+
description?: string | null | undefined;
|
|
1336
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1337
|
+
interaction?: "default" | "locked" | undefined;
|
|
1338
|
+
zoom?: number | undefined;
|
|
1339
|
+
position?: [number, number] | undefined;
|
|
1340
|
+
rotation?: number | undefined;
|
|
1341
|
+
scale?: number | undefined;
|
|
1342
|
+
text?: string | undefined;
|
|
1343
|
+
align?: "left" | "center" | "right" | undefined;
|
|
1344
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1345
|
+
widthScale?: number | undefined;
|
|
1346
|
+
} | {
|
|
1347
|
+
type: "Image";
|
|
1348
|
+
id: string;
|
|
1349
|
+
coordinates?: [number, number][][] | undefined;
|
|
1350
|
+
groupId?: string | null | undefined;
|
|
1351
|
+
name?: string | null | undefined;
|
|
1352
|
+
description?: string | null | undefined;
|
|
1353
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1354
|
+
interaction?: "default" | "locked" | undefined;
|
|
1355
|
+
imageUrl?: string | undefined;
|
|
1356
|
+
opacity?: number | undefined;
|
|
148
1357
|
};
|
|
149
|
-
|
|
150
|
-
id: string;
|
|
1358
|
+
type: "updateElement";
|
|
151
1359
|
}, {
|
|
152
|
-
|
|
1360
|
+
params: {
|
|
1361
|
+
type: "Place";
|
|
1362
|
+
id: string;
|
|
1363
|
+
symbol?: string | undefined;
|
|
1364
|
+
coordinates?: [number, number] | undefined;
|
|
1365
|
+
groupId?: string | null | undefined;
|
|
1366
|
+
color?: string | undefined;
|
|
1367
|
+
name?: string | null | undefined;
|
|
1368
|
+
description?: string | null | undefined;
|
|
1369
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1370
|
+
interaction?: "default" | "locked" | undefined;
|
|
1371
|
+
imageUrl?: string | null | undefined;
|
|
1372
|
+
frame?: "frame-circle" | "frame-square" | null | undefined;
|
|
1373
|
+
hideLabel?: boolean | undefined;
|
|
1374
|
+
} | {
|
|
1375
|
+
type: "Path";
|
|
1376
|
+
id: string;
|
|
1377
|
+
coordinates?: [number, number][][] | undefined;
|
|
1378
|
+
groupId?: string | null | undefined;
|
|
1379
|
+
color?: string | undefined;
|
|
1380
|
+
name?: string | null | undefined;
|
|
1381
|
+
description?: string | null | undefined;
|
|
1382
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1383
|
+
interaction?: "default" | "locked" | undefined;
|
|
1384
|
+
imageUrl?: string | null | undefined;
|
|
1385
|
+
strokeOpacity?: number | undefined;
|
|
1386
|
+
strokeWidth?: number | undefined;
|
|
1387
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
1388
|
+
distanceMarker?: boolean | undefined;
|
|
1389
|
+
endCaps?: boolean | undefined;
|
|
1390
|
+
routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
|
|
1391
|
+
} | {
|
|
1392
|
+
type: "Polygon";
|
|
1393
|
+
id: string;
|
|
1394
|
+
coordinates?: [number, number][][] | undefined;
|
|
1395
|
+
groupId?: string | null | undefined;
|
|
1396
|
+
color?: string | undefined;
|
|
1397
|
+
name?: string | null | undefined;
|
|
1398
|
+
description?: string | null | undefined;
|
|
1399
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1400
|
+
interaction?: "default" | "locked" | undefined;
|
|
1401
|
+
imageUrl?: string | null | undefined;
|
|
1402
|
+
strokeOpacity?: number | undefined;
|
|
1403
|
+
strokeWidth?: number | undefined;
|
|
1404
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
1405
|
+
fillOpacity?: number | undefined;
|
|
1406
|
+
areaMarker?: boolean | undefined;
|
|
1407
|
+
} | {
|
|
1408
|
+
type: "Circle";
|
|
1409
|
+
id: string;
|
|
1410
|
+
coordinates?: [number, number] | undefined;
|
|
1411
|
+
groupId?: string | null | undefined;
|
|
1412
|
+
color?: string | undefined;
|
|
1413
|
+
name?: string | null | undefined;
|
|
1414
|
+
description?: string | null | undefined;
|
|
1415
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1416
|
+
interaction?: "default" | "locked" | undefined;
|
|
1417
|
+
imageUrl?: string | null | undefined;
|
|
1418
|
+
strokeOpacity?: number | undefined;
|
|
1419
|
+
strokeWidth?: number | undefined;
|
|
1420
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
1421
|
+
fillOpacity?: number | undefined;
|
|
1422
|
+
radius?: number | undefined;
|
|
1423
|
+
radiusDisplayAngle?: number | undefined;
|
|
1424
|
+
radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
|
|
1425
|
+
radiusMarker?: boolean | undefined;
|
|
1426
|
+
} | {
|
|
1427
|
+
type: "Marker";
|
|
1428
|
+
id: string;
|
|
1429
|
+
coordinates?: [number, number][][] | undefined;
|
|
1430
|
+
groupId?: string | null | undefined;
|
|
1431
|
+
color?: string | undefined;
|
|
1432
|
+
name?: string | null | undefined;
|
|
1433
|
+
description?: string | null | undefined;
|
|
1434
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1435
|
+
interaction?: "default" | "locked" | undefined;
|
|
1436
|
+
opacity?: number | undefined;
|
|
1437
|
+
size?: number | undefined;
|
|
1438
|
+
zoom?: number | undefined;
|
|
1439
|
+
} | {
|
|
1440
|
+
type: "Highlighter";
|
|
1441
|
+
id: string;
|
|
1442
|
+
coordinates?: [number, number][][] | undefined;
|
|
1443
|
+
groupId?: string | null | undefined;
|
|
1444
|
+
color?: string | undefined;
|
|
1445
|
+
name?: string | null | undefined;
|
|
1446
|
+
description?: string | null | undefined;
|
|
1447
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1448
|
+
interaction?: "default" | "locked" | undefined;
|
|
1449
|
+
opacity?: number | undefined;
|
|
1450
|
+
} | {
|
|
1451
|
+
type: "Text";
|
|
1452
|
+
id: string;
|
|
1453
|
+
groupId?: string | null | undefined;
|
|
1454
|
+
color?: string | undefined;
|
|
1455
|
+
description?: string | null | undefined;
|
|
1456
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1457
|
+
interaction?: "default" | "locked" | undefined;
|
|
1458
|
+
zoom?: number | undefined;
|
|
1459
|
+
position?: [number, number] | undefined;
|
|
1460
|
+
rotation?: number | undefined;
|
|
1461
|
+
scale?: number | undefined;
|
|
1462
|
+
text?: string | undefined;
|
|
1463
|
+
align?: "left" | "center" | "right" | undefined;
|
|
1464
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1465
|
+
} | {
|
|
1466
|
+
type: "Note";
|
|
1467
|
+
id: string;
|
|
1468
|
+
groupId?: string | null | undefined;
|
|
1469
|
+
color?: string | undefined;
|
|
1470
|
+
description?: string | null | undefined;
|
|
1471
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1472
|
+
interaction?: "default" | "locked" | undefined;
|
|
1473
|
+
zoom?: number | undefined;
|
|
1474
|
+
position?: [number, number] | undefined;
|
|
1475
|
+
rotation?: number | undefined;
|
|
1476
|
+
scale?: number | undefined;
|
|
1477
|
+
text?: string | undefined;
|
|
1478
|
+
align?: "left" | "center" | "right" | undefined;
|
|
1479
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1480
|
+
widthScale?: number | undefined;
|
|
1481
|
+
} | {
|
|
1482
|
+
type: "Image";
|
|
153
1483
|
id: string;
|
|
1484
|
+
coordinates?: [number, number][][] | undefined;
|
|
1485
|
+
groupId?: string | null | undefined;
|
|
1486
|
+
name?: string | null | undefined;
|
|
1487
|
+
description?: string | null | undefined;
|
|
1488
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1489
|
+
interaction?: "default" | "locked" | undefined;
|
|
1490
|
+
imageUrl?: string | undefined;
|
|
1491
|
+
opacity?: number | undefined;
|
|
154
1492
|
};
|
|
155
|
-
|
|
156
|
-
|
|
1493
|
+
type: "updateElement";
|
|
1494
|
+
}>;
|
|
1495
|
+
declare const DeleteElementMessage: z.ZodObject<{
|
|
1496
|
+
type: z.ZodLiteral<"deleteElement">;
|
|
1497
|
+
params: z.ZodString;
|
|
1498
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1499
|
+
params: string;
|
|
1500
|
+
type: "deleteElement";
|
|
1501
|
+
}, {
|
|
1502
|
+
params: string;
|
|
1503
|
+
type: "deleteElement";
|
|
157
1504
|
}>;
|
|
158
1505
|
type ElementsSchema = {
|
|
159
1506
|
methods: {
|
|
160
1507
|
getElement: Method<zInfer<typeof GetElementMessage>, Element | null>;
|
|
161
|
-
getElementGeometry: Method<zInfer<typeof GetElementGeometryMessage>,
|
|
1508
|
+
getElementGeometry: Method<zInfer<typeof GetElementGeometryMessage>, GeoJsonGeometry | null>;
|
|
162
1509
|
getElements: Method<zInfer<typeof GetElementsMessage>, Array<Element | null>>;
|
|
163
1510
|
getElementGroup: Method<zInfer<typeof GetGroupMessage$1>, ElementGroup | null>;
|
|
164
1511
|
getElementGroups: Method<zInfer<typeof GetGroupsMessage$1>, Array<ElementGroup | null>>;
|
|
165
1512
|
setElementGroupVisibility: Method<zInfer<typeof SetElementGroupVisibilityMessage>, void>;
|
|
1513
|
+
createElement: Method<zInfer<typeof CreateElementMessage>, Element>;
|
|
1514
|
+
updateElement: Method<zInfer<typeof UpdateElementMessage>, Element>;
|
|
1515
|
+
deleteElement: Method<zInfer<typeof DeleteElementMessage>, void>;
|
|
166
1516
|
};
|
|
167
1517
|
listeners: {
|
|
168
1518
|
onElementChange: Listener<zInfer<typeof OnElementChangeMessage.shape.options>, ElementChangeCallbackParams>;
|
|
169
1519
|
onElementGroupChange: Listener<zInfer<typeof OnElementGroupChangeMessage.shape.options>, ElementGroupChangeCallbackParams>;
|
|
1520
|
+
onElementCreate: ListenerNoOptions<ElementChangeCallbackParams>;
|
|
1521
|
+
onElementCreateEnd: ListenerNoOptions<{
|
|
1522
|
+
element: Element;
|
|
1523
|
+
}>;
|
|
1524
|
+
onElementDelete: Listener<zInfer<typeof OnElementDeleteMessage.shape.options>, void>;
|
|
170
1525
|
};
|
|
171
1526
|
};
|
|
172
1527
|
|
|
173
1528
|
type InteractionsSchema = {
|
|
174
1529
|
methods: {};
|
|
175
1530
|
listeners: {
|
|
176
|
-
onPointerClick:
|
|
177
|
-
onPointerMove:
|
|
1531
|
+
onPointerClick: ListenerNoOptions<MapInteractionEvent>;
|
|
1532
|
+
onPointerMove: ListenerNoOptions<MapInteractionEvent>;
|
|
178
1533
|
};
|
|
179
1534
|
};
|
|
180
1535
|
|
|
@@ -247,14 +1602,14 @@ declare const OnLayerChangeMessage: z.ZodObject<{
|
|
|
247
1602
|
options: {
|
|
248
1603
|
id: string;
|
|
249
1604
|
};
|
|
250
|
-
eventName: "onLayerChange";
|
|
251
1605
|
id: string;
|
|
1606
|
+
eventName: "onLayerChange";
|
|
252
1607
|
}, {
|
|
253
1608
|
options: {
|
|
254
1609
|
id: string;
|
|
255
1610
|
};
|
|
256
|
-
eventName: "onLayerChange";
|
|
257
1611
|
id: string;
|
|
1612
|
+
eventName: "onLayerChange";
|
|
258
1613
|
}>;
|
|
259
1614
|
declare const SetLayerStyleMessage: z.ZodObject<{
|
|
260
1615
|
type: z.ZodLiteral<"setLayerStyle">;
|
|
@@ -408,14 +1763,14 @@ declare const OnLayerGroupChangeMessage: z.ZodObject<{
|
|
|
408
1763
|
options: {
|
|
409
1764
|
id: string;
|
|
410
1765
|
};
|
|
411
|
-
eventName: "onLayerGroupChange";
|
|
412
1766
|
id: string;
|
|
1767
|
+
eventName: "onLayerGroupChange";
|
|
413
1768
|
}, {
|
|
414
1769
|
options: {
|
|
415
1770
|
id: string;
|
|
416
1771
|
};
|
|
417
|
-
eventName: "onLayerGroupChange";
|
|
418
1772
|
id: string;
|
|
1773
|
+
eventName: "onLayerGroupChange";
|
|
419
1774
|
}>;
|
|
420
1775
|
declare const GetLegendItemMessage: z.ZodObject<{
|
|
421
1776
|
type: z.ZodLiteral<"getLegendItem">;
|
|
@@ -506,15 +1861,15 @@ declare const OnLegendItemChangeMessage: z.ZodObject<{
|
|
|
506
1861
|
id: string;
|
|
507
1862
|
layerId: string;
|
|
508
1863
|
};
|
|
509
|
-
eventName: "onLegendItemChange";
|
|
510
1864
|
id: string;
|
|
1865
|
+
eventName: "onLegendItemChange";
|
|
511
1866
|
}, {
|
|
512
1867
|
options: {
|
|
513
1868
|
id: string;
|
|
514
1869
|
layerId: string;
|
|
515
1870
|
};
|
|
516
|
-
eventName: "onLegendItemChange";
|
|
517
1871
|
id: string;
|
|
1872
|
+
eventName: "onLegendItemChange";
|
|
518
1873
|
}>;
|
|
519
1874
|
declare const SetLegendItemVisibilityMessage: z.ZodObject<{
|
|
520
1875
|
type: z.ZodLiteral<"setLegendItemVisibility">;
|
|
@@ -600,29 +1955,52 @@ declare const SetFiltersMessage: z.ZodObject<{
|
|
|
600
1955
|
filters: 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]>;
|
|
601
1956
|
note: z.ZodOptional<z.ZodString>;
|
|
602
1957
|
}, "strip", z.ZodTypeAny, {
|
|
603
|
-
layerId: string;
|
|
604
1958
|
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;
|
|
1959
|
+
layerId: string;
|
|
605
1960
|
note?: string | undefined;
|
|
606
1961
|
}, {
|
|
607
|
-
layerId: string;
|
|
608
1962
|
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;
|
|
1963
|
+
layerId: string;
|
|
609
1964
|
note?: string | undefined;
|
|
610
1965
|
}>;
|
|
611
1966
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
612
1967
|
params: {
|
|
613
|
-
layerId: string;
|
|
614
1968
|
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;
|
|
1969
|
+
layerId: string;
|
|
615
1970
|
note?: string | undefined;
|
|
616
1971
|
};
|
|
617
1972
|
type: "setLayerFilters";
|
|
618
1973
|
}, {
|
|
619
1974
|
params: {
|
|
620
|
-
layerId: string;
|
|
621
1975
|
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;
|
|
1976
|
+
layerId: string;
|
|
622
1977
|
note?: string | undefined;
|
|
623
1978
|
};
|
|
624
1979
|
type: "setLayerFilters";
|
|
625
1980
|
}>;
|
|
1981
|
+
declare const OnLayerFiltersChangeMessage: z.ZodObject<{
|
|
1982
|
+
eventName: z.ZodLiteral<"onLayerFiltersChange">;
|
|
1983
|
+
id: z.ZodString;
|
|
1984
|
+
options: z.ZodObject<{
|
|
1985
|
+
layerId: z.ZodString;
|
|
1986
|
+
}, "strip", z.ZodTypeAny, {
|
|
1987
|
+
layerId: string;
|
|
1988
|
+
}, {
|
|
1989
|
+
layerId: string;
|
|
1990
|
+
}>;
|
|
1991
|
+
}, "strict", z.ZodTypeAny, {
|
|
1992
|
+
options: {
|
|
1993
|
+
layerId: string;
|
|
1994
|
+
};
|
|
1995
|
+
id: string;
|
|
1996
|
+
eventName: "onLayerFiltersChange";
|
|
1997
|
+
}, {
|
|
1998
|
+
options: {
|
|
1999
|
+
layerId: string;
|
|
2000
|
+
};
|
|
2001
|
+
id: string;
|
|
2002
|
+
eventName: "onLayerFiltersChange";
|
|
2003
|
+
}>;
|
|
626
2004
|
declare const GetRenderedFeaturesMessage: z.ZodObject<{
|
|
627
2005
|
type: z.ZodLiteral<"getRenderedFeatures">;
|
|
628
2006
|
params: z.ZodOptional<z.ZodObject<{
|
|
@@ -703,6 +2081,481 @@ declare const GetRenderedFeaturesMessage: z.ZodObject<{
|
|
|
703
2081
|
} | undefined;
|
|
704
2082
|
} | undefined;
|
|
705
2083
|
}>;
|
|
2084
|
+
declare const GetFeatureMessage: z.ZodObject<{
|
|
2085
|
+
type: z.ZodLiteral<"getFeature">;
|
|
2086
|
+
params: z.ZodObject<{
|
|
2087
|
+
id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
2088
|
+
layerId: z.ZodString;
|
|
2089
|
+
}, "strip", z.ZodTypeAny, {
|
|
2090
|
+
id: string | number;
|
|
2091
|
+
layerId: string;
|
|
2092
|
+
}, {
|
|
2093
|
+
id: string | number;
|
|
2094
|
+
layerId: string;
|
|
2095
|
+
}>;
|
|
2096
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2097
|
+
params: {
|
|
2098
|
+
id: string | number;
|
|
2099
|
+
layerId: string;
|
|
2100
|
+
};
|
|
2101
|
+
type: "getFeature";
|
|
2102
|
+
}, {
|
|
2103
|
+
params: {
|
|
2104
|
+
id: string | number;
|
|
2105
|
+
layerId: string;
|
|
2106
|
+
};
|
|
2107
|
+
type: "getFeature";
|
|
2108
|
+
}>;
|
|
2109
|
+
declare const GetGeoJsonFeatureMessage: z.ZodObject<{
|
|
2110
|
+
type: z.ZodLiteral<"getGeoJsonFeature">;
|
|
2111
|
+
params: z.ZodObject<{
|
|
2112
|
+
id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
2113
|
+
layerId: z.ZodString;
|
|
2114
|
+
}, "strip", z.ZodTypeAny, {
|
|
2115
|
+
id: string | number;
|
|
2116
|
+
layerId: string;
|
|
2117
|
+
}, {
|
|
2118
|
+
id: string | number;
|
|
2119
|
+
layerId: string;
|
|
2120
|
+
}>;
|
|
2121
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2122
|
+
params: {
|
|
2123
|
+
id: string | number;
|
|
2124
|
+
layerId: string;
|
|
2125
|
+
};
|
|
2126
|
+
type: "getGeoJsonFeature";
|
|
2127
|
+
}, {
|
|
2128
|
+
params: {
|
|
2129
|
+
id: string | number;
|
|
2130
|
+
layerId: string;
|
|
2131
|
+
};
|
|
2132
|
+
type: "getGeoJsonFeature";
|
|
2133
|
+
}>;
|
|
2134
|
+
declare const GetLayerCategoriesMessage: z.ZodObject<{
|
|
2135
|
+
type: z.ZodLiteral<"getCategoryData">;
|
|
2136
|
+
params: z.ZodObject<{
|
|
2137
|
+
layerId: z.ZodString;
|
|
2138
|
+
attribute: z.ZodString;
|
|
2139
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
2140
|
+
boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
|
|
2141
|
+
type: z.ZodLiteral<"Polygon">;
|
|
2142
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
2143
|
+
}, "strip", z.ZodTypeAny, {
|
|
2144
|
+
type: "Polygon";
|
|
2145
|
+
coordinates: [number, number][][];
|
|
2146
|
+
}, {
|
|
2147
|
+
type: "Polygon";
|
|
2148
|
+
coordinates: [number, number][][];
|
|
2149
|
+
}>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]>>;
|
|
2150
|
+
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]>>;
|
|
2151
|
+
values: z.ZodOptional<z.ZodObject<{
|
|
2152
|
+
boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
|
|
2153
|
+
type: z.ZodLiteral<"Polygon">;
|
|
2154
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
2155
|
+
}, "strip", z.ZodTypeAny, {
|
|
2156
|
+
type: "Polygon";
|
|
2157
|
+
coordinates: [number, number][][];
|
|
2158
|
+
}, {
|
|
2159
|
+
type: "Polygon";
|
|
2160
|
+
coordinates: [number, number][][];
|
|
2161
|
+
}>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]>>;
|
|
2162
|
+
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]>>;
|
|
2163
|
+
aggregation: z.ZodOptional<z.ZodObject<{
|
|
2164
|
+
method: z.ZodEnum<["avg", "max", "min", "sum", "median"]>;
|
|
2165
|
+
attribute: z.ZodString;
|
|
2166
|
+
}, "strip", z.ZodTypeAny, {
|
|
2167
|
+
attribute: string;
|
|
2168
|
+
method: "avg" | "max" | "min" | "sum" | "median";
|
|
2169
|
+
}, {
|
|
2170
|
+
attribute: string;
|
|
2171
|
+
method: "avg" | "max" | "min" | "sum" | "median";
|
|
2172
|
+
}>>;
|
|
2173
|
+
}, "strip", z.ZodTypeAny, {
|
|
2174
|
+
boundary?: [number, number, number, number] | [number, number][] | {
|
|
2175
|
+
type: "Polygon";
|
|
2176
|
+
coordinates: [number, number][][];
|
|
2177
|
+
} | undefined;
|
|
2178
|
+
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;
|
|
2179
|
+
aggregation?: {
|
|
2180
|
+
attribute: string;
|
|
2181
|
+
method: "avg" | "max" | "min" | "sum" | "median";
|
|
2182
|
+
} | undefined;
|
|
2183
|
+
}, {
|
|
2184
|
+
boundary?: [number, number, number, number] | [number, number][] | {
|
|
2185
|
+
type: "Polygon";
|
|
2186
|
+
coordinates: [number, number][][];
|
|
2187
|
+
} | undefined;
|
|
2188
|
+
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;
|
|
2189
|
+
aggregation?: {
|
|
2190
|
+
attribute: string;
|
|
2191
|
+
method: "avg" | "max" | "min" | "sum" | "median";
|
|
2192
|
+
} | undefined;
|
|
2193
|
+
}>>;
|
|
2194
|
+
}, "strip", z.ZodTypeAny, {
|
|
2195
|
+
attribute: string;
|
|
2196
|
+
layerId: string;
|
|
2197
|
+
values?: {
|
|
2198
|
+
boundary?: [number, number, number, number] | [number, number][] | {
|
|
2199
|
+
type: "Polygon";
|
|
2200
|
+
coordinates: [number, number][][];
|
|
2201
|
+
} | undefined;
|
|
2202
|
+
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;
|
|
2203
|
+
aggregation?: {
|
|
2204
|
+
attribute: string;
|
|
2205
|
+
method: "avg" | "max" | "min" | "sum" | "median";
|
|
2206
|
+
} | undefined;
|
|
2207
|
+
} | undefined;
|
|
2208
|
+
boundary?: [number, number, number, number] | [number, number][] | {
|
|
2209
|
+
type: "Polygon";
|
|
2210
|
+
coordinates: [number, number][][];
|
|
2211
|
+
} | undefined;
|
|
2212
|
+
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;
|
|
2213
|
+
limit?: number | undefined;
|
|
2214
|
+
}, {
|
|
2215
|
+
attribute: string;
|
|
2216
|
+
layerId: string;
|
|
2217
|
+
values?: {
|
|
2218
|
+
boundary?: [number, number, number, number] | [number, number][] | {
|
|
2219
|
+
type: "Polygon";
|
|
2220
|
+
coordinates: [number, number][][];
|
|
2221
|
+
} | undefined;
|
|
2222
|
+
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;
|
|
2223
|
+
aggregation?: {
|
|
2224
|
+
attribute: string;
|
|
2225
|
+
method: "avg" | "max" | "min" | "sum" | "median";
|
|
2226
|
+
} | undefined;
|
|
2227
|
+
} | undefined;
|
|
2228
|
+
boundary?: [number, number, number, number] | [number, number][] | {
|
|
2229
|
+
type: "Polygon";
|
|
2230
|
+
coordinates: [number, number][][];
|
|
2231
|
+
} | undefined;
|
|
2232
|
+
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;
|
|
2233
|
+
limit?: number | undefined;
|
|
2234
|
+
}>;
|
|
2235
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2236
|
+
params: {
|
|
2237
|
+
attribute: string;
|
|
2238
|
+
layerId: string;
|
|
2239
|
+
values?: {
|
|
2240
|
+
boundary?: [number, number, number, number] | [number, number][] | {
|
|
2241
|
+
type: "Polygon";
|
|
2242
|
+
coordinates: [number, number][][];
|
|
2243
|
+
} | undefined;
|
|
2244
|
+
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;
|
|
2245
|
+
aggregation?: {
|
|
2246
|
+
attribute: string;
|
|
2247
|
+
method: "avg" | "max" | "min" | "sum" | "median";
|
|
2248
|
+
} | undefined;
|
|
2249
|
+
} | undefined;
|
|
2250
|
+
boundary?: [number, number, number, number] | [number, number][] | {
|
|
2251
|
+
type: "Polygon";
|
|
2252
|
+
coordinates: [number, number][][];
|
|
2253
|
+
} | undefined;
|
|
2254
|
+
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;
|
|
2255
|
+
limit?: number | undefined;
|
|
2256
|
+
};
|
|
2257
|
+
type: "getCategoryData";
|
|
2258
|
+
}, {
|
|
2259
|
+
params: {
|
|
2260
|
+
attribute: string;
|
|
2261
|
+
layerId: string;
|
|
2262
|
+
values?: {
|
|
2263
|
+
boundary?: [number, number, number, number] | [number, number][] | {
|
|
2264
|
+
type: "Polygon";
|
|
2265
|
+
coordinates: [number, number][][];
|
|
2266
|
+
} | undefined;
|
|
2267
|
+
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;
|
|
2268
|
+
aggregation?: {
|
|
2269
|
+
attribute: string;
|
|
2270
|
+
method: "avg" | "max" | "min" | "sum" | "median";
|
|
2271
|
+
} | undefined;
|
|
2272
|
+
} | undefined;
|
|
2273
|
+
boundary?: [number, number, number, number] | [number, number][] | {
|
|
2274
|
+
type: "Polygon";
|
|
2275
|
+
coordinates: [number, number][][];
|
|
2276
|
+
} | undefined;
|
|
2277
|
+
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;
|
|
2278
|
+
limit?: number | undefined;
|
|
2279
|
+
};
|
|
2280
|
+
type: "getCategoryData";
|
|
2281
|
+
}>;
|
|
2282
|
+
declare const GetLayerHistogramMessage: z.ZodObject<{
|
|
2283
|
+
type: z.ZodLiteral<"getHistogramData">;
|
|
2284
|
+
params: z.ZodObject<{
|
|
2285
|
+
layerId: z.ZodString;
|
|
2286
|
+
attribute: z.ZodString;
|
|
2287
|
+
steps: z.ZodUnion<[z.ZodObject<{
|
|
2288
|
+
type: z.ZodLiteral<"equal-intervals">;
|
|
2289
|
+
count: z.ZodNumber;
|
|
2290
|
+
}, "strip", z.ZodTypeAny, {
|
|
2291
|
+
type: "equal-intervals";
|
|
2292
|
+
count: number;
|
|
2293
|
+
}, {
|
|
2294
|
+
type: "equal-intervals";
|
|
2295
|
+
count: number;
|
|
2296
|
+
}>, z.ZodObject<{
|
|
2297
|
+
type: z.ZodLiteral<"time-interval">;
|
|
2298
|
+
interval: z.ZodEnum<["hour", "day", "week", "month", "year"]>;
|
|
2299
|
+
}, "strip", z.ZodTypeAny, {
|
|
2300
|
+
type: "time-interval";
|
|
2301
|
+
interval: "hour" | "day" | "week" | "month" | "year";
|
|
2302
|
+
}, {
|
|
2303
|
+
type: "time-interval";
|
|
2304
|
+
interval: "hour" | "day" | "week" | "month" | "year";
|
|
2305
|
+
}>, z.ZodArray<z.ZodNumber, "many">]>;
|
|
2306
|
+
boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
|
|
2307
|
+
type: z.ZodLiteral<"Polygon">;
|
|
2308
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
2309
|
+
}, "strip", z.ZodTypeAny, {
|
|
2310
|
+
type: "Polygon";
|
|
2311
|
+
coordinates: [number, number][][];
|
|
2312
|
+
}, {
|
|
2313
|
+
type: "Polygon";
|
|
2314
|
+
coordinates: [number, number][][];
|
|
2315
|
+
}>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]>>;
|
|
2316
|
+
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]>>;
|
|
2317
|
+
values: z.ZodOptional<z.ZodObject<{
|
|
2318
|
+
boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
|
|
2319
|
+
type: z.ZodLiteral<"Polygon">;
|
|
2320
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
2321
|
+
}, "strip", z.ZodTypeAny, {
|
|
2322
|
+
type: "Polygon";
|
|
2323
|
+
coordinates: [number, number][][];
|
|
2324
|
+
}, {
|
|
2325
|
+
type: "Polygon";
|
|
2326
|
+
coordinates: [number, number][][];
|
|
2327
|
+
}>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]>>;
|
|
2328
|
+
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]>>;
|
|
2329
|
+
aggregation: z.ZodOptional<z.ZodObject<{
|
|
2330
|
+
method: z.ZodEnum<["avg", "max", "min", "sum", "median"]>;
|
|
2331
|
+
attribute: z.ZodString;
|
|
2332
|
+
}, "strip", z.ZodTypeAny, {
|
|
2333
|
+
attribute: string;
|
|
2334
|
+
method: "avg" | "max" | "min" | "sum" | "median";
|
|
2335
|
+
}, {
|
|
2336
|
+
attribute: string;
|
|
2337
|
+
method: "avg" | "max" | "min" | "sum" | "median";
|
|
2338
|
+
}>>;
|
|
2339
|
+
}, "strip", z.ZodTypeAny, {
|
|
2340
|
+
boundary?: [number, number, number, number] | [number, number][] | {
|
|
2341
|
+
type: "Polygon";
|
|
2342
|
+
coordinates: [number, number][][];
|
|
2343
|
+
} | undefined;
|
|
2344
|
+
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;
|
|
2345
|
+
aggregation?: {
|
|
2346
|
+
attribute: string;
|
|
2347
|
+
method: "avg" | "max" | "min" | "sum" | "median";
|
|
2348
|
+
} | undefined;
|
|
2349
|
+
}, {
|
|
2350
|
+
boundary?: [number, number, number, number] | [number, number][] | {
|
|
2351
|
+
type: "Polygon";
|
|
2352
|
+
coordinates: [number, number][][];
|
|
2353
|
+
} | undefined;
|
|
2354
|
+
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;
|
|
2355
|
+
aggregation?: {
|
|
2356
|
+
attribute: string;
|
|
2357
|
+
method: "avg" | "max" | "min" | "sum" | "median";
|
|
2358
|
+
} | undefined;
|
|
2359
|
+
}>>;
|
|
2360
|
+
}, "strip", z.ZodTypeAny, {
|
|
2361
|
+
attribute: string;
|
|
2362
|
+
layerId: string;
|
|
2363
|
+
steps: number[] | {
|
|
2364
|
+
type: "equal-intervals";
|
|
2365
|
+
count: number;
|
|
2366
|
+
} | {
|
|
2367
|
+
type: "time-interval";
|
|
2368
|
+
interval: "hour" | "day" | "week" | "month" | "year";
|
|
2369
|
+
};
|
|
2370
|
+
values?: {
|
|
2371
|
+
boundary?: [number, number, number, number] | [number, number][] | {
|
|
2372
|
+
type: "Polygon";
|
|
2373
|
+
coordinates: [number, number][][];
|
|
2374
|
+
} | undefined;
|
|
2375
|
+
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;
|
|
2376
|
+
aggregation?: {
|
|
2377
|
+
attribute: string;
|
|
2378
|
+
method: "avg" | "max" | "min" | "sum" | "median";
|
|
2379
|
+
} | undefined;
|
|
2380
|
+
} | undefined;
|
|
2381
|
+
boundary?: [number, number, number, number] | [number, number][] | {
|
|
2382
|
+
type: "Polygon";
|
|
2383
|
+
coordinates: [number, number][][];
|
|
2384
|
+
} | undefined;
|
|
2385
|
+
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;
|
|
2386
|
+
}, {
|
|
2387
|
+
attribute: string;
|
|
2388
|
+
layerId: string;
|
|
2389
|
+
steps: number[] | {
|
|
2390
|
+
type: "equal-intervals";
|
|
2391
|
+
count: number;
|
|
2392
|
+
} | {
|
|
2393
|
+
type: "time-interval";
|
|
2394
|
+
interval: "hour" | "day" | "week" | "month" | "year";
|
|
2395
|
+
};
|
|
2396
|
+
values?: {
|
|
2397
|
+
boundary?: [number, number, number, number] | [number, number][] | {
|
|
2398
|
+
type: "Polygon";
|
|
2399
|
+
coordinates: [number, number][][];
|
|
2400
|
+
} | undefined;
|
|
2401
|
+
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;
|
|
2402
|
+
aggregation?: {
|
|
2403
|
+
attribute: string;
|
|
2404
|
+
method: "avg" | "max" | "min" | "sum" | "median";
|
|
2405
|
+
} | undefined;
|
|
2406
|
+
} | undefined;
|
|
2407
|
+
boundary?: [number, number, number, number] | [number, number][] | {
|
|
2408
|
+
type: "Polygon";
|
|
2409
|
+
coordinates: [number, number][][];
|
|
2410
|
+
} | undefined;
|
|
2411
|
+
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;
|
|
2412
|
+
}>;
|
|
2413
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2414
|
+
params: {
|
|
2415
|
+
attribute: string;
|
|
2416
|
+
layerId: string;
|
|
2417
|
+
steps: number[] | {
|
|
2418
|
+
type: "equal-intervals";
|
|
2419
|
+
count: number;
|
|
2420
|
+
} | {
|
|
2421
|
+
type: "time-interval";
|
|
2422
|
+
interval: "hour" | "day" | "week" | "month" | "year";
|
|
2423
|
+
};
|
|
2424
|
+
values?: {
|
|
2425
|
+
boundary?: [number, number, number, number] | [number, number][] | {
|
|
2426
|
+
type: "Polygon";
|
|
2427
|
+
coordinates: [number, number][][];
|
|
2428
|
+
} | undefined;
|
|
2429
|
+
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;
|
|
2430
|
+
aggregation?: {
|
|
2431
|
+
attribute: string;
|
|
2432
|
+
method: "avg" | "max" | "min" | "sum" | "median";
|
|
2433
|
+
} | undefined;
|
|
2434
|
+
} | undefined;
|
|
2435
|
+
boundary?: [number, number, number, number] | [number, number][] | {
|
|
2436
|
+
type: "Polygon";
|
|
2437
|
+
coordinates: [number, number][][];
|
|
2438
|
+
} | undefined;
|
|
2439
|
+
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;
|
|
2440
|
+
};
|
|
2441
|
+
type: "getHistogramData";
|
|
2442
|
+
}, {
|
|
2443
|
+
params: {
|
|
2444
|
+
attribute: string;
|
|
2445
|
+
layerId: string;
|
|
2446
|
+
steps: number[] | {
|
|
2447
|
+
type: "equal-intervals";
|
|
2448
|
+
count: number;
|
|
2449
|
+
} | {
|
|
2450
|
+
type: "time-interval";
|
|
2451
|
+
interval: "hour" | "day" | "week" | "month" | "year";
|
|
2452
|
+
};
|
|
2453
|
+
values?: {
|
|
2454
|
+
boundary?: [number, number, number, number] | [number, number][] | {
|
|
2455
|
+
type: "Polygon";
|
|
2456
|
+
coordinates: [number, number][][];
|
|
2457
|
+
} | undefined;
|
|
2458
|
+
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;
|
|
2459
|
+
aggregation?: {
|
|
2460
|
+
attribute: string;
|
|
2461
|
+
method: "avg" | "max" | "min" | "sum" | "median";
|
|
2462
|
+
} | undefined;
|
|
2463
|
+
} | undefined;
|
|
2464
|
+
boundary?: [number, number, number, number] | [number, number][] | {
|
|
2465
|
+
type: "Polygon";
|
|
2466
|
+
coordinates: [number, number][][];
|
|
2467
|
+
} | undefined;
|
|
2468
|
+
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;
|
|
2469
|
+
};
|
|
2470
|
+
type: "getHistogramData";
|
|
2471
|
+
}>;
|
|
2472
|
+
declare const GetLayerCalculationMessage: z.ZodObject<{
|
|
2473
|
+
type: z.ZodLiteral<"getAggregates">;
|
|
2474
|
+
params: z.ZodObject<{
|
|
2475
|
+
layerId: z.ZodString;
|
|
2476
|
+
boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
|
|
2477
|
+
type: z.ZodLiteral<"Polygon">;
|
|
2478
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
2479
|
+
}, "strip", z.ZodTypeAny, {
|
|
2480
|
+
type: "Polygon";
|
|
2481
|
+
coordinates: [number, number][][];
|
|
2482
|
+
}, {
|
|
2483
|
+
type: "Polygon";
|
|
2484
|
+
coordinates: [number, number][][];
|
|
2485
|
+
}>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]>>;
|
|
2486
|
+
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]>>;
|
|
2487
|
+
aggregation: z.ZodObject<{
|
|
2488
|
+
methods: z.ZodArray<z.ZodUnion<[z.ZodEnum<["avg", "max", "min", "sum", "median"]>, z.ZodLiteral<"count">]>, "many">;
|
|
2489
|
+
attribute: z.ZodOptional<z.ZodString>;
|
|
2490
|
+
}, "strip", z.ZodTypeAny, {
|
|
2491
|
+
methods: ("avg" | "max" | "min" | "sum" | "median" | "count")[];
|
|
2492
|
+
attribute?: string | undefined;
|
|
2493
|
+
}, {
|
|
2494
|
+
methods: ("avg" | "max" | "min" | "sum" | "median" | "count")[];
|
|
2495
|
+
attribute?: string | undefined;
|
|
2496
|
+
}>;
|
|
2497
|
+
}, "strip", z.ZodTypeAny, {
|
|
2498
|
+
aggregation: {
|
|
2499
|
+
methods: ("avg" | "max" | "min" | "sum" | "median" | "count")[];
|
|
2500
|
+
attribute?: string | undefined;
|
|
2501
|
+
};
|
|
2502
|
+
layerId: string;
|
|
2503
|
+
boundary?: [number, number, number, number] | [number, number][] | {
|
|
2504
|
+
type: "Polygon";
|
|
2505
|
+
coordinates: [number, number][][];
|
|
2506
|
+
} | undefined;
|
|
2507
|
+
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;
|
|
2508
|
+
}, {
|
|
2509
|
+
aggregation: {
|
|
2510
|
+
methods: ("avg" | "max" | "min" | "sum" | "median" | "count")[];
|
|
2511
|
+
attribute?: string | undefined;
|
|
2512
|
+
};
|
|
2513
|
+
layerId: string;
|
|
2514
|
+
boundary?: [number, number, number, number] | [number, number][] | {
|
|
2515
|
+
type: "Polygon";
|
|
2516
|
+
coordinates: [number, number][][];
|
|
2517
|
+
} | undefined;
|
|
2518
|
+
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;
|
|
2519
|
+
}>;
|
|
2520
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2521
|
+
params: {
|
|
2522
|
+
aggregation: {
|
|
2523
|
+
methods: ("avg" | "max" | "min" | "sum" | "median" | "count")[];
|
|
2524
|
+
attribute?: string | undefined;
|
|
2525
|
+
};
|
|
2526
|
+
layerId: string;
|
|
2527
|
+
boundary?: [number, number, number, number] | [number, number][] | {
|
|
2528
|
+
type: "Polygon";
|
|
2529
|
+
coordinates: [number, number][][];
|
|
2530
|
+
} | undefined;
|
|
2531
|
+
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;
|
|
2532
|
+
};
|
|
2533
|
+
type: "getAggregates";
|
|
2534
|
+
}, {
|
|
2535
|
+
params: {
|
|
2536
|
+
aggregation: {
|
|
2537
|
+
methods: ("avg" | "max" | "min" | "sum" | "median" | "count")[];
|
|
2538
|
+
attribute?: string | undefined;
|
|
2539
|
+
};
|
|
2540
|
+
layerId: string;
|
|
2541
|
+
boundary?: [number, number, number, number] | [number, number][] | {
|
|
2542
|
+
type: "Polygon";
|
|
2543
|
+
coordinates: [number, number][][];
|
|
2544
|
+
} | undefined;
|
|
2545
|
+
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;
|
|
2546
|
+
};
|
|
2547
|
+
type: "getAggregates";
|
|
2548
|
+
}>;
|
|
2549
|
+
declare const GetLayerSchemaMessage: z.ZodObject<{
|
|
2550
|
+
type: z.ZodLiteral<"getLayerSchema">;
|
|
2551
|
+
params: z.ZodString;
|
|
2552
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2553
|
+
params: string;
|
|
2554
|
+
type: "getLayerSchema";
|
|
2555
|
+
}, {
|
|
2556
|
+
params: string;
|
|
2557
|
+
type: "getLayerSchema";
|
|
2558
|
+
}>;
|
|
706
2559
|
type LayersSchema = {
|
|
707
2560
|
methods: {
|
|
708
2561
|
getLayer: Method<zInfer<typeof GetLayerMessage>, Layer | null>;
|
|
@@ -719,13 +2572,37 @@ type LayersSchema = {
|
|
|
719
2572
|
setLegendItemVisibility: Method<zInfer<typeof SetLegendItemVisibilityMessage>, void>;
|
|
720
2573
|
getLayerFilters: Method<zInfer<typeof GetFiltersMessage>, LayerFilters | null>;
|
|
721
2574
|
setLayerFilters: Method<zInfer<typeof SetFiltersMessage>, void>;
|
|
722
|
-
getRenderedFeatures: Method<zInfer<typeof GetRenderedFeaturesMessage>, Array<
|
|
2575
|
+
getRenderedFeatures: Method<zInfer<typeof GetRenderedFeaturesMessage>, Array<LayerFeature>>;
|
|
2576
|
+
getFeature: Method<zInfer<typeof GetFeatureMessage>, LayerFeature | null>;
|
|
2577
|
+
getGeoJsonFeature: Method<zInfer<typeof GetGeoJsonFeatureMessage>, GeoJsonFeature | null>;
|
|
2578
|
+
getCategoryData: Method<zInfer<typeof GetLayerCategoriesMessage>, Array<GetLayerCategoriesGroup>>;
|
|
2579
|
+
getHistogramData: Method<zInfer<typeof GetLayerHistogramMessage>, Array<GetLayerHistogramBin>>;
|
|
2580
|
+
getAggregates: Method<zInfer<typeof GetLayerCalculationMessage>, Record<AggregationMethod | "count", number | null>>;
|
|
2581
|
+
getLayerSchema: Method<zInfer<typeof GetLayerSchemaMessage>, LayerSchema>;
|
|
723
2582
|
};
|
|
724
2583
|
listeners: {
|
|
725
2584
|
onLayerChange: Listener<zInfer<typeof OnLayerChangeMessage.shape.options>, LayerChangeCallbackParams>;
|
|
726
2585
|
onLayerGroupChange: Listener<zInfer<typeof OnLayerGroupChangeMessage.shape.options>, LayerGroupChangeCallbackParams>;
|
|
727
2586
|
onLegendItemChange: Listener<zInfer<typeof OnLegendItemChangeMessage.shape.options>, LegendItemChangeCallbackParams>;
|
|
2587
|
+
onLayerFiltersChange: Listener<zInfer<typeof OnLayerFiltersChangeMessage.shape.options>, LayerFilters>;
|
|
2588
|
+
};
|
|
2589
|
+
};
|
|
2590
|
+
|
|
2591
|
+
declare const GetMapDetailsMessage: z.ZodObject<{
|
|
2592
|
+
type: z.ZodLiteral<"getMapDetails">;
|
|
2593
|
+
params: z.ZodUndefined;
|
|
2594
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2595
|
+
type: "getMapDetails";
|
|
2596
|
+
params?: undefined;
|
|
2597
|
+
}, {
|
|
2598
|
+
type: "getMapDetails";
|
|
2599
|
+
params?: undefined;
|
|
2600
|
+
}>;
|
|
2601
|
+
type MiscSchema = {
|
|
2602
|
+
methods: {
|
|
2603
|
+
getMapDetails: Method<zInfer<typeof GetMapDetailsMessage>, MapDetails>;
|
|
728
2604
|
};
|
|
2605
|
+
listeners: {};
|
|
729
2606
|
};
|
|
730
2607
|
|
|
731
2608
|
declare const GetSelectionMessage: z.ZodObject<{
|
|
@@ -819,7 +2696,7 @@ type SelectionSchema = {
|
|
|
819
2696
|
clearSelection: Method<zInfer<typeof ClearSelectionMessage>, void>;
|
|
820
2697
|
};
|
|
821
2698
|
listeners: {
|
|
822
|
-
onSelectionChange:
|
|
2699
|
+
onSelectionChange: ListenerNoOptions<{
|
|
823
2700
|
selection: Array<EntityNode>;
|
|
824
2701
|
}>;
|
|
825
2702
|
};
|
|
@@ -829,10 +2706,10 @@ declare const SetToolMessage: z.ZodObject<{
|
|
|
829
2706
|
type: z.ZodLiteral<"setTool">;
|
|
830
2707
|
params: z.ZodNullable<z.ZodEnum<["pin", "line", "route", "polygon", "circle", "marker", "highlighter", "text", "note", "link"]>>;
|
|
831
2708
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
832
|
-
params: "link" | "note" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter" |
|
|
2709
|
+
params: "text" | "link" | "note" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter" | null;
|
|
833
2710
|
type: "setTool";
|
|
834
2711
|
}, {
|
|
835
|
-
params: "link" | "note" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter" |
|
|
2712
|
+
params: "text" | "link" | "note" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter" | null;
|
|
836
2713
|
type: "setTool";
|
|
837
2714
|
}>;
|
|
838
2715
|
declare const GetToolMessage: z.ZodObject<{
|
|
@@ -848,9 +2725,10 @@ declare const GetToolMessage: z.ZodObject<{
|
|
|
848
2725
|
declare const SetToolSettingsMessage: z.ZodObject<{
|
|
849
2726
|
type: z.ZodLiteral<"setToolSettings">;
|
|
850
2727
|
params: z.ZodDiscriminatedUnion<"tool", [z.ZodObject<z.objectUtil.extendShape<{
|
|
851
|
-
color: z.ZodOptional<z.ZodString>;
|
|
852
2728
|
symbol: z.ZodOptional<z.ZodString>;
|
|
2729
|
+
color: z.ZodOptional<z.ZodString>;
|
|
853
2730
|
frame: z.ZodOptional<z.ZodNullable<z.ZodEnum<["frame-circle", "frame-square"]>>>;
|
|
2731
|
+
afterCreation: z.ZodOptional<z.ZodEnum<["enter name", "add another", "select"]>>;
|
|
854
2732
|
}, {
|
|
855
2733
|
tool: z.ZodLiteral<"pin">;
|
|
856
2734
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -858,11 +2736,13 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
858
2736
|
symbol?: string | undefined;
|
|
859
2737
|
color?: string | undefined;
|
|
860
2738
|
frame?: "frame-circle" | "frame-square" | null | undefined;
|
|
2739
|
+
afterCreation?: "enter name" | "add another" | "select" | undefined;
|
|
861
2740
|
}, {
|
|
862
2741
|
tool: "pin";
|
|
863
2742
|
symbol?: string | undefined;
|
|
864
2743
|
color?: string | undefined;
|
|
865
2744
|
frame?: "frame-circle" | "frame-square" | null | undefined;
|
|
2745
|
+
afterCreation?: "enter name" | "add another" | "select" | undefined;
|
|
866
2746
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
867
2747
|
color: z.ZodOptional<z.ZodString>;
|
|
868
2748
|
strokeOpacity: z.ZodOptional<z.ZodNumber>;
|
|
@@ -887,12 +2767,12 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
887
2767
|
distanceMarker?: boolean | undefined;
|
|
888
2768
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
889
2769
|
color: z.ZodOptional<z.ZodString>;
|
|
890
|
-
routingMode: z.ZodOptional<z.ZodEnum<["driving", "cycling", "walking", "flying"]>>;
|
|
891
2770
|
strokeOpacity: z.ZodOptional<z.ZodNumber>;
|
|
892
2771
|
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
893
2772
|
strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
894
2773
|
distanceMarker: z.ZodOptional<z.ZodBoolean>;
|
|
895
2774
|
endCaps: z.ZodOptional<z.ZodBoolean>;
|
|
2775
|
+
routingMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["driving", "cycling", "walking", "flying"]>>>;
|
|
896
2776
|
}, {
|
|
897
2777
|
tool: z.ZodLiteral<"route">;
|
|
898
2778
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -902,8 +2782,8 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
902
2782
|
strokeWidth?: number | undefined;
|
|
903
2783
|
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
904
2784
|
distanceMarker?: boolean | undefined;
|
|
905
|
-
routingMode?: "driving" | "cycling" | "walking" | "flying" | undefined;
|
|
906
2785
|
endCaps?: boolean | undefined;
|
|
2786
|
+
routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
|
|
907
2787
|
}, {
|
|
908
2788
|
tool: "route";
|
|
909
2789
|
color?: string | undefined;
|
|
@@ -911,14 +2791,14 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
911
2791
|
strokeWidth?: number | undefined;
|
|
912
2792
|
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
913
2793
|
distanceMarker?: boolean | undefined;
|
|
914
|
-
routingMode?: "driving" | "cycling" | "walking" | "flying" | undefined;
|
|
915
2794
|
endCaps?: boolean | undefined;
|
|
2795
|
+
routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
|
|
916
2796
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
917
2797
|
color: z.ZodOptional<z.ZodString>;
|
|
918
|
-
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
919
2798
|
strokeOpacity: z.ZodOptional<z.ZodNumber>;
|
|
920
2799
|
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
921
2800
|
strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
2801
|
+
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
922
2802
|
areaMarker: z.ZodOptional<z.ZodBoolean>;
|
|
923
2803
|
}, {
|
|
924
2804
|
tool: z.ZodLiteral<"polygon">;
|
|
@@ -940,10 +2820,10 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
940
2820
|
areaMarker?: boolean | undefined;
|
|
941
2821
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
942
2822
|
color: z.ZodOptional<z.ZodString>;
|
|
943
|
-
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
944
2823
|
strokeOpacity: z.ZodOptional<z.ZodNumber>;
|
|
945
2824
|
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
946
2825
|
strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
2826
|
+
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
947
2827
|
radiusMarker: z.ZodOptional<z.ZodBoolean>;
|
|
948
2828
|
}, {
|
|
949
2829
|
tool: z.ZodLiteral<"circle">;
|
|
@@ -1003,14 +2883,14 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
1003
2883
|
tool: z.ZodLiteral<"text">;
|
|
1004
2884
|
}>, "strip", z.ZodTypeAny, {
|
|
1005
2885
|
tool: "text";
|
|
1006
|
-
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1007
2886
|
color?: string | undefined;
|
|
1008
|
-
align?: "
|
|
2887
|
+
align?: "left" | "center" | "right" | undefined;
|
|
2888
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1009
2889
|
}, {
|
|
1010
2890
|
tool: "text";
|
|
1011
|
-
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1012
2891
|
color?: string | undefined;
|
|
1013
|
-
align?: "
|
|
2892
|
+
align?: "left" | "center" | "right" | undefined;
|
|
2893
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1014
2894
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
1015
2895
|
color: z.ZodOptional<z.ZodString>;
|
|
1016
2896
|
align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
@@ -1019,14 +2899,14 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
1019
2899
|
tool: z.ZodLiteral<"note">;
|
|
1020
2900
|
}>, "strip", z.ZodTypeAny, {
|
|
1021
2901
|
tool: "note";
|
|
1022
|
-
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1023
2902
|
color?: string | undefined;
|
|
1024
|
-
align?: "
|
|
2903
|
+
align?: "left" | "center" | "right" | undefined;
|
|
2904
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1025
2905
|
}, {
|
|
1026
2906
|
tool: "note";
|
|
1027
|
-
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1028
2907
|
color?: string | undefined;
|
|
1029
|
-
align?: "
|
|
2908
|
+
align?: "left" | "center" | "right" | undefined;
|
|
2909
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1030
2910
|
}>]>;
|
|
1031
2911
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1032
2912
|
params: {
|
|
@@ -1034,6 +2914,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
1034
2914
|
symbol?: string | undefined;
|
|
1035
2915
|
color?: string | undefined;
|
|
1036
2916
|
frame?: "frame-circle" | "frame-square" | null | undefined;
|
|
2917
|
+
afterCreation?: "enter name" | "add another" | "select" | undefined;
|
|
1037
2918
|
} | {
|
|
1038
2919
|
tool: "line";
|
|
1039
2920
|
color?: string | undefined;
|
|
@@ -1048,8 +2929,8 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
1048
2929
|
strokeWidth?: number | undefined;
|
|
1049
2930
|
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
1050
2931
|
distanceMarker?: boolean | undefined;
|
|
1051
|
-
routingMode?: "driving" | "cycling" | "walking" | "flying" | undefined;
|
|
1052
2932
|
endCaps?: boolean | undefined;
|
|
2933
|
+
routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
|
|
1053
2934
|
} | {
|
|
1054
2935
|
tool: "polygon";
|
|
1055
2936
|
color?: string | undefined;
|
|
@@ -1078,14 +2959,14 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
1078
2959
|
size?: number | undefined;
|
|
1079
2960
|
} | {
|
|
1080
2961
|
tool: "text";
|
|
1081
|
-
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1082
2962
|
color?: string | undefined;
|
|
1083
|
-
align?: "
|
|
2963
|
+
align?: "left" | "center" | "right" | undefined;
|
|
2964
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1084
2965
|
} | {
|
|
1085
2966
|
tool: "note";
|
|
1086
|
-
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1087
2967
|
color?: string | undefined;
|
|
1088
|
-
align?: "
|
|
2968
|
+
align?: "left" | "center" | "right" | undefined;
|
|
2969
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1089
2970
|
};
|
|
1090
2971
|
type: "setToolSettings";
|
|
1091
2972
|
}, {
|
|
@@ -1094,6 +2975,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
1094
2975
|
symbol?: string | undefined;
|
|
1095
2976
|
color?: string | undefined;
|
|
1096
2977
|
frame?: "frame-circle" | "frame-square" | null | undefined;
|
|
2978
|
+
afterCreation?: "enter name" | "add another" | "select" | undefined;
|
|
1097
2979
|
} | {
|
|
1098
2980
|
tool: "line";
|
|
1099
2981
|
color?: string | undefined;
|
|
@@ -1108,8 +2990,8 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
1108
2990
|
strokeWidth?: number | undefined;
|
|
1109
2991
|
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
1110
2992
|
distanceMarker?: boolean | undefined;
|
|
1111
|
-
routingMode?: "driving" | "cycling" | "walking" | "flying" | undefined;
|
|
1112
2993
|
endCaps?: boolean | undefined;
|
|
2994
|
+
routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
|
|
1113
2995
|
} | {
|
|
1114
2996
|
tool: "polygon";
|
|
1115
2997
|
color?: string | undefined;
|
|
@@ -1138,14 +3020,14 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
1138
3020
|
size?: number | undefined;
|
|
1139
3021
|
} | {
|
|
1140
3022
|
tool: "text";
|
|
1141
|
-
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1142
3023
|
color?: string | undefined;
|
|
1143
|
-
align?: "
|
|
3024
|
+
align?: "left" | "center" | "right" | undefined;
|
|
3025
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1144
3026
|
} | {
|
|
1145
3027
|
tool: "note";
|
|
1146
|
-
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1147
3028
|
color?: string | undefined;
|
|
1148
|
-
align?: "
|
|
3029
|
+
align?: "left" | "center" | "right" | undefined;
|
|
3030
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1149
3031
|
};
|
|
1150
3032
|
type: "setToolSettings";
|
|
1151
3033
|
}>;
|
|
@@ -1153,10 +3035,10 @@ declare const GetToolSettingsMessage: z.ZodObject<{
|
|
|
1153
3035
|
type: z.ZodLiteral<"getToolSettings">;
|
|
1154
3036
|
params: z.ZodEnum<["pin", "line", "route", "polygon", "circle", "marker", "highlighter", "text", "note"]>;
|
|
1155
3037
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1156
|
-
params: "note" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter"
|
|
3038
|
+
params: "text" | "note" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter";
|
|
1157
3039
|
type: "getToolSettings";
|
|
1158
3040
|
}, {
|
|
1159
|
-
params: "note" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter"
|
|
3041
|
+
params: "text" | "note" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter";
|
|
1160
3042
|
type: "getToolSettings";
|
|
1161
3043
|
}>;
|
|
1162
3044
|
type ToolsSchema = {
|
|
@@ -1167,21 +3049,21 @@ type ToolsSchema = {
|
|
|
1167
3049
|
getToolSettings: Method<zInfer<typeof GetToolSettingsMessage>, ToolSettingsMap[keyof ToolSettingsMap]>;
|
|
1168
3050
|
};
|
|
1169
3051
|
listeners: {
|
|
1170
|
-
onToolChange:
|
|
1171
|
-
onToolSettingsChange:
|
|
3052
|
+
onToolChange: ListenerNoOptions<ToolType | null>;
|
|
3053
|
+
onToolSettingsChange: ListenerNoOptions<ToolSettingsChangeEvent>;
|
|
1172
3054
|
};
|
|
1173
3055
|
};
|
|
1174
3056
|
|
|
1175
|
-
declare const UiControlsMessage:
|
|
1176
|
-
type:
|
|
1177
|
-
params:
|
|
1178
|
-
showLegend:
|
|
1179
|
-
cooperativeGestures:
|
|
1180
|
-
fullScreenButton:
|
|
1181
|
-
geolocation:
|
|
1182
|
-
zoomControls:
|
|
1183
|
-
scaleBar:
|
|
1184
|
-
}, "strip",
|
|
3057
|
+
declare const UiControlsMessage: z.ZodObject<{
|
|
3058
|
+
type: z.ZodLiteral<"updateUiControls">;
|
|
3059
|
+
params: z.ZodObject<{
|
|
3060
|
+
showLegend: z.ZodOptional<z.ZodBoolean>;
|
|
3061
|
+
cooperativeGestures: z.ZodOptional<z.ZodBoolean>;
|
|
3062
|
+
fullScreenButton: z.ZodOptional<z.ZodBoolean>;
|
|
3063
|
+
geolocation: z.ZodOptional<z.ZodBoolean>;
|
|
3064
|
+
zoomControls: z.ZodOptional<z.ZodBoolean>;
|
|
3065
|
+
scaleBar: z.ZodOptional<z.ZodBoolean>;
|
|
3066
|
+
}, "strip", z.ZodTypeAny, {
|
|
1185
3067
|
showLegend?: boolean | undefined;
|
|
1186
3068
|
cooperativeGestures?: boolean | undefined;
|
|
1187
3069
|
fullScreenButton?: boolean | undefined;
|
|
@@ -1196,7 +3078,7 @@ declare const UiControlsMessage: zod.ZodObject<{
|
|
|
1196
3078
|
zoomControls?: boolean | undefined;
|
|
1197
3079
|
scaleBar?: boolean | undefined;
|
|
1198
3080
|
}>;
|
|
1199
|
-
},
|
|
3081
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1200
3082
|
params: {
|
|
1201
3083
|
showLegend?: boolean | undefined;
|
|
1202
3084
|
cooperativeGestures?: boolean | undefined;
|
|
@@ -1217,15 +3099,15 @@ declare const UiControlsMessage: zod.ZodObject<{
|
|
|
1217
3099
|
};
|
|
1218
3100
|
type: "updateUiControls";
|
|
1219
3101
|
}>;
|
|
1220
|
-
declare const OnMapInteractionsMessage:
|
|
1221
|
-
type:
|
|
1222
|
-
params:
|
|
1223
|
-
featureSelectPanel:
|
|
1224
|
-
featureHoverPanel:
|
|
1225
|
-
elementSelectPanel:
|
|
1226
|
-
linkClickOpen:
|
|
1227
|
-
imageLightboxOpen:
|
|
1228
|
-
}, "strip",
|
|
3102
|
+
declare const OnMapInteractionsMessage: z.ZodObject<{
|
|
3103
|
+
type: z.ZodLiteral<"setOnMapInteractionsUi">;
|
|
3104
|
+
params: z.ZodObject<{
|
|
3105
|
+
featureSelectPanel: z.ZodOptional<z.ZodBoolean>;
|
|
3106
|
+
featureHoverPanel: z.ZodOptional<z.ZodBoolean>;
|
|
3107
|
+
elementSelectPanel: z.ZodOptional<z.ZodBoolean>;
|
|
3108
|
+
linkClickOpen: z.ZodOptional<z.ZodBoolean>;
|
|
3109
|
+
imageLightboxOpen: z.ZodOptional<z.ZodBoolean>;
|
|
3110
|
+
}, "strip", z.ZodTypeAny, {
|
|
1229
3111
|
featureSelectPanel?: boolean | undefined;
|
|
1230
3112
|
featureHoverPanel?: boolean | undefined;
|
|
1231
3113
|
elementSelectPanel?: boolean | undefined;
|
|
@@ -1238,7 +3120,7 @@ declare const OnMapInteractionsMessage: zod.ZodObject<{
|
|
|
1238
3120
|
linkClickOpen?: boolean | undefined;
|
|
1239
3121
|
imageLightboxOpen?: boolean | undefined;
|
|
1240
3122
|
}>;
|
|
1241
|
-
},
|
|
3123
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1242
3124
|
params: {
|
|
1243
3125
|
featureSelectPanel?: boolean | undefined;
|
|
1244
3126
|
featureHoverPanel?: boolean | undefined;
|
|
@@ -1257,10 +3139,68 @@ declare const OnMapInteractionsMessage: zod.ZodObject<{
|
|
|
1257
3139
|
};
|
|
1258
3140
|
type: "setOnMapInteractionsUi";
|
|
1259
3141
|
}>;
|
|
3142
|
+
declare const ShowLayerDataTableMessage: z.ZodObject<{
|
|
3143
|
+
type: z.ZodLiteral<"showLayerDataTable">;
|
|
3144
|
+
params: z.ZodOptional<z.ZodObject<{
|
|
3145
|
+
layerId: z.ZodString;
|
|
3146
|
+
sorting: z.ZodOptional<z.ZodObject<{
|
|
3147
|
+
attribute: z.ZodString;
|
|
3148
|
+
direction: z.ZodEnum<["asc", "desc"]>;
|
|
3149
|
+
}, "strip", z.ZodTypeAny, {
|
|
3150
|
+
attribute: string;
|
|
3151
|
+
direction: "asc" | "desc";
|
|
3152
|
+
}, {
|
|
3153
|
+
attribute: string;
|
|
3154
|
+
direction: "asc" | "desc";
|
|
3155
|
+
}>>;
|
|
3156
|
+
}, "strip", z.ZodTypeAny, {
|
|
3157
|
+
layerId: string;
|
|
3158
|
+
sorting?: {
|
|
3159
|
+
attribute: string;
|
|
3160
|
+
direction: "asc" | "desc";
|
|
3161
|
+
} | undefined;
|
|
3162
|
+
}, {
|
|
3163
|
+
layerId: string;
|
|
3164
|
+
sorting?: {
|
|
3165
|
+
attribute: string;
|
|
3166
|
+
direction: "asc" | "desc";
|
|
3167
|
+
} | undefined;
|
|
3168
|
+
}>>;
|
|
3169
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
3170
|
+
type: "showLayerDataTable";
|
|
3171
|
+
params?: {
|
|
3172
|
+
layerId: string;
|
|
3173
|
+
sorting?: {
|
|
3174
|
+
attribute: string;
|
|
3175
|
+
direction: "asc" | "desc";
|
|
3176
|
+
} | undefined;
|
|
3177
|
+
} | undefined;
|
|
3178
|
+
}, {
|
|
3179
|
+
type: "showLayerDataTable";
|
|
3180
|
+
params?: {
|
|
3181
|
+
layerId: string;
|
|
3182
|
+
sorting?: {
|
|
3183
|
+
attribute: string;
|
|
3184
|
+
direction: "asc" | "desc";
|
|
3185
|
+
} | undefined;
|
|
3186
|
+
} | undefined;
|
|
3187
|
+
}>;
|
|
3188
|
+
declare const HideLayerDataTableMessage: z.ZodObject<{
|
|
3189
|
+
type: z.ZodLiteral<"hideLayerDataTable">;
|
|
3190
|
+
params: z.ZodUndefined;
|
|
3191
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
3192
|
+
type: "hideLayerDataTable";
|
|
3193
|
+
params?: undefined;
|
|
3194
|
+
}, {
|
|
3195
|
+
type: "hideLayerDataTable";
|
|
3196
|
+
params?: undefined;
|
|
3197
|
+
}>;
|
|
1260
3198
|
type UiSchema = {
|
|
1261
3199
|
methods: {
|
|
1262
3200
|
updateUiControls: Method<zInfer<typeof UiControlsMessage>, void>;
|
|
1263
3201
|
setOnMapInteractionsUi: Method<zInfer<typeof OnMapInteractionsMessage>, void>;
|
|
3202
|
+
showLayerDataTable: Method<zInfer<typeof ShowLayerDataTableMessage>, void>;
|
|
3203
|
+
hideLayerDataTable: Method<zInfer<typeof HideLayerDataTableMessage>, void>;
|
|
1264
3204
|
};
|
|
1265
3205
|
listeners: {};
|
|
1266
3206
|
};
|
|
@@ -1290,37 +3230,77 @@ declare const GotoViewportMessage: z.ZodObject<{
|
|
|
1290
3230
|
}>>;
|
|
1291
3231
|
zoom: z.ZodOptional<z.ZodNumber>;
|
|
1292
3232
|
}, "strip", z.ZodTypeAny, {
|
|
3233
|
+
zoom?: number | undefined;
|
|
1293
3234
|
center?: {
|
|
1294
3235
|
latitude: number;
|
|
1295
3236
|
longitude: number;
|
|
1296
3237
|
} | undefined;
|
|
1297
|
-
zoom?: number | undefined;
|
|
1298
3238
|
}, {
|
|
3239
|
+
zoom?: number | undefined;
|
|
1299
3240
|
center?: {
|
|
1300
3241
|
latitude: number;
|
|
1301
3242
|
longitude: number;
|
|
1302
3243
|
} | undefined;
|
|
1303
|
-
zoom?: number | undefined;
|
|
1304
3244
|
}>;
|
|
1305
3245
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1306
3246
|
params: {
|
|
3247
|
+
zoom?: number | undefined;
|
|
1307
3248
|
center?: {
|
|
1308
3249
|
latitude: number;
|
|
1309
3250
|
longitude: number;
|
|
1310
3251
|
} | undefined;
|
|
1311
|
-
zoom?: number | undefined;
|
|
1312
3252
|
};
|
|
1313
3253
|
type: "setViewport";
|
|
1314
3254
|
}, {
|
|
1315
3255
|
params: {
|
|
3256
|
+
zoom?: number | undefined;
|
|
1316
3257
|
center?: {
|
|
1317
3258
|
latitude: number;
|
|
1318
3259
|
longitude: number;
|
|
1319
3260
|
} | undefined;
|
|
1320
|
-
zoom?: number | undefined;
|
|
1321
3261
|
};
|
|
1322
3262
|
type: "setViewport";
|
|
1323
3263
|
}>;
|
|
3264
|
+
declare const GetViewportConstraintsMessage: z.ZodObject<{
|
|
3265
|
+
type: z.ZodLiteral<"getViewportConstraints">;
|
|
3266
|
+
params: z.ZodUndefined;
|
|
3267
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
3268
|
+
type: "getViewportConstraints";
|
|
3269
|
+
params?: undefined;
|
|
3270
|
+
}, {
|
|
3271
|
+
type: "getViewportConstraints";
|
|
3272
|
+
params?: undefined;
|
|
3273
|
+
}>;
|
|
3274
|
+
declare const SetViewportConstraintsMessage: z.ZodObject<{
|
|
3275
|
+
type: z.ZodLiteral<"setViewportConstraints">;
|
|
3276
|
+
params: z.ZodNullable<z.ZodObject<{
|
|
3277
|
+
minZoom: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3278
|
+
maxZoom: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3279
|
+
bounds: z.ZodOptional<z.ZodNullable<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>>;
|
|
3280
|
+
}, "strip", z.ZodTypeAny, {
|
|
3281
|
+
minZoom?: number | null | undefined;
|
|
3282
|
+
maxZoom?: number | null | undefined;
|
|
3283
|
+
bounds?: [number, number, number, number] | null | undefined;
|
|
3284
|
+
}, {
|
|
3285
|
+
minZoom?: number | null | undefined;
|
|
3286
|
+
maxZoom?: number | null | undefined;
|
|
3287
|
+
bounds?: [number, number, number, number] | null | undefined;
|
|
3288
|
+
}>>;
|
|
3289
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
3290
|
+
params: {
|
|
3291
|
+
minZoom?: number | null | undefined;
|
|
3292
|
+
maxZoom?: number | null | undefined;
|
|
3293
|
+
bounds?: [number, number, number, number] | null | undefined;
|
|
3294
|
+
} | null;
|
|
3295
|
+
type: "setViewportConstraints";
|
|
3296
|
+
}, {
|
|
3297
|
+
params: {
|
|
3298
|
+
minZoom?: number | null | undefined;
|
|
3299
|
+
maxZoom?: number | null | undefined;
|
|
3300
|
+
bounds?: [number, number, number, number] | null | undefined;
|
|
3301
|
+
} | null;
|
|
3302
|
+
type: "setViewportConstraints";
|
|
3303
|
+
}>;
|
|
1324
3304
|
declare const ViewportFitBoundsMessage: z.ZodObject<{
|
|
1325
3305
|
type: z.ZodLiteral<"fitViewportToBounds">;
|
|
1326
3306
|
params: z.ZodObject<{
|
|
@@ -1345,16 +3325,18 @@ type ViewportSchema = {
|
|
|
1345
3325
|
methods: {
|
|
1346
3326
|
getViewport: Method<zInfer<typeof GetViewportMessage>, ViewportState>;
|
|
1347
3327
|
setViewport: Method<zInfer<typeof GotoViewportMessage>, void>;
|
|
3328
|
+
getViewportConstraints: Method<zInfer<typeof GetViewportConstraintsMessage>, ViewportConstraints | null>;
|
|
3329
|
+
setViewportConstraints: Method<zInfer<typeof SetViewportConstraintsMessage>, void>;
|
|
1348
3330
|
fitViewportToBounds: Method<zInfer<typeof ViewportFitBoundsMessage>, void>;
|
|
1349
3331
|
};
|
|
1350
3332
|
listeners: {
|
|
1351
|
-
onViewportMove:
|
|
1352
|
-
onViewportMoveEnd:
|
|
1353
|
-
onMapIdle:
|
|
3333
|
+
onViewportMove: ListenerNoOptions<ViewportState>;
|
|
3334
|
+
onViewportMoveEnd: ListenerNoOptions<ViewportState>;
|
|
3335
|
+
onMapIdle: ListenerNoOptions<void>;
|
|
1354
3336
|
};
|
|
1355
3337
|
};
|
|
1356
3338
|
|
|
1357
|
-
type AllModules = UiSchema | ViewportSchema | LayersSchema | ElementsSchema | SelectionSchema | InteractionsSchema | ToolsSchema;
|
|
3339
|
+
type AllModules = UiSchema | ViewportSchema | LayersSchema | ElementsSchema | SelectionSchema | InteractionsSchema | ToolsSchema | InteractionsSchema | MiscSchema;
|
|
1358
3340
|
|
|
1359
3341
|
type FeltHandlers = {
|
|
1360
3342
|
methods: FeltMethodHandlers;
|
|
@@ -1381,10 +3363,16 @@ type ExtractMethodParams<T extends Record<string, AnyFunction | {
|
|
|
1381
3363
|
type ExtractListenerParams<T extends Record<string, {
|
|
1382
3364
|
options: any;
|
|
1383
3365
|
eventParams: any;
|
|
3366
|
+
} | {
|
|
3367
|
+
eventParams: any;
|
|
1384
3368
|
}>> = {
|
|
1385
|
-
[K in keyof T]: {
|
|
3369
|
+
[K in keyof T]: T[K] extends {
|
|
3370
|
+
options: any;
|
|
3371
|
+
} ? {
|
|
1386
3372
|
options: T[K]["options"];
|
|
1387
3373
|
eventParams: T[K]["eventParams"];
|
|
3374
|
+
} : {
|
|
3375
|
+
eventParams: T[K]["eventParams"];
|
|
1388
3376
|
};
|
|
1389
3377
|
};
|
|
1390
3378
|
type AnyFunction = (...args: any[]) => any;
|
|
@@ -1397,13 +3385,17 @@ type MethodHandlers<T> = {
|
|
|
1397
3385
|
};
|
|
1398
3386
|
type FeltMethodHandlers = MethodHandlers<ExtractMethodParams<MethodSpec>>;
|
|
1399
3387
|
type ListenerHandlers<T> = {
|
|
1400
|
-
[K in keyof T]: (args: {
|
|
3388
|
+
[K in keyof T]: (args: T[K] extends {
|
|
3389
|
+
options: any;
|
|
3390
|
+
} ? {
|
|
3391
|
+
handler: (event: T[K] extends {
|
|
3392
|
+
eventParams: any;
|
|
3393
|
+
} ? T[K]["eventParams"] : never) => void;
|
|
3394
|
+
options: T[K]["options"];
|
|
3395
|
+
} : {
|
|
1401
3396
|
handler: (event: T[K] extends {
|
|
1402
3397
|
eventParams: any;
|
|
1403
3398
|
} ? T[K]["eventParams"] : never) => void;
|
|
1404
|
-
options: T[K] extends {
|
|
1405
|
-
options: any;
|
|
1406
|
-
} ? T[K]["options"] : never;
|
|
1407
3399
|
}) => VoidFunction;
|
|
1408
3400
|
};
|
|
1409
3401
|
type FeltListenerHandlers = ListenerHandlers<ExtractListenerParams<ListenerSpec>>;
|