@agentic-ui-experience/ui-arcgis 0.0.1-beta.3 → 0.0.1-beta.5
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/README.md +148 -4
- package/dist/ArcGISMapGraphicsController.d.ts +44 -0
- package/dist/ArcGISMapGraphicsController.js +1 -0
- package/dist/ArcGISMapView.d.ts +17 -2
- package/dist/ArcGISMapView.js +1 -1
- package/dist/api.d.ts +549 -0
- package/dist/api.js +1 -1
- package/dist/catalog.d.ts +324 -0
- package/dist/catalog.js +1 -1
- package/dist/controller/api.d.ts +320 -42
- package/dist/controller/api.js +1 -1
- package/dist/controller/createArcGISMapController.js +1 -1
- package/dist/controller/featureFilter.d.ts +425 -0
- package/dist/controller/featureFilter.js +1 -0
- package/dist/controller/featureFilterExpression.d.ts +16 -0
- package/dist/controller/featureFilterExpression.js +1 -0
- package/dist/controller/featureFilterRuntime.d.ts +19 -0
- package/dist/controller/featureFilterRuntime.js +1 -0
- package/dist/controller/featureQuery.d.ts +275 -0
- package/dist/controller/featureQuery.js +1 -0
- package/dist/controller/featureQueryExpression.d.ts +16 -0
- package/dist/controller/featureQueryExpression.js +1 -0
- package/dist/controller/featureQueryRuntime.d.ts +12 -0
- package/dist/controller/featureQueryRuntime.js +1 -0
- package/dist/controller/useArcGISMapController.js +1 -1
- package/dist/graphics.d.ts +38 -0
- package/dist/graphics.js +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1 -1
- package/dist/prompt.js +1 -1
- package/package.json +4 -4
package/dist/controller/api.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import type { ArcGISClearFeatureFilterRequest, ArcGISClearFeatureFilterResult, ArcGISFeatureFilterRequest, ArcGISFeatureLayerDescriptionResult, ArcGISFeatureOperationOptions, ArcGISSetFeatureFilterResult, ArcGISValidateFeatureFilterResult } from "./featureFilter.js";
|
|
3
|
+
import type { ArcGISFeatureQueryRequest, ArcGISFeatureQueryResult } from "./featureQuery.js";
|
|
4
|
+
export type { ArcGISFeatureQueryErrorCode, ArcGISFeatureQueryRequest, ArcGISFeatureQueryResult } from "./featureQuery.js";
|
|
2
5
|
export declare const ArcGISMapSnapshotSchema: z.ZodObject<{
|
|
3
6
|
map: z.ZodObject<{
|
|
4
7
|
itemId: z.ZodOptional<z.ZodString>;
|
|
@@ -46,13 +49,13 @@ export declare const ArcGISMapSnapshotSchema: z.ZodObject<{
|
|
|
46
49
|
}, "strict", z.ZodTypeAny, {
|
|
47
50
|
type: string;
|
|
48
51
|
title: string;
|
|
49
|
-
visible: boolean;
|
|
50
52
|
id: string;
|
|
53
|
+
visible: boolean;
|
|
51
54
|
}, {
|
|
52
55
|
type: string;
|
|
53
56
|
title: string;
|
|
54
|
-
visible: boolean;
|
|
55
57
|
id: string;
|
|
58
|
+
visible: boolean;
|
|
56
59
|
}>, "many">;
|
|
57
60
|
capabilities: z.ZodObject<{
|
|
58
61
|
goTo: z.ZodBoolean;
|
|
@@ -80,8 +83,8 @@ export declare const ArcGISMapSnapshotSchema: z.ZodObject<{
|
|
|
80
83
|
layers: {
|
|
81
84
|
type: string;
|
|
82
85
|
title: string;
|
|
83
|
-
visible: boolean;
|
|
84
86
|
id: string;
|
|
87
|
+
visible: boolean;
|
|
85
88
|
}[];
|
|
86
89
|
capabilities: {
|
|
87
90
|
goTo: boolean;
|
|
@@ -103,8 +106,8 @@ export declare const ArcGISMapSnapshotSchema: z.ZodObject<{
|
|
|
103
106
|
layers: {
|
|
104
107
|
type: string;
|
|
105
108
|
title: string;
|
|
106
|
-
visible: boolean;
|
|
107
109
|
id: string;
|
|
110
|
+
visible: boolean;
|
|
108
111
|
}[];
|
|
109
112
|
capabilities: {
|
|
110
113
|
goTo: boolean;
|
|
@@ -169,7 +172,262 @@ export declare const ArcGISMapCommandSchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
169
172
|
visible: boolean;
|
|
170
173
|
layerId: string;
|
|
171
174
|
}>]>;
|
|
172
|
-
export declare const
|
|
175
|
+
export declare const ArcGISMapOperationOriginSchema: z.ZodObject<{
|
|
176
|
+
transactionId: z.ZodString;
|
|
177
|
+
operationId: z.ZodString;
|
|
178
|
+
}, "strict", z.ZodTypeAny, {
|
|
179
|
+
transactionId: string;
|
|
180
|
+
operationId: string;
|
|
181
|
+
}, {
|
|
182
|
+
transactionId: string;
|
|
183
|
+
operationId: string;
|
|
184
|
+
}>;
|
|
185
|
+
export declare const ArcGISMapSnapshotNotificationSchema: z.ZodEffects<z.ZodObject<{
|
|
186
|
+
snapshot: z.ZodObject<{
|
|
187
|
+
map: z.ZodObject<{
|
|
188
|
+
itemId: z.ZodOptional<z.ZodString>;
|
|
189
|
+
title: z.ZodOptional<z.ZodString>;
|
|
190
|
+
}, "strict", z.ZodTypeAny, {
|
|
191
|
+
itemId?: string | undefined;
|
|
192
|
+
title?: string | undefined;
|
|
193
|
+
}, {
|
|
194
|
+
itemId?: string | undefined;
|
|
195
|
+
title?: string | undefined;
|
|
196
|
+
}>;
|
|
197
|
+
viewpoint: z.ZodObject<{
|
|
198
|
+
center: z.ZodObject<{
|
|
199
|
+
longitude: z.ZodNumber;
|
|
200
|
+
latitude: z.ZodNumber;
|
|
201
|
+
}, "strict", z.ZodTypeAny, {
|
|
202
|
+
latitude: number;
|
|
203
|
+
longitude: number;
|
|
204
|
+
}, {
|
|
205
|
+
latitude: number;
|
|
206
|
+
longitude: number;
|
|
207
|
+
}>;
|
|
208
|
+
zoom: z.ZodNumber;
|
|
209
|
+
scale: z.ZodNumber;
|
|
210
|
+
}, "strict", z.ZodTypeAny, {
|
|
211
|
+
zoom: number;
|
|
212
|
+
center: {
|
|
213
|
+
latitude: number;
|
|
214
|
+
longitude: number;
|
|
215
|
+
};
|
|
216
|
+
scale: number;
|
|
217
|
+
}, {
|
|
218
|
+
zoom: number;
|
|
219
|
+
center: {
|
|
220
|
+
latitude: number;
|
|
221
|
+
longitude: number;
|
|
222
|
+
};
|
|
223
|
+
scale: number;
|
|
224
|
+
}>;
|
|
225
|
+
layers: z.ZodArray<z.ZodObject<{
|
|
226
|
+
id: z.ZodString;
|
|
227
|
+
title: z.ZodString;
|
|
228
|
+
type: z.ZodString;
|
|
229
|
+
visible: z.ZodBoolean;
|
|
230
|
+
}, "strict", z.ZodTypeAny, {
|
|
231
|
+
type: string;
|
|
232
|
+
title: string;
|
|
233
|
+
id: string;
|
|
234
|
+
visible: boolean;
|
|
235
|
+
}, {
|
|
236
|
+
type: string;
|
|
237
|
+
title: string;
|
|
238
|
+
id: string;
|
|
239
|
+
visible: boolean;
|
|
240
|
+
}>, "many">;
|
|
241
|
+
capabilities: z.ZodObject<{
|
|
242
|
+
goTo: z.ZodBoolean;
|
|
243
|
+
setLayerVisibility: z.ZodBoolean;
|
|
244
|
+
}, "strict", z.ZodTypeAny, {
|
|
245
|
+
goTo: boolean;
|
|
246
|
+
setLayerVisibility: boolean;
|
|
247
|
+
}, {
|
|
248
|
+
goTo: boolean;
|
|
249
|
+
setLayerVisibility: boolean;
|
|
250
|
+
}>;
|
|
251
|
+
}, "strict", z.ZodTypeAny, {
|
|
252
|
+
map: {
|
|
253
|
+
itemId?: string | undefined;
|
|
254
|
+
title?: string | undefined;
|
|
255
|
+
};
|
|
256
|
+
viewpoint: {
|
|
257
|
+
zoom: number;
|
|
258
|
+
center: {
|
|
259
|
+
latitude: number;
|
|
260
|
+
longitude: number;
|
|
261
|
+
};
|
|
262
|
+
scale: number;
|
|
263
|
+
};
|
|
264
|
+
layers: {
|
|
265
|
+
type: string;
|
|
266
|
+
title: string;
|
|
267
|
+
id: string;
|
|
268
|
+
visible: boolean;
|
|
269
|
+
}[];
|
|
270
|
+
capabilities: {
|
|
271
|
+
goTo: boolean;
|
|
272
|
+
setLayerVisibility: boolean;
|
|
273
|
+
};
|
|
274
|
+
}, {
|
|
275
|
+
map: {
|
|
276
|
+
itemId?: string | undefined;
|
|
277
|
+
title?: string | undefined;
|
|
278
|
+
};
|
|
279
|
+
viewpoint: {
|
|
280
|
+
zoom: number;
|
|
281
|
+
center: {
|
|
282
|
+
latitude: number;
|
|
283
|
+
longitude: number;
|
|
284
|
+
};
|
|
285
|
+
scale: number;
|
|
286
|
+
};
|
|
287
|
+
layers: {
|
|
288
|
+
type: string;
|
|
289
|
+
title: string;
|
|
290
|
+
id: string;
|
|
291
|
+
visible: boolean;
|
|
292
|
+
}[];
|
|
293
|
+
capabilities: {
|
|
294
|
+
goTo: boolean;
|
|
295
|
+
setLayerVisibility: boolean;
|
|
296
|
+
};
|
|
297
|
+
}>;
|
|
298
|
+
operationOrigins: z.ZodArray<z.ZodObject<{
|
|
299
|
+
transactionId: z.ZodString;
|
|
300
|
+
operationId: z.ZodString;
|
|
301
|
+
}, "strict", z.ZodTypeAny, {
|
|
302
|
+
transactionId: string;
|
|
303
|
+
operationId: string;
|
|
304
|
+
}, {
|
|
305
|
+
transactionId: string;
|
|
306
|
+
operationId: string;
|
|
307
|
+
}>, "many">;
|
|
308
|
+
hasExternalChanges: z.ZodBoolean;
|
|
309
|
+
}, "strict", z.ZodTypeAny, {
|
|
310
|
+
snapshot: {
|
|
311
|
+
map: {
|
|
312
|
+
itemId?: string | undefined;
|
|
313
|
+
title?: string | undefined;
|
|
314
|
+
};
|
|
315
|
+
viewpoint: {
|
|
316
|
+
zoom: number;
|
|
317
|
+
center: {
|
|
318
|
+
latitude: number;
|
|
319
|
+
longitude: number;
|
|
320
|
+
};
|
|
321
|
+
scale: number;
|
|
322
|
+
};
|
|
323
|
+
layers: {
|
|
324
|
+
type: string;
|
|
325
|
+
title: string;
|
|
326
|
+
id: string;
|
|
327
|
+
visible: boolean;
|
|
328
|
+
}[];
|
|
329
|
+
capabilities: {
|
|
330
|
+
goTo: boolean;
|
|
331
|
+
setLayerVisibility: boolean;
|
|
332
|
+
};
|
|
333
|
+
};
|
|
334
|
+
operationOrigins: {
|
|
335
|
+
transactionId: string;
|
|
336
|
+
operationId: string;
|
|
337
|
+
}[];
|
|
338
|
+
hasExternalChanges: boolean;
|
|
339
|
+
}, {
|
|
340
|
+
snapshot: {
|
|
341
|
+
map: {
|
|
342
|
+
itemId?: string | undefined;
|
|
343
|
+
title?: string | undefined;
|
|
344
|
+
};
|
|
345
|
+
viewpoint: {
|
|
346
|
+
zoom: number;
|
|
347
|
+
center: {
|
|
348
|
+
latitude: number;
|
|
349
|
+
longitude: number;
|
|
350
|
+
};
|
|
351
|
+
scale: number;
|
|
352
|
+
};
|
|
353
|
+
layers: {
|
|
354
|
+
type: string;
|
|
355
|
+
title: string;
|
|
356
|
+
id: string;
|
|
357
|
+
visible: boolean;
|
|
358
|
+
}[];
|
|
359
|
+
capabilities: {
|
|
360
|
+
goTo: boolean;
|
|
361
|
+
setLayerVisibility: boolean;
|
|
362
|
+
};
|
|
363
|
+
};
|
|
364
|
+
operationOrigins: {
|
|
365
|
+
transactionId: string;
|
|
366
|
+
operationId: string;
|
|
367
|
+
}[];
|
|
368
|
+
hasExternalChanges: boolean;
|
|
369
|
+
}>, {
|
|
370
|
+
snapshot: {
|
|
371
|
+
map: {
|
|
372
|
+
itemId?: string | undefined;
|
|
373
|
+
title?: string | undefined;
|
|
374
|
+
};
|
|
375
|
+
viewpoint: {
|
|
376
|
+
zoom: number;
|
|
377
|
+
center: {
|
|
378
|
+
latitude: number;
|
|
379
|
+
longitude: number;
|
|
380
|
+
};
|
|
381
|
+
scale: number;
|
|
382
|
+
};
|
|
383
|
+
layers: {
|
|
384
|
+
type: string;
|
|
385
|
+
title: string;
|
|
386
|
+
id: string;
|
|
387
|
+
visible: boolean;
|
|
388
|
+
}[];
|
|
389
|
+
capabilities: {
|
|
390
|
+
goTo: boolean;
|
|
391
|
+
setLayerVisibility: boolean;
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
operationOrigins: {
|
|
395
|
+
transactionId: string;
|
|
396
|
+
operationId: string;
|
|
397
|
+
}[];
|
|
398
|
+
hasExternalChanges: boolean;
|
|
399
|
+
}, {
|
|
400
|
+
snapshot: {
|
|
401
|
+
map: {
|
|
402
|
+
itemId?: string | undefined;
|
|
403
|
+
title?: string | undefined;
|
|
404
|
+
};
|
|
405
|
+
viewpoint: {
|
|
406
|
+
zoom: number;
|
|
407
|
+
center: {
|
|
408
|
+
latitude: number;
|
|
409
|
+
longitude: number;
|
|
410
|
+
};
|
|
411
|
+
scale: number;
|
|
412
|
+
};
|
|
413
|
+
layers: {
|
|
414
|
+
type: string;
|
|
415
|
+
title: string;
|
|
416
|
+
id: string;
|
|
417
|
+
visible: boolean;
|
|
418
|
+
}[];
|
|
419
|
+
capabilities: {
|
|
420
|
+
goTo: boolean;
|
|
421
|
+
setLayerVisibility: boolean;
|
|
422
|
+
};
|
|
423
|
+
};
|
|
424
|
+
operationOrigins: {
|
|
425
|
+
transactionId: string;
|
|
426
|
+
operationId: string;
|
|
427
|
+
}[];
|
|
428
|
+
hasExternalChanges: boolean;
|
|
429
|
+
}>;
|
|
430
|
+
export declare const ArcGISMapCommandErrorCodes: readonly ["map-not-ready", "layer-not-found", "invalid-target", "unsupported-command", "execution-failed", "cancelled", "stale-controller"];
|
|
173
431
|
export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
|
|
174
432
|
ok: z.ZodLiteral<true>;
|
|
175
433
|
command: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -277,13 +535,13 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
|
|
|
277
535
|
}, "strict", z.ZodTypeAny, {
|
|
278
536
|
type: string;
|
|
279
537
|
title: string;
|
|
280
|
-
visible: boolean;
|
|
281
538
|
id: string;
|
|
539
|
+
visible: boolean;
|
|
282
540
|
}, {
|
|
283
541
|
type: string;
|
|
284
542
|
title: string;
|
|
285
|
-
visible: boolean;
|
|
286
543
|
id: string;
|
|
544
|
+
visible: boolean;
|
|
287
545
|
}>, "many">;
|
|
288
546
|
capabilities: z.ZodObject<{
|
|
289
547
|
goTo: z.ZodBoolean;
|
|
@@ -311,8 +569,8 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
|
|
|
311
569
|
layers: {
|
|
312
570
|
type: string;
|
|
313
571
|
title: string;
|
|
314
|
-
visible: boolean;
|
|
315
572
|
id: string;
|
|
573
|
+
visible: boolean;
|
|
316
574
|
}[];
|
|
317
575
|
capabilities: {
|
|
318
576
|
goTo: boolean;
|
|
@@ -334,8 +592,8 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
|
|
|
334
592
|
layers: {
|
|
335
593
|
type: string;
|
|
336
594
|
title: string;
|
|
337
|
-
visible: boolean;
|
|
338
595
|
id: string;
|
|
596
|
+
visible: boolean;
|
|
339
597
|
}[];
|
|
340
598
|
capabilities: {
|
|
341
599
|
goTo: boolean;
|
|
@@ -344,20 +602,6 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
|
|
|
344
602
|
}>;
|
|
345
603
|
}, "strict", z.ZodTypeAny, {
|
|
346
604
|
ok: true;
|
|
347
|
-
command: {
|
|
348
|
-
type: "goTo";
|
|
349
|
-
target: {
|
|
350
|
-
center: {
|
|
351
|
-
latitude: number;
|
|
352
|
-
longitude: number;
|
|
353
|
-
};
|
|
354
|
-
zoom?: number | undefined;
|
|
355
|
-
};
|
|
356
|
-
} | {
|
|
357
|
-
type: "setLayerVisibility";
|
|
358
|
-
visible: boolean;
|
|
359
|
-
layerId: string;
|
|
360
|
-
};
|
|
361
605
|
snapshot: {
|
|
362
606
|
map: {
|
|
363
607
|
itemId?: string | undefined;
|
|
@@ -374,16 +618,14 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
|
|
|
374
618
|
layers: {
|
|
375
619
|
type: string;
|
|
376
620
|
title: string;
|
|
377
|
-
visible: boolean;
|
|
378
621
|
id: string;
|
|
622
|
+
visible: boolean;
|
|
379
623
|
}[];
|
|
380
624
|
capabilities: {
|
|
381
625
|
goTo: boolean;
|
|
382
626
|
setLayerVisibility: boolean;
|
|
383
627
|
};
|
|
384
628
|
};
|
|
385
|
-
}, {
|
|
386
|
-
ok: true;
|
|
387
629
|
command: {
|
|
388
630
|
type: "goTo";
|
|
389
631
|
target: {
|
|
@@ -398,6 +640,8 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
|
|
|
398
640
|
visible: boolean;
|
|
399
641
|
layerId: string;
|
|
400
642
|
};
|
|
643
|
+
}, {
|
|
644
|
+
ok: true;
|
|
401
645
|
snapshot: {
|
|
402
646
|
map: {
|
|
403
647
|
itemId?: string | undefined;
|
|
@@ -414,14 +658,28 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
|
|
|
414
658
|
layers: {
|
|
415
659
|
type: string;
|
|
416
660
|
title: string;
|
|
417
|
-
visible: boolean;
|
|
418
661
|
id: string;
|
|
662
|
+
visible: boolean;
|
|
419
663
|
}[];
|
|
420
664
|
capabilities: {
|
|
421
665
|
goTo: boolean;
|
|
422
666
|
setLayerVisibility: boolean;
|
|
423
667
|
};
|
|
424
668
|
};
|
|
669
|
+
command: {
|
|
670
|
+
type: "goTo";
|
|
671
|
+
target: {
|
|
672
|
+
center: {
|
|
673
|
+
latitude: number;
|
|
674
|
+
longitude: number;
|
|
675
|
+
};
|
|
676
|
+
zoom?: number | undefined;
|
|
677
|
+
};
|
|
678
|
+
} | {
|
|
679
|
+
type: "setLayerVisibility";
|
|
680
|
+
visible: boolean;
|
|
681
|
+
layerId: string;
|
|
682
|
+
};
|
|
425
683
|
}>, z.ZodObject<{
|
|
426
684
|
ok: z.ZodLiteral<false>;
|
|
427
685
|
command: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -482,7 +740,7 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
|
|
|
482
740
|
visible: boolean;
|
|
483
741
|
layerId: string;
|
|
484
742
|
}>]>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
485
|
-
code: z.ZodEnum<["map-not-ready", "layer-not-found", "invalid-target", "unsupported-command", "execution-failed"]>;
|
|
743
|
+
code: z.ZodEnum<["map-not-ready", "layer-not-found", "invalid-target", "unsupported-command", "execution-failed", "cancelled", "stale-controller"]>;
|
|
486
744
|
message: z.ZodString;
|
|
487
745
|
snapshot: z.ZodOptional<z.ZodObject<{
|
|
488
746
|
map: z.ZodObject<{
|
|
@@ -531,13 +789,13 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
|
|
|
531
789
|
}, "strict", z.ZodTypeAny, {
|
|
532
790
|
type: string;
|
|
533
791
|
title: string;
|
|
534
|
-
visible: boolean;
|
|
535
792
|
id: string;
|
|
793
|
+
visible: boolean;
|
|
536
794
|
}, {
|
|
537
795
|
type: string;
|
|
538
796
|
title: string;
|
|
539
|
-
visible: boolean;
|
|
540
797
|
id: string;
|
|
798
|
+
visible: boolean;
|
|
541
799
|
}>, "many">;
|
|
542
800
|
capabilities: z.ZodObject<{
|
|
543
801
|
goTo: z.ZodBoolean;
|
|
@@ -565,8 +823,8 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
|
|
|
565
823
|
layers: {
|
|
566
824
|
type: string;
|
|
567
825
|
title: string;
|
|
568
|
-
visible: boolean;
|
|
569
826
|
id: string;
|
|
827
|
+
visible: boolean;
|
|
570
828
|
}[];
|
|
571
829
|
capabilities: {
|
|
572
830
|
goTo: boolean;
|
|
@@ -588,8 +846,8 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
|
|
|
588
846
|
layers: {
|
|
589
847
|
type: string;
|
|
590
848
|
title: string;
|
|
591
|
-
visible: boolean;
|
|
592
849
|
id: string;
|
|
850
|
+
visible: boolean;
|
|
593
851
|
}[];
|
|
594
852
|
capabilities: {
|
|
595
853
|
goTo: boolean;
|
|
@@ -597,10 +855,10 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
|
|
|
597
855
|
};
|
|
598
856
|
}>>;
|
|
599
857
|
}, "strict", z.ZodTypeAny, {
|
|
600
|
-
code: "map-not-ready" | "layer-not-found" | "invalid-target" | "unsupported-command" | "execution-failed";
|
|
858
|
+
code: "cancelled" | "map-not-ready" | "layer-not-found" | "stale-controller" | "invalid-target" | "unsupported-command" | "execution-failed";
|
|
601
859
|
message: string;
|
|
602
860
|
ok: false;
|
|
603
|
-
command: {
|
|
861
|
+
command: Record<string, unknown> | {
|
|
604
862
|
type: "goTo";
|
|
605
863
|
target: {
|
|
606
864
|
center: {
|
|
@@ -613,7 +871,7 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
|
|
|
613
871
|
type: "setLayerVisibility";
|
|
614
872
|
visible: boolean;
|
|
615
873
|
layerId: string;
|
|
616
|
-
}
|
|
874
|
+
};
|
|
617
875
|
snapshot?: {
|
|
618
876
|
map: {
|
|
619
877
|
itemId?: string | undefined;
|
|
@@ -630,8 +888,8 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
|
|
|
630
888
|
layers: {
|
|
631
889
|
type: string;
|
|
632
890
|
title: string;
|
|
633
|
-
visible: boolean;
|
|
634
891
|
id: string;
|
|
892
|
+
visible: boolean;
|
|
635
893
|
}[];
|
|
636
894
|
capabilities: {
|
|
637
895
|
goTo: boolean;
|
|
@@ -639,10 +897,10 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
|
|
|
639
897
|
};
|
|
640
898
|
} | undefined;
|
|
641
899
|
}, {
|
|
642
|
-
code: "map-not-ready" | "layer-not-found" | "invalid-target" | "unsupported-command" | "execution-failed";
|
|
900
|
+
code: "cancelled" | "map-not-ready" | "layer-not-found" | "stale-controller" | "invalid-target" | "unsupported-command" | "execution-failed";
|
|
643
901
|
message: string;
|
|
644
902
|
ok: false;
|
|
645
|
-
command: {
|
|
903
|
+
command: Record<string, unknown> | {
|
|
646
904
|
type: "goTo";
|
|
647
905
|
target: {
|
|
648
906
|
center: {
|
|
@@ -655,7 +913,7 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
|
|
|
655
913
|
type: "setLayerVisibility";
|
|
656
914
|
visible: boolean;
|
|
657
915
|
layerId: string;
|
|
658
|
-
}
|
|
916
|
+
};
|
|
659
917
|
snapshot?: {
|
|
660
918
|
map: {
|
|
661
919
|
itemId?: string | undefined;
|
|
@@ -672,8 +930,8 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
|
|
|
672
930
|
layers: {
|
|
673
931
|
type: string;
|
|
674
932
|
title: string;
|
|
675
|
-
visible: boolean;
|
|
676
933
|
id: string;
|
|
934
|
+
visible: boolean;
|
|
677
935
|
}[];
|
|
678
936
|
capabilities: {
|
|
679
937
|
goTo: boolean;
|
|
@@ -683,10 +941,30 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
|
|
|
683
941
|
}>]>;
|
|
684
942
|
export type ArcGISMapSnapshot = z.infer<typeof ArcGISMapSnapshotSchema>;
|
|
685
943
|
export type ArcGISMapCommand = z.infer<typeof ArcGISMapCommandSchema>;
|
|
944
|
+
export type ArcGISMapOperationOrigin = z.infer<typeof ArcGISMapOperationOriginSchema>;
|
|
945
|
+
export type ArcGISMapSnapshotNotification = z.infer<typeof ArcGISMapSnapshotNotificationSchema>;
|
|
686
946
|
export type ArcGISMapCommandResult = z.infer<typeof ArcGISMapCommandResultSchema>;
|
|
687
947
|
export type ArcGISMapCommandErrorCode = (typeof ArcGISMapCommandErrorCodes)[number];
|
|
948
|
+
export interface ArcGISMapCommandOptions extends ArcGISFeatureOperationOptions {
|
|
949
|
+
/**
|
|
950
|
+
* Generic caller identity used only to classify controller-originated map
|
|
951
|
+
* feedback. A valid origin makes navigation non-animated so its target has
|
|
952
|
+
* a deterministic causal boundary; navigation without an origin keeps the
|
|
953
|
+
* ArcGIS SDK's default animation behavior.
|
|
954
|
+
*/
|
|
955
|
+
origin?: ArcGISMapOperationOrigin;
|
|
956
|
+
}
|
|
688
957
|
export interface ArcGISMapController {
|
|
689
958
|
getSnapshot(): Promise<ArcGISMapSnapshot>;
|
|
690
|
-
|
|
691
|
-
|
|
959
|
+
/**
|
|
960
|
+
* Publishes one live, frame-time snapshot with every exact operation origin
|
|
961
|
+
* that explains its full diff. Any unexplained field sets hasExternalChanges.
|
|
962
|
+
*/
|
|
963
|
+
subscribe(listener: (notification: ArcGISMapSnapshotNotification) => void): () => void;
|
|
964
|
+
execute(command: ArcGISMapCommand, options?: ArcGISMapCommandOptions): Promise<ArcGISMapCommandResult>;
|
|
965
|
+
describeFeatureLayer(layerId: string, options?: ArcGISFeatureOperationOptions): Promise<ArcGISFeatureLayerDescriptionResult>;
|
|
966
|
+
validateFeatureFilter(request: ArcGISFeatureFilterRequest, options?: ArcGISFeatureOperationOptions): Promise<ArcGISValidateFeatureFilterResult>;
|
|
967
|
+
setFeatureFilter(request: ArcGISFeatureFilterRequest, options?: ArcGISFeatureOperationOptions): Promise<ArcGISSetFeatureFilterResult>;
|
|
968
|
+
clearFeatureFilter(request: ArcGISClearFeatureFilterRequest, options?: ArcGISFeatureOperationOptions): Promise<ArcGISClearFeatureFilterResult>;
|
|
969
|
+
queryFeatureLayer(request: ArcGISFeatureQueryRequest, options?: ArcGISFeatureOperationOptions): Promise<ArcGISFeatureQueryResult>;
|
|
692
970
|
}
|
package/dist/controller/api.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0xf99253=_0x3fa8;(function(_0x160a44,_0x5bfff2){const _0x2e1af3=_0x3fa8,_0x3ee17f=_0x160a44();while(!![]){try{const _0x4aa88e=parseInt(_0x2e1af3(0x1b1))/0x1+-parseInt(_0x2e1af3(0x1a4))/0x2+parseInt(_0x2e1af3(0x1b8))/0x3*(parseInt(_0x2e1af3(0x1a7))/0x4)+parseInt(_0x2e1af3(0x1c2))/0x5+-parseInt(_0x2e1af3(0x1b7))/0x6+parseInt(_0x2e1af3(0x1c4))/0x7*(parseInt(_0x2e1af3(0x1b2))/0x8)+-parseInt(_0x2e1af3(0x1c6))/0x9*(parseInt(_0x2e1af3(0x1ba))/0xa);if(_0x4aa88e===_0x5bfff2)break;else _0x3ee17f['push'](_0x3ee17f['shift']());}catch(_0x463602){_0x3ee17f['push'](_0x3ee17f['shift']());}}}(_0x1a00,0x48113));import{z}from'zod';const FiniteNumberSchema=z[_0xf99253(0x1af)]()[_0xf99253(0x1b4)](),ArcGISMapCenterSchema=z[_0xf99253(0x1ac)]({'longitude':FiniteNumberSchema[_0xf99253(0x1ab)](-0xb4)[_0xf99253(0x1b6)](0xb4),'latitude':FiniteNumberSchema[_0xf99253(0x1ab)](-0x5a)[_0xf99253(0x1b6)](0x5a)})[_0xf99253(0x1b0)](),ArcGISMapLayerSnapshotSchema=z['object']({'id':z['string']()[_0xf99253(0x1ab)](0x1),'title':z['string'](),'type':z['string'](),'visible':z['boolean']()})['strict'](),ArcGISMapSnapshotSchema=z[_0xf99253(0x1ac)]({'map':z[_0xf99253(0x1ac)]({'itemId':z[_0xf99253(0x1b5)]()['min'](0x1)[_0xf99253(0x1ae)](),'title':z[_0xf99253(0x1b5)]()['min'](0x1)['optional']()})[_0xf99253(0x1b0)](),'viewpoint':z['object']({'center':ArcGISMapCenterSchema,'zoom':FiniteNumberSchema[_0xf99253(0x1ab)](0x0)[_0xf99253(0x1b6)](0x17),'scale':FiniteNumberSchema[_0xf99253(0x1a3)]()})['strict'](),'layers':z[_0xf99253(0x1a8)](ArcGISMapLayerSnapshotSchema),'capabilities':z[_0xf99253(0x1ac)]({'goTo':z[_0xf99253(0x1bb)](),'setLayerVisibility':z['boolean']()})[_0xf99253(0x1b0)]()})[_0xf99253(0x1b0)](),ArcGISGoToCommandSchema=z[_0xf99253(0x1ac)]({'type':z['literal']('goTo'),'target':z[_0xf99253(0x1ac)]({'center':ArcGISMapCenterSchema,'zoom':FiniteNumberSchema[_0xf99253(0x1ab)](0x0)['max'](0x17)['optional']()})['strict']()})[_0xf99253(0x1b0)](),ArcGISSetLayerVisibilityCommandSchema=z[_0xf99253(0x1ac)]({'type':z[_0xf99253(0x1c0)](_0xf99253(0x1bd)),'layerId':z[_0xf99253(0x1b5)]()['min'](0x1),'visible':z[_0xf99253(0x1bb)]()})['strict'](),ArcGISMapCommandSchema=z[_0xf99253(0x1c3)]('type',[ArcGISGoToCommandSchema,ArcGISSetLayerVisibilityCommandSchema]),ArcGISMapOperationOriginIdSchema=z[_0xf99253(0x1b5)]()['trim']()['min'](0x1)[_0xf99253(0x1b6)](0x80),ArcGISMapOperationOriginSchema=z['object']({'transactionId':ArcGISMapOperationOriginIdSchema,'operationId':ArcGISMapOperationOriginIdSchema})['strict'](),ArcGISMapSnapshotNotificationSchema=z[_0xf99253(0x1ac)]({'snapshot':ArcGISMapSnapshotSchema,'operationOrigins':z[_0xf99253(0x1a8)](ArcGISMapOperationOriginSchema)['max'](0x10),'hasExternalChanges':z['boolean']()})[_0xf99253(0x1b0)]()['superRefine']((_0x33b4e9,_0x539fd7)=>{const _0x3d2a82=_0xf99253;_0x33b4e9[_0x3d2a82(0x1a6)]['length']===0x0&&!_0x33b4e9[_0x3d2a82(0x1b9)]&&_0x539fd7['addIssue']({'code':_0x3d2a82(0x1aa),'path':[_0x3d2a82(0x1a6)],'message':_0x3d2a82(0x1c5)});const _0x35bfad=_0x33b4e9['operationOrigins'][_0x3d2a82(0x1bf)](({transactionId:_0x220397,operationId:_0x154f53})=>_0x220397+'\x00'+_0x154f53);new Set(_0x35bfad)['size']!==_0x35bfad['length']&&_0x539fd7['addIssue']({'code':'custom','path':[_0x3d2a82(0x1a6)],'message':_0x3d2a82(0x1ad)});}),ArcGISMapCommandErrorCodes=[_0xf99253(0x1a5),_0xf99253(0x1c1),'invalid-target',_0xf99253(0x1be),'execution-failed',_0xf99253(0x1b3),'stale-controller'],ArcGISMapCommandErrorCodeSchema=z[_0xf99253(0x1a9)](ArcGISMapCommandErrorCodes),ArcGISMapCommandSuccessSchema=z[_0xf99253(0x1ac)]({'ok':z['literal'](!![]),'command':ArcGISMapCommandSchema,'snapshot':ArcGISMapSnapshotSchema})['strict'](),ArcGISMapCommandFailureSchema=z['object']({'ok':z[_0xf99253(0x1c0)](![]),'command':z['union']([ArcGISMapCommandSchema,z[_0xf99253(0x1bc)](z['unknown']())]),'code':ArcGISMapCommandErrorCodeSchema,'message':z['string']()[_0xf99253(0x1ab)](0x1),'snapshot':ArcGISMapSnapshotSchema['optional']()})[_0xf99253(0x1b0)](),ArcGISMapCommandResultSchema=z[_0xf99253(0x1c3)]('ok',[ArcGISMapCommandSuccessSchema,ArcGISMapCommandFailureSchema]);function _0x3fa8(_0x3dce62,_0x23de0c){_0x3dce62=_0x3dce62-0x1a3;const _0x1a00b3=_0x1a00();let _0x3fa801=_0x1a00b3[_0x3dce62];return _0x3fa801;}function _0x1a00(){const _0x4eaaea=['hasExternalChanges','340hKcqUR','boolean','record','setLayerVisibility','unsupported-command','map','literal','layer-not-found','2366935glxEcx','discriminatedUnion','112sXDZuL','A\x20map\x20notification\x20requires\x20an\x20operation\x20origin\x20or\x20an\x20external-change\x20marker.','254574xjUkID','positive','39606nDEOcW','map-not-ready','operationOrigins','656Audnkf','array','enum','custom','min','object','Map\x20notification\x20operation\x20origins\x20must\x20be\x20unique.','optional','number','strict','482238daYgUm','149336DOyVcp','cancelled','finite','string','max','2509506rUuSHQ','8061qtnEfJ'];_0x1a00=function(){return _0x4eaaea;};return _0x1a00();}export{ArcGISMapCommandErrorCodes,ArcGISMapCommandResultSchema,ArcGISMapCommandSchema,ArcGISMapOperationOriginSchema,ArcGISMapSnapshotNotificationSchema,ArcGISMapSnapshotSchema};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x291ea0,_0x4ada31){const _0x764647=_0x7fcf,_0x2f8218=_0x291ea0();while(!![]){try{const _0x34139e=-parseInt(_0x764647(0x139))/0x1+-parseInt(_0x764647(0x130))/0x2+-parseInt(_0x764647(0x138))/0x3+-parseInt(_0x764647(0x148))/0x4*(-parseInt(_0x764647(0x128))/0x5)+parseInt(_0x764647(0x12b))/0x6+parseInt(_0x764647(0x12e))/0x7*(-parseInt(_0x764647(0x12a))/0x8)+parseInt(_0x764647(0x13e))/0x9;if(_0x34139e===_0x4ada31)break;else _0x2f8218['push'](_0x2f8218['shift']());}catch(_0x41b0e3){_0x2f8218['push'](_0x2f8218['shift']());}}}(_0x1f84,0xec48e));function _0x1f84(){const _0x3c9ffd=['map','1666375gfdiFS','add','2574712mFrFrl','5411910qfHkyh','requestAnimationFrame','zoom','42kDLdWo','stationary','1379168HdRWFr','remove','scale','ArcGIS\x20map\x20view\x20is\x20not\x20ready.','longitude','delete','layers','center','5783703MwcpXp','1626154UGZUgW','name','cancelAnimationFrame','type','goTo','41167215dtglcD','find','MapControllerError','latitude','ready','target','push','stringify','itemId','data','20AMNPAV','visible','watch','title','map-not-ready'];_0x1f84=function(){return _0x3c9ffd;};return _0x1f84();}import*as _0x450c2a from'@arcgis/core/core/reactiveUtils.js';import{ArcGISMapSnapshotSchema,ArcGISMapCommandSchema}from'./api.js';const defaultDependencies={'watch':(_0x3e9209,_0x32b8dd)=>_0x450c2a['watch'](_0x3e9209,_0x32b8dd),'requestAnimationFrame':_0x40bd72=>globalThis['requestAnimationFrame'](_0x40bd72),'cancelAnimationFrame':_0x1eefe0=>globalThis['cancelAnimationFrame'](_0x1eefe0)};class MapControllerError extends Error{constructor(_0x233712,_0x38c2ef){const _0x1af5ef=_0x7fcf;super(_0x38c2ef),this['code']=_0x233712,this[_0x1af5ef(0x13a)]=_0x1af5ef(0x140);}}function collectOperationalLayers(_0x452347){const _0x224cda=_0x7fcf,_0x5e8284=[];for(const _0x25bd79 of _0x452347){_0x5e8284['push'](_0x25bd79),_0x25bd79[_0x224cda(0x136)]&&_0x5e8284[_0x224cda(0x144)](...collectOperationalLayers(_0x25bd79[_0x224cda(0x136)]));}return _0x5e8284;}function readSnapshot(_0x16bfe4){const _0x2d2375=_0x7fcf;if(!_0x16bfe4['ready']||!_0x16bfe4[_0x2d2375(0x127)]||!_0x16bfe4['center'])throw new MapControllerError(_0x2d2375(0x14c),_0x2d2375(0x133));const _0x41cd72=_0x16bfe4['map']['portalItem']?.['title'],_0x455f0c=collectOperationalLayers(_0x16bfe4[_0x2d2375(0x127)][_0x2d2375(0x136)]);return ArcGISMapSnapshotSchema['parse']({'map':{..._0x16bfe4[_0x2d2375(0x146)]?{'itemId':_0x16bfe4[_0x2d2375(0x146)]}:{},..._0x41cd72?{'title':_0x41cd72}:{}},'viewpoint':{'center':{'longitude':_0x16bfe4['center'][_0x2d2375(0x134)],'latitude':_0x16bfe4[_0x2d2375(0x137)]['latitude']},'zoom':_0x16bfe4['zoom'],'scale':_0x16bfe4['scale']},'layers':_0x455f0c['map'](_0x36b017=>({'id':_0x36b017['id'],'title':_0x36b017['title'],'type':_0x36b017['type'],'visible':_0x36b017['visible']})),'capabilities':{'goTo':!![],'setLayerVisibility':!![]}});}function commandRecord(_0x1a6198){if(typeof _0x1a6198==='object'&&_0x1a6198!==null&&!Array['isArray'](_0x1a6198))return _0x1a6198;return{'value':_0x1a6198};}function failure(_0x351e6c,_0x24e9d1,_0x47b12e,_0x47567d){let _0x2899db;try{_0x2899db=readSnapshot(_0x351e6c);}catch{_0x2899db=void 0x0;}return{'ok':![],'command':commandRecord(_0x24e9d1),'code':_0x47b12e,'message':_0x47567d,..._0x2899db?{'snapshot':_0x2899db}:{}};}function layerProjection(_0x4d0cfe){const _0xbabce1=_0x7fcf;return collectOperationalLayers(_0x4d0cfe['map']?.['layers']??[])['map'](_0x5168aa=>[_0x5168aa['id'],_0x5168aa[_0xbabce1(0x14b)],_0x5168aa['type'],_0x5168aa['visible']]);}async function createArcGISMapController(_0x445692,_0x549acf=defaultDependencies){const _0x453627=_0x7fcf,_0x2ef7ce=_0x445692;await _0x2ef7ce['viewOnReady']();const _0x4b99ab=readSnapshot(_0x2ef7ce);let _0x3330ea=![],_0x17dd9e=null,_0x19da4b=JSON[_0x453627(0x145)](_0x4b99ab);const _0x59b814=new Set(),_0x2cdcc2=()=>{const _0x478872=_0x453627;if(_0x3330ea)return;const _0x3c4420=readSnapshot(_0x2ef7ce),_0x18100e=JSON[_0x478872(0x145)](_0x3c4420);if(_0x18100e===_0x19da4b)return;_0x19da4b=_0x18100e;for(const _0x8d4bf2 of _0x59b814){_0x8d4bf2(_0x3c4420);}},_0x5cb98e=()=>{const _0x57535b=_0x453627;if(_0x3330ea||_0x17dd9e!==null)return;_0x17dd9e=_0x549acf[_0x57535b(0x12c)](()=>{_0x17dd9e=null,_0x2cdcc2();});},_0x152da5=_0x549acf['watch'](()=>[_0x2ef7ce[_0x453627(0x12f)],_0x2ef7ce['center']?.[_0x453627(0x134)],_0x2ef7ce['center']?.[_0x453627(0x141)],_0x2ef7ce['zoom'],_0x2ef7ce[_0x453627(0x132)]],()=>{_0x2ef7ce['stationary']&&_0x2cdcc2();}),_0x4fc59a=_0x549acf[_0x453627(0x14a)](()=>layerProjection(_0x2ef7ce),_0x5cb98e),_0x39062f={async 'getSnapshot'(){return readSnapshot(_0x2ef7ce);},'subscribe'(_0x55ce68){const _0x53c8aa=_0x453627;if(_0x3330ea)return()=>void 0x0;return _0x59b814[_0x53c8aa(0x129)](_0x55ce68),()=>{const _0x5ce180=_0x53c8aa;_0x59b814[_0x5ce180(0x135)](_0x55ce68);};},async 'execute'(_0x247081){const _0xf626b5=_0x453627,_0x3f9846=ArcGISMapCommandSchema['safeParse'](_0x247081);if(!_0x3f9846['success']){const _0x20524b=_0x247081?.[_0xf626b5(0x13c)];return failure(_0x2ef7ce,_0x247081,_0x20524b==='goTo'||_0x20524b==='setLayerVisibility'?'invalid-target':'unsupported-command','Map\x20command\x20is\x20not\x20supported\x20or\x20has\x20invalid\x20arguments.');}if(!_0x2ef7ce[_0xf626b5(0x142)]||!_0x2ef7ce['map']||!_0x2ef7ce[_0xf626b5(0x137)])return failure(_0x2ef7ce,_0x3f9846[_0xf626b5(0x147)],_0xf626b5(0x14c),'ArcGIS\x20map\x20view\x20is\x20not\x20ready.');try{if(_0x3f9846['data']['type']===_0xf626b5(0x13d)){const {longitude:_0x23b5d6,latitude:_0xd01ff8}=_0x3f9846[_0xf626b5(0x147)][_0xf626b5(0x143)][_0xf626b5(0x137)];await _0x2ef7ce['goTo']({'center':[_0x23b5d6,_0xd01ff8],..._0x3f9846[_0xf626b5(0x147)]['target'][_0xf626b5(0x12d)]===void 0x0?{}:{'zoom':_0x3f9846[_0xf626b5(0x147)]['target']['zoom']}});}else{const {layerId:_0x5d509f,visible:_0x461ce9}=_0x3f9846['data'],_0x52e713=collectOperationalLayers(_0x2ef7ce[_0xf626b5(0x127)]['layers'])[_0xf626b5(0x13f)](_0x2565d1=>_0x2565d1['id']===_0x5d509f);if(!_0x52e713)return failure(_0x2ef7ce,_0x3f9846['data'],'layer-not-found','Layer\x20'+_0x5d509f+'\x20was\x20not\x20found.');_0x52e713[_0xf626b5(0x149)]=_0x461ce9;}return{'ok':!![],'command':_0x3f9846[_0xf626b5(0x147)],'snapshot':readSnapshot(_0x2ef7ce)};}catch(_0x2624de){const _0x136224=_0x2624de instanceof MapControllerError?_0x2624de['code']:_0x2ef7ce['ready']?'execution-failed':'map-not-ready';return failure(_0x2ef7ce,_0x3f9846[_0xf626b5(0x147)],_0x136224,_0x2624de instanceof Error?_0x2624de['message']:String(_0x2624de));}}};return{'controller':_0x39062f,'dispose'(){const _0x4c69b7=_0x453627;if(_0x3330ea)return;_0x3330ea=!![],_0x152da5[_0x4c69b7(0x131)](),_0x4fc59a['remove'](),_0x17dd9e!==null&&(_0x549acf[_0x4c69b7(0x13b)](_0x17dd9e),_0x17dd9e=null),_0x59b814['clear']();}};}function _0x7fcf(_0x14997c,_0x3f1a30){_0x14997c=_0x14997c-0x127;const _0x1f84bc=_0x1f84();let _0x7fcf10=_0x1f84bc[_0x14997c];return _0x7fcf10;}export{createArcGISMapController};
|
|
1
|
+
const _0x44c7dd=_0x5251;(function(_0x3528a6,_0x1a2d11){const _0x27415e=_0x5251,_0x4316e3=_0x3528a6();while(!![]){try{const _0x28ac2b=-parseInt(_0x27415e(0x224))/0x1+parseInt(_0x27415e(0x22f))/0x2+-parseInt(_0x27415e(0x208))/0x3+-parseInt(_0x27415e(0x1ed))/0x4+parseInt(_0x27415e(0x20c))/0x5+parseInt(_0x27415e(0x1ee))/0x6*(-parseInt(_0x27415e(0x1f3))/0x7)+parseInt(_0x27415e(0x218))/0x8;if(_0x28ac2b===_0x1a2d11)break;else _0x4316e3['push'](_0x4316e3['shift']());}catch(_0x4c426b){_0x4316e3['push'](_0x4316e3['shift']());}}}(_0x5c60,0xdd481));function _0x5c60(){const _0x4aba24=['MapControllerError','success','The\x20host\x20map\x20changed\x20during\x20navigation.','isArray','zoom','portalItem','3548684fafXgL','1191882mTUIfA','map','title','removeEventListener','number','56CEbvRh','navigation','aborted','center','add','set','watch','find','scale','visibility','whenLayerView','layer-not-found','hasExternalChanges','stale-controller','length','viewpoint.scale','after','indexOf','completed','invalid-target','defer','2319687XtCCQl','code','validateFeatureFilter','size','7333015bSvCak','itemId','lifecycle','cancelAnimationFrame','map-not-ready','viewOnReady','ready','type','before','longitude','stationary','target','33747248PRIsUy','remove','setLayerVisibility','\x20was\x20not\x20found.','viewpoint','signal','state','splice','interacting','goTo','object','layers','1554826Acbobr','parse','kind','operationOrigins','push','values','data','requestAnimationFrame','origin','viewpoint.zoom','latitude','51524PFhqQl','visible','arcgis-map-controller','has'];_0x5c60=function(){return _0x4aba24;};return _0x5c60();}import*as _0x23edb9 from'@arcgis/core/core/reactiveUtils.js';function _0x5251(_0x26adf1,_0x4899a4){_0x26adf1=_0x26adf1-0x1e7;const _0x5c6037=_0x5c60();let _0x5251fe=_0x5c6037[_0x26adf1];return _0x5251fe;}import _0x1bfaf7 from'@arcgis/core/layers/support/FeatureFilter.js';import{ArcGISMapSnapshotSchema,ArcGISMapCommandSchema,ArcGISMapOperationOriginSchema,ArcGISMapSnapshotNotificationSchema}from'./api.js';import{createFeatureFilterRuntime}from'./featureFilterRuntime.js';import{createFeatureQueryRuntime}from'./featureQueryRuntime.js';const defaultDependencies={'watch':(_0x422aa9,_0x2e30a9)=>_0x23edb9['watch'](_0x422aa9,_0x2e30a9),'requestAnimationFrame':_0x76fac9=>globalThis[_0x44c7dd(0x22b)](_0x76fac9),'cancelAnimationFrame':_0x3e0538=>globalThis['cancelAnimationFrame'](_0x3e0538)};class MapControllerError extends Error{constructor(_0x1fa11e,_0x1a8e40){const _0x4bd4f5=_0x44c7dd;super(_0x1a8e40),this[_0x4bd4f5(0x209)]=_0x1fa11e,this['name']=_0x4bd4f5(0x1e7);}}function collectOperationalLayers(_0x6163e5){const _0x57cddd=_0x44c7dd,_0x29c9b4=[];for(const _0x1360b9 of _0x6163e5){_0x29c9b4[_0x57cddd(0x228)](_0x1360b9),_0x1360b9['layers']&&_0x29c9b4['push'](...collectOperationalLayers(_0x1360b9[_0x57cddd(0x223)]));}return _0x29c9b4;}function readSnapshot(_0x58a774){const _0x34c0dc=_0x44c7dd;if(!_0x58a774[_0x34c0dc(0x212)]||!_0x58a774[_0x34c0dc(0x1ef)]||!_0x58a774['center'])throw new MapControllerError('map-not-ready','ArcGIS\x20map\x20view\x20is\x20not\x20ready.');const _0x41ee84=_0x58a774[_0x34c0dc(0x1ef)][_0x34c0dc(0x1ec)]?.['title'],_0x20f352=collectOperationalLayers(_0x58a774['map'][_0x34c0dc(0x223)]);return ArcGISMapSnapshotSchema[_0x34c0dc(0x225)]({'map':{..._0x58a774[_0x34c0dc(0x20d)]?{'itemId':_0x58a774[_0x34c0dc(0x20d)]}:{},..._0x41ee84?{'title':_0x41ee84}:{}},'viewpoint':{'center':{'longitude':_0x58a774[_0x34c0dc(0x1f6)][_0x34c0dc(0x215)],'latitude':_0x58a774[_0x34c0dc(0x1f6)]['latitude']},'zoom':_0x58a774['zoom'],'scale':_0x58a774[_0x34c0dc(0x1fb)]},'layers':_0x20f352[_0x34c0dc(0x1ef)](_0x16981e=>({'id':_0x16981e['id'],'title':_0x16981e['title'],'type':_0x16981e['type'],'visible':_0x16981e['visible']})),'capabilities':{'goTo':!![],'setLayerVisibility':!![]}});}function commandRecord(_0x1e1fc3){const _0x45fc00=_0x44c7dd;if(typeof _0x1e1fc3===_0x45fc00(0x222)&&_0x1e1fc3!==null&&!Array['isArray'](_0x1e1fc3))return _0x1e1fc3;return{'value':_0x1e1fc3};}function failure(_0x4fc5cf,_0x2ad655,_0x2e7ec8,_0x3ae75f){let _0xb7bebf;try{_0xb7bebf=readSnapshot(_0x4fc5cf);}catch{_0xb7bebf=void 0x0;}return{'ok':![],'command':commandRecord(_0x2ad655),'code':_0x2e7ec8,'message':_0x3ae75f,..._0xb7bebf?{'snapshot':_0xb7bebf}:{}};}function layerProjection(_0x29efa2){const _0x28236c=_0x44c7dd;return collectOperationalLayers(_0x29efa2[_0x28236c(0x1ef)]?.['layers']??[])[_0x28236c(0x1ef)](_0x14b56f=>[_0x14b56f['id'],_0x14b56f[_0x28236c(0x1f0)],_0x14b56f[_0x28236c(0x213)],_0x14b56f['visible']]);}function originKey(_0x4f2ab9){return _0x4f2ab9['transactionId']+'\x00'+_0x4f2ab9['operationId'];}function sameSnapshot(_0x2296a1,_0x45ddb2){return JSON['stringify'](_0x2296a1)===JSON['stringify'](_0x45ddb2);}function matchesNavigationTarget(_0x3dfe0b,_0xd0eb1){const _0x5ee63e=_0x44c7dd;return _0x3dfe0b['center']['longitude']===_0xd0eb1[_0x5ee63e(0x215)]&&_0x3dfe0b['center'][_0x5ee63e(0x22e)]===_0xd0eb1[_0x5ee63e(0x22e)]&&_0x3dfe0b[_0x5ee63e(0x1eb)]===_0xd0eb1['zoom'];}async function createArcGISMapController(_0x14e20f,_0x44b142=defaultDependencies){const _0x1e7c8c=_0x44c7dd,_0x26dd6b=_0x14e20f;await _0x26dd6b[_0x1e7c8c(0x211)]();const _0xc9fe6b=readSnapshot(_0x26dd6b);let _0xa0e6e0=![],_0x21adf4=null,_0x3038a8=structuredClone(_0xc9fe6b),_0x2a9fe3=_0x26dd6b['map'],_0x52620c=![],_0x43117=0x0,_0x45116a=![];const _0x4665d2=Symbol(_0x1e7c8c(0x231)),_0x4256c4=new Set(),_0x5754fc=[],_0x5580ea=createFeatureFilterRuntime({'isReady':()=>Boolean(_0x26dd6b['ready']&&_0x26dd6b[_0x1e7c8c(0x1ef)]&&_0x26dd6b['center']),'isDisposed':()=>_0xa0e6e0,'resolveLayer':_0x791b3=>collectOperationalLayers(_0x26dd6b['map']?.['layers']??[])['find'](_0x27b6bc=>_0x27b6bc['id']===_0x791b3),'whenLayerView':_0x33ebe1=>_0x26dd6b[_0x1e7c8c(0x1fd)](_0x33ebe1),'createFilter':_0x58e1c0=>new _0x1bfaf7(_0x58e1c0)}),_0x46e69c=createFeatureQueryRuntime({'isReady':()=>Boolean(_0x26dd6b['ready']&&_0x26dd6b['map']&&_0x26dd6b['center']),'isDisposed':()=>_0xa0e6e0,'resolveLayer':_0xabf280=>collectOperationalLayers(_0x26dd6b[_0x1e7c8c(0x1ef)]?.[_0x1e7c8c(0x223)]??[])['find'](_0x59b57d=>_0x59b57d['id']===_0xabf280)}),_0x220d2c=0x10,_0x579dd6=0x10,_0xf66d72=_0x28c9ce=>{const _0x2770c0=_0x1e7c8c;if(_0x5754fc[_0x2770c0(0x201)]>=_0x220d2c)return _0x45116a=!![],null;return _0x5754fc['push'](_0x28c9ce),_0x28c9ce;},_0x2fd5f4=_0x59bcae=>{const _0x2a8b83=_0x1e7c8c;if(!_0x59bcae)return;const _0x148c9c=_0x5754fc[_0x2a8b83(0x204)](_0x59bcae);if(_0x148c9c>=0x0)_0x5754fc[_0x2a8b83(0x21f)](_0x148c9c,0x1);},_0x2fb4a5=()=>{const _0x484561=_0x1e7c8c;for(const _0xad67a1 of _0x5754fc){_0xad67a1['kind']===_0x484561(0x1f4)&&_0xad67a1['state']==='active'&&(_0xad67a1['ownershipInvalidated']=!![]);}},_0x338f00=_0x5a62ce=>{const _0x554038=_0x1e7c8c;if(!Array[_0x554038(0x1ea)](_0x5a62ce)||_0x5a62ce[_0x554038(0x201)]!==0x5){_0x2fb4a5();return;}const [,_0x24e36b,_0x65b723,_0x47ec26,_0x4e87e8]=_0x5a62ce;if(typeof _0x24e36b!==_0x554038(0x1f2)||typeof _0x65b723!==_0x554038(0x1f2)||typeof _0x47ec26!=='number'||typeof _0x4e87e8!=='number'){_0x2fb4a5();return;}const _0x3f9433={'center':{'longitude':_0x24e36b,'latitude':_0x65b723},'zoom':_0x47ec26,'scale':_0x4e87e8};for(const _0xca16d of _0x5754fc){_0xca16d[_0x554038(0x226)]===_0x554038(0x1f4)&&_0xca16d['state']==='active'&&!sameSnapshot(_0xca16d['before'],_0x3f9433)&&!matchesNavigationTarget(_0x3f9433,_0xca16d[_0x554038(0x217)])&&(_0xca16d['ownershipInvalidated']=!![]);}},_0x44fac1=()=>{const _0x5ed33e=_0x1e7c8c;if(_0x21adf4===null)return;_0x44b142[_0x5ed33e(0x20f)](_0x21adf4),_0x21adf4=null;},_0x56af37=()=>{const _0x14b417=_0x1e7c8c;if(_0x26dd6b[_0x14b417(0x1ef)]===_0x2a9fe3)return![];return _0x44fac1(),_0x2a9fe3=_0x26dd6b['map'],_0x5754fc[_0x14b417(0x201)]=0x0,_0x45116a=![],_0x52620c=!![],!![];},_0x2d226b=_0x3f6cfd=>{const _0x5ed5af=_0x1e7c8c;_0x44fac1(),_0x5754fc[_0x5ed5af(0x201)]=0x0,_0x45116a=![],_0x2a9fe3=_0x26dd6b['map'],_0x52620c=![];if(!_0x3f6cfd||_0xa0e6e0)return;try{_0x3038a8=readSnapshot(_0x26dd6b);}catch{}},_0x20f760=_0x21bd0b=>{const _0x685583=_0x1e7c8c,_0x24f4a9=new Map();let _0x568252=_0x45116a;const _0x5dd16b=_0x52620c||_0x21bd0b[_0x685583(0x1ef)][_0x685583(0x20d)]!==_0x3038a8['map']['itemId'],_0x4c9e2d=structuredClone(_0x3038a8),_0x41efa8=[];let _0x3041a6=![];const _0x208c04=_0x47cdf1=>{const _0x27e982=_0x685583,_0x1e334e=originKey(_0x47cdf1);if(_0x24f4a9[_0x27e982(0x232)](_0x1e334e))return;if(_0x24f4a9[_0x27e982(0x20b)]>=_0x579dd6){_0x568252=!![];return;}_0x24f4a9[_0x27e982(0x1f8)](_0x1e334e,structuredClone(_0x47cdf1));};if(!_0x5dd16b)for(const _0x35aeec of[..._0x5754fc]['sort']((_0x1a674b,_0x1f0ecf)=>_0x1a674b['sequence']-_0x1f0ecf['sequence'])){if(_0x35aeec[_0x685583(0x20e)]!==_0x4665d2){_0x568252=!![];continue;}if(_0x35aeec['kind']==='visibility'){_0x208c04(_0x35aeec[_0x685583(0x22c)]);const _0x2aef8f=_0x4c9e2d['layers']['find'](({id:_0x517665})=>_0x517665===_0x35aeec['layerId']);if(!_0x2aef8f||_0x2aef8f['visible']!==_0x35aeec['before']){_0x568252=!![];continue;}_0x2aef8f['visible']=_0x35aeec['after'];continue;}!sameSnapshot(_0x4c9e2d[_0x685583(0x21c)],_0x35aeec[_0x685583(0x214)])&&(_0x568252=!![]);if(_0x35aeec[_0x685583(0x21e)]==='active'){_0x41efa8['push'](_0x35aeec);if(sameSnapshot(_0x35aeec['before'],_0x21bd0b['viewpoint']))continue;if(_0x35aeec['ownershipInvalidated']||_0x26dd6b[_0x685583(0x220)]||!matchesNavigationTarget(_0x21bd0b[_0x685583(0x21c)],_0x35aeec[_0x685583(0x217)])){_0x35aeec['ownershipInvalidated']=!![],_0x568252=!![];continue;}_0x4c9e2d['viewpoint']=structuredClone(_0x21bd0b['viewpoint']),_0x3041a6=!![];}else _0x35aeec['ownershipInvalidated']||_0x26dd6b[_0x685583(0x220)]||!_0x35aeec[_0x685583(0x203)]||!matchesNavigationTarget(_0x35aeec['after'],_0x35aeec['target'])?_0x568252=!![]:(!sameSnapshot(_0x35aeec[_0x685583(0x214)],_0x35aeec[_0x685583(0x203)])&&_0x208c04(_0x35aeec[_0x685583(0x22c)]),_0x4c9e2d['viewpoint']=structuredClone(_0x35aeec['after']));}else _0x568252=!![];if(!sameSnapshot(_0x4c9e2d,_0x21bd0b))_0x568252=!![];return{'hasExternalChanges':_0x568252,'defer':_0x3041a6&&!_0x568252,'mapReplaced':_0x5dd16b,'operationOrigins':[..._0x24f4a9[_0x685583(0x229)]()],'retained':_0x41efa8};},_0x137023=()=>{const _0xd85a24=_0x1e7c8c;if(_0xa0e6e0)return;_0x56af37();if(!_0x26dd6b['ready']||!_0x26dd6b[_0xd85a24(0x1ef)]||!_0x26dd6b['center'])return;const _0x4a31d3=readSnapshot(_0x26dd6b),_0x47c385=_0x45116a,_0x267b15=_0x20f760(_0x4a31d3),_0x824d71=!sameSnapshot(_0x3038a8,_0x4a31d3);if(_0x267b15[_0xd85a24(0x207)])return;if(!_0x824d71&&!_0x47c385&&_0x267b15[_0xd85a24(0x227)]['length']===0x0&&!_0x267b15[_0xd85a24(0x1ff)]){_0x5754fc[_0xd85a24(0x201)]=0x0;for(const _0x2a212a of _0x267b15['retained']){_0x5754fc['push'](_0x2a212a);}return;}_0x3038a8=structuredClone(_0x4a31d3),_0x5754fc['length']=0x0,_0x45116a=![],_0x52620c=![];if(!_0x267b15['mapReplaced'])for(const _0x12072e of _0x267b15['retained']){_0x12072e[_0xd85a24(0x214)]=structuredClone(_0x4a31d3[_0xd85a24(0x21c)]),_0x5754fc[_0xd85a24(0x228)](_0x12072e);}const _0x44a1d8=ArcGISMapSnapshotNotificationSchema[_0xd85a24(0x225)]({'snapshot':_0x4a31d3,'operationOrigins':_0x267b15['operationOrigins'],'hasExternalChanges':_0x267b15[_0xd85a24(0x1ff)]});for(const _0x14cd0e of _0x4256c4){_0x14cd0e(structuredClone(_0x44a1d8));}},_0x5b2910=()=>{const _0x157ba2=_0x1e7c8c;if(_0xa0e6e0)return;_0x56af37();if(_0x21adf4!==null)return;_0x21adf4=_0x44b142[_0x157ba2(0x22b)](()=>{_0x21adf4=null,_0x137023();});},_0x42ed87=_0x44b142[_0x1e7c8c(0x1f9)](()=>[_0x26dd6b[_0x1e7c8c(0x216)],_0x26dd6b['center']?.[_0x1e7c8c(0x215)],_0x26dd6b['center']?.[_0x1e7c8c(0x22e)],_0x26dd6b['zoom'],_0x26dd6b['scale']],_0x25c920=>{_0x338f00(_0x25c920),_0x5b2910();}),_0x45588a=_0x44b142['watch'](()=>layerProjection(_0x26dd6b),_0x5b2910),_0x6c7858=_0x44b142['watch'](()=>_0x26dd6b['interacting'],()=>{const _0x3861cf=_0x1e7c8c;if(_0x26dd6b[_0x3861cf(0x220)])_0x2fb4a5();_0x5b2910();}),_0x480ca3=_0x44b142['watch'](()=>_0x26dd6b[_0x1e7c8c(0x1ef)],_0x5b2910),_0x5bb38e={async 'getSnapshot'(){const _0x3b5c77=_0x56af37(),_0x2b573d=readSnapshot(_0x26dd6b);if(_0x3b5c77)_0x5b2910();return _0x2b573d;},'subscribe'(_0x5916e4){const _0xc62481=_0x1e7c8c;if(_0xa0e6e0)return()=>void 0x0;_0x4256c4[_0xc62481(0x1f7)](_0x5916e4);if(_0x56af37())_0x5b2910();return()=>{_0x4256c4['delete'](_0x5916e4);if(_0x4256c4['size']===0x0)_0x2d226b(!![]);};},async 'execute'(_0x385832,_0x317632){const _0x7b8773=_0x1e7c8c,_0x2659bd=ArcGISMapCommandSchema['safeParse'](_0x385832),_0x4909b3=_0x317632?.[_0x7b8773(0x22c)]?ArcGISMapOperationOriginSchema['safeParse'](_0x317632['origin']):null,_0x54d818=_0x4909b3?.[_0x7b8773(0x1e8)]?_0x4909b3[_0x7b8773(0x22a)]:null;if(!_0x2659bd['success']){const _0xd7f8a3=_0x385832?.['type'];return failure(_0x26dd6b,_0x385832,_0xd7f8a3==='goTo'||_0xd7f8a3===_0x7b8773(0x21a)?_0x7b8773(0x206):'unsupported-command','Map\x20command\x20is\x20not\x20supported\x20or\x20has\x20invalid\x20arguments.');}const _0x562b7e=_0x56af37();if(!_0x26dd6b[_0x7b8773(0x212)]||!_0x26dd6b['map']||!_0x26dd6b['center'])return failure(_0x26dd6b,_0x2659bd['data'],_0x7b8773(0x210),'ArcGIS\x20map\x20view\x20is\x20not\x20ready.');if(_0x562b7e)_0x5b2910();const _0xc75d5d=_0x2a9fe3,_0x46ae9f=()=>_0xa0e6e0?failure(_0x26dd6b,_0x2659bd['data'],_0x7b8773(0x200),'Map\x20controller\x20is\x20no\x20longer\x20active.'):_0x317632?.[_0x7b8773(0x21d)]?.[_0x7b8773(0x1f5)]?failure(_0x26dd6b,_0x2659bd['data'],'cancelled','Map\x20command\x20was\x20cancelled.'):null,_0x2fccc5=_0x46ae9f();if(_0x2fccc5)return _0x2fccc5;try{if(_0x2659bd['data']['type']==='goTo'){const {longitude:_0x5085a3,latitude:_0x6a8a6e}=_0x2659bd[_0x7b8773(0x22a)][_0x7b8773(0x217)][_0x7b8773(0x1f6)],_0x433058=_0x54d818?_0xf66d72({'kind':'navigation','affectedFields':['viewpoint.center',_0x7b8773(0x22d),_0x7b8773(0x202)],'sequence':++_0x43117,'origin':structuredClone(_0x54d818),'lifecycle':_0x4665d2,'state':'active','before':structuredClone(readSnapshot(_0x26dd6b)[_0x7b8773(0x21c)]),'target':{'longitude':_0x5085a3,'latitude':_0x6a8a6e,'zoom':_0x2659bd[_0x7b8773(0x22a)][_0x7b8773(0x217)][_0x7b8773(0x1eb)]??_0x26dd6b[_0x7b8773(0x1eb)]},'after':null,'ownershipInvalidated':_0x26dd6b['interacting']}):null,_0x3b9ebf=()=>{if(!_0x433058)return;_0x433058['state']='aborted',_0x2fd5f4(_0x433058);};_0x317632?.[_0x7b8773(0x21d)]?.['addEventListener']('abort',_0x3b9ebf,{'once':!![]});let _0x4be415=![];try{const _0x1f7798={'signal':_0x317632?.[_0x7b8773(0x21d)],..._0x54d818?{'animate':![]}:{}},_0x272d50=_0x26dd6b[_0x7b8773(0x221)]({'center':[_0x5085a3,_0x6a8a6e],..._0x2659bd[_0x7b8773(0x22a)][_0x7b8773(0x217)]['zoom']===void 0x0?{}:{'zoom':_0x2659bd['data']['target'][_0x7b8773(0x1eb)]}},_0x1f7798);_0x5b2910(),await _0x272d50;const _0x54386e=_0x56af37();if(_0x54386e)_0x5b2910();if(_0x26dd6b['map']!==_0xc75d5d)return failure(_0x26dd6b,_0x2659bd['data'],'stale-controller',_0x7b8773(0x1e9));const _0x24f8bb=_0x46ae9f();if(_0x24f8bb)return _0x24f8bb;_0x4be415=!![],_0x433058&&(_0x433058[_0x7b8773(0x21e)]=_0x7b8773(0x205),_0x433058['after']=structuredClone(readSnapshot(_0x26dd6b)[_0x7b8773(0x21c)])),_0x5b2910();}finally{_0x317632?.[_0x7b8773(0x21d)]?.[_0x7b8773(0x1f1)]('abort',_0x3b9ebf);if(!_0x4be415)_0x3b9ebf();}}else{const {layerId:_0x519fa9,visible:_0x37b1eb}=_0x2659bd['data'],_0x5383d0=collectOperationalLayers(_0x26dd6b[_0x7b8773(0x1ef)][_0x7b8773(0x223)])[_0x7b8773(0x1fa)](_0x432f6a=>_0x432f6a['id']===_0x519fa9);if(!_0x5383d0)return failure(_0x26dd6b,_0x2659bd[_0x7b8773(0x22a)],_0x7b8773(0x1fe),'Layer\x20'+_0x519fa9+_0x7b8773(0x21b));const _0x31f20d=_0x46ae9f();if(_0x31f20d)return _0x31f20d;_0x54d818&&_0x5383d0[_0x7b8773(0x230)]!==_0x37b1eb&&_0xf66d72({'kind':_0x7b8773(0x1fc),'affectedFields':['layers.visible'],'sequence':++_0x43117,'origin':structuredClone(_0x54d818),'lifecycle':_0x4665d2,'state':'completed','layerId':_0x519fa9,'before':_0x5383d0['visible'],'after':_0x37b1eb}),_0x5383d0['visible']=_0x37b1eb,_0x5b2910();}const _0x2d4961=_0x46ae9f();if(_0x2d4961)return _0x2d4961;return{'ok':!![],'command':_0x2659bd['data'],'snapshot':readSnapshot(_0x26dd6b)};}catch(_0x4e44c4){const _0x54bb52=_0x46ae9f();if(_0x54bb52)return _0x54bb52;const _0x1199ba=_0x4e44c4 instanceof MapControllerError?_0x4e44c4[_0x7b8773(0x209)]:_0x26dd6b['ready']?'execution-failed':_0x7b8773(0x210);return failure(_0x26dd6b,_0x2659bd[_0x7b8773(0x22a)],_0x1199ba,_0x4e44c4 instanceof Error?_0x4e44c4['message']:String(_0x4e44c4));}},'describeFeatureLayer'(_0x426d3b,_0x5b0073){return _0x5580ea['describeFeatureLayer'](_0x426d3b,_0x5b0073);},'validateFeatureFilter'(_0x3ab79e,_0x166b26){const _0x4b5a1e=_0x1e7c8c;return _0x5580ea[_0x4b5a1e(0x20a)](_0x3ab79e,_0x166b26);},'setFeatureFilter'(_0x4a674c,_0xa70385){return _0x5580ea['setFeatureFilter'](_0x4a674c,_0xa70385);},'clearFeatureFilter'(_0xdea61,_0x5ade85){return _0x5580ea['clearFeatureFilter'](_0xdea61,_0x5ade85);},'queryFeatureLayer'(_0x4caa55,_0x3fcec1){return _0x46e69c['queryFeatureLayer'](_0x4caa55,_0x3fcec1);}};return{'controller':_0x5bb38e,'dispose'(){const _0x539242=_0x1e7c8c;if(_0xa0e6e0)return;_0xa0e6e0=!![],_0x46e69c['dispose'](),_0x5580ea['dispose'](),_0x42ed87['remove'](),_0x45588a[_0x539242(0x219)](),_0x6c7858['remove'](),_0x480ca3[_0x539242(0x219)](),_0x2d226b(![]),_0x4256c4['clear']();}};}export{createArcGISMapController};
|