@phila/phila-ui-map-core 0.0.1-beta.2

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.
@@ -0,0 +1,998 @@
1
+ import { BaseProps } from '@phila/phila-ui-core';
2
+ import { ColorArraySpecification } from 'maplibre-gl';
3
+ import { ColorSpecification } from 'maplibre-gl';
4
+ import { ComponentOptionsMixin } from 'vue';
5
+ import { ComponentProvideOptions } from 'vue';
6
+ import { ComputedRef } from 'vue';
7
+ import { DataDrivenPropertyValueSpecification } from 'maplibre-gl';
8
+ import { default as default_2 } from 'maplibre-gl';
9
+ import { DefineComponent } from 'vue';
10
+ import { ExpressionSpecification } from 'maplibre-gl';
11
+ import { ExtractPropTypes } from 'vue';
12
+ import { FilterSpecification } from 'maplibre-gl';
13
+ import { FormattedSpecification } from 'maplibre-gl';
14
+ import { IControl } from 'maplibre-gl';
15
+ import { LayerSpecification } from 'maplibre-gl';
16
+ import { default as Map_2 } from './Map.vue';
17
+ import { Map as Map_3 } from 'maplibre-gl';
18
+ import { NumberArraySpecification } from 'maplibre-gl';
19
+ import { PaddingSpecification } from 'maplibre-gl';
20
+ import { PointLike } from 'maplibre-gl';
21
+ import { PropertyValueSpecification } from 'maplibre-gl';
22
+ import { PropType } from 'vue';
23
+ import { PublicProps } from 'vue';
24
+ import { Ref } from 'vue';
25
+ import { ResolvedImageSpecification } from 'maplibre-gl';
26
+ import { SourceSpecification } from 'maplibre-gl';
27
+ import { TransitionSpecification } from 'maplibre-gl';
28
+ import { VariableAnchorOffsetCollectionSpecification } from 'maplibre-gl';
29
+ import { VisibilitySpecification } from 'maplibre-gl';
30
+
31
+ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MapLayerProps>, {
32
+ sourceLayer: undefined;
33
+ paint: () => {};
34
+ layout: () => {};
35
+ filter: undefined;
36
+ minzoom: undefined;
37
+ maxzoom: undefined;
38
+ beforeId: undefined;
39
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MapLayerProps>, {
40
+ sourceLayer: undefined;
41
+ paint: () => {};
42
+ layout: () => {};
43
+ filter: undefined;
44
+ minzoom: undefined;
45
+ maxzoom: undefined;
46
+ beforeId: undefined;
47
+ }>>> & Readonly<{}>, {
48
+ sourceLayer: string;
49
+ paint: {
50
+ "fill-antialias"?: PropertyValueSpecification<boolean>;
51
+ "fill-opacity"?: DataDrivenPropertyValueSpecification<number>;
52
+ "fill-opacity-transition"?: TransitionSpecification;
53
+ "fill-color"?: DataDrivenPropertyValueSpecification<ColorSpecification>;
54
+ "fill-color-transition"?: TransitionSpecification;
55
+ "fill-outline-color"?: DataDrivenPropertyValueSpecification<ColorSpecification>;
56
+ "fill-outline-color-transition"?: TransitionSpecification;
57
+ "fill-translate"?: PropertyValueSpecification<[number, number]>;
58
+ "fill-translate-transition"?: TransitionSpecification;
59
+ "fill-translate-anchor"?: PropertyValueSpecification<"map" | "viewport">;
60
+ "fill-pattern"?: DataDrivenPropertyValueSpecification<ResolvedImageSpecification>;
61
+ "fill-pattern-transition"?: TransitionSpecification;
62
+ } | {
63
+ "line-opacity"?: DataDrivenPropertyValueSpecification<number>;
64
+ "line-opacity-transition"?: TransitionSpecification;
65
+ "line-color"?: DataDrivenPropertyValueSpecification<ColorSpecification>;
66
+ "line-color-transition"?: TransitionSpecification;
67
+ "line-translate"?: PropertyValueSpecification<[number, number]>;
68
+ "line-translate-transition"?: TransitionSpecification;
69
+ "line-translate-anchor"?: PropertyValueSpecification<"map" | "viewport">;
70
+ "line-width"?: DataDrivenPropertyValueSpecification<number>;
71
+ "line-width-transition"?: TransitionSpecification;
72
+ "line-gap-width"?: DataDrivenPropertyValueSpecification<number>;
73
+ "line-gap-width-transition"?: TransitionSpecification;
74
+ "line-offset"?: DataDrivenPropertyValueSpecification<number>;
75
+ "line-offset-transition"?: TransitionSpecification;
76
+ "line-blur"?: DataDrivenPropertyValueSpecification<number>;
77
+ "line-blur-transition"?: TransitionSpecification;
78
+ "line-dasharray"?: DataDrivenPropertyValueSpecification<Array<number>>;
79
+ "line-dasharray-transition"?: TransitionSpecification;
80
+ "line-pattern"?: DataDrivenPropertyValueSpecification<ResolvedImageSpecification>;
81
+ "line-pattern-transition"?: TransitionSpecification;
82
+ "line-gradient"?: ExpressionSpecification;
83
+ } | {
84
+ "icon-opacity"?: DataDrivenPropertyValueSpecification<number>;
85
+ "icon-opacity-transition"?: TransitionSpecification;
86
+ "icon-color"?: DataDrivenPropertyValueSpecification<ColorSpecification>;
87
+ "icon-color-transition"?: TransitionSpecification;
88
+ "icon-halo-color"?: DataDrivenPropertyValueSpecification<ColorSpecification>;
89
+ "icon-halo-color-transition"?: TransitionSpecification;
90
+ "icon-halo-width"?: DataDrivenPropertyValueSpecification<number>;
91
+ "icon-halo-width-transition"?: TransitionSpecification;
92
+ "icon-halo-blur"?: DataDrivenPropertyValueSpecification<number>;
93
+ "icon-halo-blur-transition"?: TransitionSpecification;
94
+ "icon-translate"?: PropertyValueSpecification<[number, number]>;
95
+ "icon-translate-transition"?: TransitionSpecification;
96
+ "icon-translate-anchor"?: PropertyValueSpecification<"map" | "viewport">;
97
+ "text-opacity"?: DataDrivenPropertyValueSpecification<number>;
98
+ "text-opacity-transition"?: TransitionSpecification;
99
+ "text-color"?: DataDrivenPropertyValueSpecification<ColorSpecification>;
100
+ "text-color-transition"?: TransitionSpecification;
101
+ "text-halo-color"?: DataDrivenPropertyValueSpecification<ColorSpecification>;
102
+ "text-halo-color-transition"?: TransitionSpecification;
103
+ "text-halo-width"?: DataDrivenPropertyValueSpecification<number>;
104
+ "text-halo-width-transition"?: TransitionSpecification;
105
+ "text-halo-blur"?: DataDrivenPropertyValueSpecification<number>;
106
+ "text-halo-blur-transition"?: TransitionSpecification;
107
+ "text-translate"?: PropertyValueSpecification<[number, number]>;
108
+ "text-translate-transition"?: TransitionSpecification;
109
+ "text-translate-anchor"?: PropertyValueSpecification<"map" | "viewport">;
110
+ } | {
111
+ "circle-radius"?: DataDrivenPropertyValueSpecification<number>;
112
+ "circle-radius-transition"?: TransitionSpecification;
113
+ "circle-color"?: DataDrivenPropertyValueSpecification<ColorSpecification>;
114
+ "circle-color-transition"?: TransitionSpecification;
115
+ "circle-blur"?: DataDrivenPropertyValueSpecification<number>;
116
+ "circle-blur-transition"?: TransitionSpecification;
117
+ "circle-opacity"?: DataDrivenPropertyValueSpecification<number>;
118
+ "circle-opacity-transition"?: TransitionSpecification;
119
+ "circle-translate"?: PropertyValueSpecification<[number, number]>;
120
+ "circle-translate-transition"?: TransitionSpecification;
121
+ "circle-translate-anchor"?: PropertyValueSpecification<"map" | "viewport">;
122
+ "circle-pitch-scale"?: PropertyValueSpecification<"map" | "viewport">;
123
+ "circle-pitch-alignment"?: PropertyValueSpecification<"map" | "viewport">;
124
+ "circle-stroke-width"?: DataDrivenPropertyValueSpecification<number>;
125
+ "circle-stroke-width-transition"?: TransitionSpecification;
126
+ "circle-stroke-color"?: DataDrivenPropertyValueSpecification<ColorSpecification>;
127
+ "circle-stroke-color-transition"?: TransitionSpecification;
128
+ "circle-stroke-opacity"?: DataDrivenPropertyValueSpecification<number>;
129
+ "circle-stroke-opacity-transition"?: TransitionSpecification;
130
+ } | {
131
+ "heatmap-radius"?: DataDrivenPropertyValueSpecification<number>;
132
+ "heatmap-radius-transition"?: TransitionSpecification;
133
+ "heatmap-weight"?: DataDrivenPropertyValueSpecification<number>;
134
+ "heatmap-intensity"?: PropertyValueSpecification<number>;
135
+ "heatmap-intensity-transition"?: TransitionSpecification;
136
+ "heatmap-color"?: ExpressionSpecification;
137
+ "heatmap-opacity"?: PropertyValueSpecification<number>;
138
+ "heatmap-opacity-transition"?: TransitionSpecification;
139
+ } | {
140
+ "fill-extrusion-opacity"?: PropertyValueSpecification<number>;
141
+ "fill-extrusion-opacity-transition"?: TransitionSpecification;
142
+ "fill-extrusion-color"?: DataDrivenPropertyValueSpecification<ColorSpecification>;
143
+ "fill-extrusion-color-transition"?: TransitionSpecification;
144
+ "fill-extrusion-translate"?: PropertyValueSpecification<[number, number]>;
145
+ "fill-extrusion-translate-transition"?: TransitionSpecification;
146
+ "fill-extrusion-translate-anchor"?: PropertyValueSpecification<"map" | "viewport">;
147
+ "fill-extrusion-pattern"?: DataDrivenPropertyValueSpecification<ResolvedImageSpecification>;
148
+ "fill-extrusion-pattern-transition"?: TransitionSpecification;
149
+ "fill-extrusion-height"?: DataDrivenPropertyValueSpecification<number>;
150
+ "fill-extrusion-height-transition"?: TransitionSpecification;
151
+ "fill-extrusion-base"?: DataDrivenPropertyValueSpecification<number>;
152
+ "fill-extrusion-base-transition"?: TransitionSpecification;
153
+ "fill-extrusion-vertical-gradient"?: PropertyValueSpecification<boolean>;
154
+ } | {
155
+ "raster-opacity"?: PropertyValueSpecification<number>;
156
+ "raster-opacity-transition"?: TransitionSpecification;
157
+ "raster-hue-rotate"?: PropertyValueSpecification<number>;
158
+ "raster-hue-rotate-transition"?: TransitionSpecification;
159
+ "raster-brightness-min"?: PropertyValueSpecification<number>;
160
+ "raster-brightness-min-transition"?: TransitionSpecification;
161
+ "raster-brightness-max"?: PropertyValueSpecification<number>;
162
+ "raster-brightness-max-transition"?: TransitionSpecification;
163
+ "raster-saturation"?: PropertyValueSpecification<number>;
164
+ "raster-saturation-transition"?: TransitionSpecification;
165
+ "raster-contrast"?: PropertyValueSpecification<number>;
166
+ "raster-contrast-transition"?: TransitionSpecification;
167
+ "raster-resampling"?: PropertyValueSpecification<"linear" | "nearest">;
168
+ "raster-fade-duration"?: PropertyValueSpecification<number>;
169
+ } | {
170
+ "hillshade-illumination-direction"?: PropertyValueSpecification<NumberArraySpecification>;
171
+ "hillshade-illumination-altitude"?: PropertyValueSpecification<NumberArraySpecification>;
172
+ "hillshade-illumination-anchor"?: PropertyValueSpecification<"map" | "viewport">;
173
+ "hillshade-exaggeration"?: PropertyValueSpecification<number>;
174
+ "hillshade-exaggeration-transition"?: TransitionSpecification;
175
+ "hillshade-shadow-color"?: PropertyValueSpecification<ColorArraySpecification>;
176
+ "hillshade-shadow-color-transition"?: TransitionSpecification;
177
+ "hillshade-highlight-color"?: PropertyValueSpecification<ColorArraySpecification>;
178
+ "hillshade-highlight-color-transition"?: TransitionSpecification;
179
+ "hillshade-accent-color"?: PropertyValueSpecification<ColorSpecification>;
180
+ "hillshade-accent-color-transition"?: TransitionSpecification;
181
+ "hillshade-method"?: PropertyValueSpecification<"standard" | "basic" | "combined" | "igor" | "multidirectional">;
182
+ } | {
183
+ "color-relief-opacity"?: PropertyValueSpecification<number>;
184
+ "color-relief-opacity-transition"?: TransitionSpecification;
185
+ "color-relief-color"?: ExpressionSpecification;
186
+ } | {
187
+ "background-color"?: PropertyValueSpecification<ColorSpecification>;
188
+ "background-color-transition"?: TransitionSpecification;
189
+ "background-pattern"?: PropertyValueSpecification<ResolvedImageSpecification>;
190
+ "background-pattern-transition"?: TransitionSpecification;
191
+ "background-opacity"?: PropertyValueSpecification<number>;
192
+ "background-opacity-transition"?: TransitionSpecification;
193
+ };
194
+ layout: {
195
+ "fill-sort-key"?: DataDrivenPropertyValueSpecification<number>;
196
+ visibility?: VisibilitySpecification;
197
+ } | {
198
+ "line-cap"?: PropertyValueSpecification<"butt" | "round" | "square">;
199
+ "line-join"?: DataDrivenPropertyValueSpecification<"bevel" | "round" | "miter">;
200
+ "line-miter-limit"?: PropertyValueSpecification<number>;
201
+ "line-round-limit"?: PropertyValueSpecification<number>;
202
+ "line-sort-key"?: DataDrivenPropertyValueSpecification<number>;
203
+ visibility?: VisibilitySpecification;
204
+ } | {
205
+ "symbol-placement"?: PropertyValueSpecification<"point" | "line" | "line-center">;
206
+ "symbol-spacing"?: PropertyValueSpecification<number>;
207
+ "symbol-avoid-edges"?: PropertyValueSpecification<boolean>;
208
+ "symbol-sort-key"?: DataDrivenPropertyValueSpecification<number>;
209
+ "symbol-z-order"?: PropertyValueSpecification<"auto" | "viewport-y" | "source">;
210
+ "icon-allow-overlap"?: PropertyValueSpecification<boolean>;
211
+ "icon-overlap"?: PropertyValueSpecification<"never" | "always" | "cooperative">;
212
+ "icon-ignore-placement"?: PropertyValueSpecification<boolean>;
213
+ "icon-optional"?: PropertyValueSpecification<boolean>;
214
+ "icon-rotation-alignment"?: PropertyValueSpecification<"map" | "viewport" | "auto">;
215
+ "icon-size"?: DataDrivenPropertyValueSpecification<number>;
216
+ "icon-text-fit"?: PropertyValueSpecification<"none" | "width" | "height" | "both">;
217
+ "icon-text-fit-padding"?: PropertyValueSpecification<[number, number, number, number]>;
218
+ "icon-image"?: DataDrivenPropertyValueSpecification<ResolvedImageSpecification>;
219
+ "icon-rotate"?: DataDrivenPropertyValueSpecification<number>;
220
+ "icon-padding"?: DataDrivenPropertyValueSpecification<PaddingSpecification>;
221
+ "icon-keep-upright"?: PropertyValueSpecification<boolean>;
222
+ "icon-offset"?: DataDrivenPropertyValueSpecification<[number, number]>;
223
+ "icon-anchor"?: DataDrivenPropertyValueSpecification<"center" | "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right">;
224
+ "icon-pitch-alignment"?: PropertyValueSpecification<"map" | "viewport" | "auto">;
225
+ "text-pitch-alignment"?: PropertyValueSpecification<"map" | "viewport" | "auto">;
226
+ "text-rotation-alignment"?: PropertyValueSpecification<"map" | "viewport" | "viewport-glyph" | "auto">;
227
+ "text-field"?: DataDrivenPropertyValueSpecification<FormattedSpecification>;
228
+ "text-font"?: DataDrivenPropertyValueSpecification<Array<string>>;
229
+ "text-size"?: DataDrivenPropertyValueSpecification<number>;
230
+ "text-max-width"?: DataDrivenPropertyValueSpecification<number>;
231
+ "text-line-height"?: PropertyValueSpecification<number>;
232
+ "text-letter-spacing"?: DataDrivenPropertyValueSpecification<number>;
233
+ "text-justify"?: DataDrivenPropertyValueSpecification<"auto" | "left" | "center" | "right">;
234
+ "text-radial-offset"?: DataDrivenPropertyValueSpecification<number>;
235
+ "text-variable-anchor"?: PropertyValueSpecification<Array<"center" | "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right">>;
236
+ "text-variable-anchor-offset"?: DataDrivenPropertyValueSpecification<VariableAnchorOffsetCollectionSpecification>;
237
+ "text-anchor"?: DataDrivenPropertyValueSpecification<"center" | "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right">;
238
+ "text-max-angle"?: PropertyValueSpecification<number>;
239
+ "text-writing-mode"?: PropertyValueSpecification<Array<"horizontal" | "vertical">>;
240
+ "text-rotate"?: DataDrivenPropertyValueSpecification<number>;
241
+ "text-padding"?: PropertyValueSpecification<number>;
242
+ "text-keep-upright"?: PropertyValueSpecification<boolean>;
243
+ "text-transform"?: DataDrivenPropertyValueSpecification<"none" | "uppercase" | "lowercase">;
244
+ "text-offset"?: DataDrivenPropertyValueSpecification<[number, number]>;
245
+ "text-allow-overlap"?: PropertyValueSpecification<boolean>;
246
+ "text-overlap"?: PropertyValueSpecification<"never" | "always" | "cooperative">;
247
+ "text-ignore-placement"?: PropertyValueSpecification<boolean>;
248
+ "text-optional"?: PropertyValueSpecification<boolean>;
249
+ visibility?: VisibilitySpecification;
250
+ } | {
251
+ "circle-sort-key"?: DataDrivenPropertyValueSpecification<number>;
252
+ visibility?: VisibilitySpecification;
253
+ } | {
254
+ visibility?: VisibilitySpecification;
255
+ } | {
256
+ visibility?: VisibilitySpecification;
257
+ } | {
258
+ visibility?: VisibilitySpecification;
259
+ } | {
260
+ visibility?: VisibilitySpecification;
261
+ } | {
262
+ visibility?: VisibilitySpecification;
263
+ } | {
264
+ visibility?: VisibilitySpecification;
265
+ };
266
+ filter: FilterSpecification;
267
+ minzoom: number;
268
+ maxzoom: number;
269
+ beforeId: string;
270
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
271
+
272
+ declare const __VLS_component_2: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_2<__VLS_TypePropsToRuntimeProps_2<MapMarkerProps>, {
273
+ color: string;
274
+ popup: undefined;
275
+ draggable: boolean;
276
+ rotation: number;
277
+ offset: undefined;
278
+ icon: undefined;
279
+ iconSize: number;
280
+ iconColor: undefined;
281
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
282
+ dragstart: (lngLat: {
283
+ lng: number;
284
+ lat: number;
285
+ }) => void;
286
+ drag: (lngLat: {
287
+ lng: number;
288
+ lat: number;
289
+ }) => void;
290
+ dragend: (lngLat: {
291
+ lng: number;
292
+ lat: number;
293
+ }) => void;
294
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_2<__VLS_TypePropsToRuntimeProps_2<MapMarkerProps>, {
295
+ color: string;
296
+ popup: undefined;
297
+ draggable: boolean;
298
+ rotation: number;
299
+ offset: undefined;
300
+ icon: undefined;
301
+ iconSize: number;
302
+ iconColor: undefined;
303
+ }>>> & Readonly<{
304
+ onDrag?: ((lngLat: {
305
+ lng: number;
306
+ lat: number;
307
+ }) => any) | undefined;
308
+ onDragend?: ((lngLat: {
309
+ lng: number;
310
+ lat: number;
311
+ }) => any) | undefined;
312
+ onDragstart?: ((lngLat: {
313
+ lng: number;
314
+ lat: number;
315
+ }) => any) | undefined;
316
+ }>, {
317
+ icon: string;
318
+ iconSize: number;
319
+ color: string;
320
+ popup: string;
321
+ draggable: boolean;
322
+ rotation: number;
323
+ offset: default_2.PointLike;
324
+ iconColor: string;
325
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
326
+
327
+ declare const __VLS_component_3: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_3<__VLS_TypePropsToRuntimeProps_3<MapNavigationControlProps>, {
328
+ position: string;
329
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_3<__VLS_TypePropsToRuntimeProps_3<MapNavigationControlProps>, {
330
+ position: string;
331
+ }>>> & Readonly<{}>, {
332
+ position: MapControlPosition;
333
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
334
+
335
+ declare const __VLS_component_4: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToRuntimeProps_4<MapFloatingPanelProps>, {
336
+ position: string;
337
+ visible: boolean;
338
+ offset: () => {
339
+ x: number;
340
+ y: number;
341
+ };
342
+ leaveRoomForControls: boolean;
343
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToRuntimeProps_4<MapFloatingPanelProps>, {
344
+ position: string;
345
+ visible: boolean;
346
+ offset: () => {
347
+ x: number;
348
+ y: number;
349
+ };
350
+ leaveRoomForControls: boolean;
351
+ }>>> & Readonly<{}>, {
352
+ position: MapControlPosition;
353
+ offset: {
354
+ x: number;
355
+ y: number;
356
+ };
357
+ visible: boolean;
358
+ leaveRoomForControls: boolean;
359
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
360
+
361
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
362
+
363
+ declare type __VLS_NonUndefinedable_10<T> = T extends undefined ? never : T;
364
+
365
+ declare type __VLS_NonUndefinedable_2<T> = T extends undefined ? never : T;
366
+
367
+ declare type __VLS_NonUndefinedable_3<T> = T extends undefined ? never : T;
368
+
369
+ declare type __VLS_NonUndefinedable_4<T> = T extends undefined ? never : T;
370
+
371
+ declare type __VLS_NonUndefinedable_5<T> = T extends undefined ? never : T;
372
+
373
+ declare type __VLS_NonUndefinedable_6<T> = T extends undefined ? never : T;
374
+
375
+ declare type __VLS_NonUndefinedable_7<T> = T extends undefined ? never : T;
376
+
377
+ declare type __VLS_NonUndefinedable_8<T> = T extends undefined ? never : T;
378
+
379
+ declare type __VLS_NonUndefinedable_9<T> = T extends undefined ? never : T;
380
+
381
+ declare type __VLS_Prettify<T> = {
382
+ [K in keyof T]: T[K];
383
+ } & {};
384
+
385
+ declare type __VLS_Prettify_10<T> = {
386
+ [K in keyof T]: T[K];
387
+ } & {};
388
+
389
+ declare type __VLS_Prettify_2<T> = {
390
+ [K in keyof T]: T[K];
391
+ } & {};
392
+
393
+ declare type __VLS_Prettify_3<T> = {
394
+ [K in keyof T]: T[K];
395
+ } & {};
396
+
397
+ declare type __VLS_Prettify_4<T> = {
398
+ [K in keyof T]: T[K];
399
+ } & {};
400
+
401
+ declare type __VLS_Prettify_5<T> = {
402
+ [K in keyof T]: T[K];
403
+ } & {};
404
+
405
+ declare type __VLS_Prettify_6<T> = {
406
+ [K in keyof T]: T[K];
407
+ } & {};
408
+
409
+ declare type __VLS_Prettify_7<T> = {
410
+ [K in keyof T]: T[K];
411
+ } & {};
412
+
413
+ declare type __VLS_Prettify_8<T> = {
414
+ [K in keyof T]: T[K];
415
+ } & {};
416
+
417
+ declare type __VLS_Prettify_9<T> = {
418
+ [K in keyof T]: T[K];
419
+ } & {};
420
+
421
+ declare function __VLS_template(): {
422
+ default?(_: {}): any;
423
+ };
424
+
425
+ declare function __VLS_template_2(): {
426
+ default?(_: {}): any;
427
+ };
428
+
429
+ declare function __VLS_template_3(): {
430
+ default?(_: {}): any;
431
+ };
432
+
433
+ declare function __VLS_template_4(): {
434
+ default?(_: {}): any;
435
+ };
436
+
437
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
438
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
439
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
440
+ } : {
441
+ type: PropType<T[K]>;
442
+ required: true;
443
+ };
444
+ };
445
+
446
+ declare type __VLS_TypePropsToRuntimeProps_10<T> = {
447
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
448
+ type: PropType<__VLS_NonUndefinedable_10<T[K]>>;
449
+ } : {
450
+ type: PropType<T[K]>;
451
+ required: true;
452
+ };
453
+ };
454
+
455
+ declare type __VLS_TypePropsToRuntimeProps_2<T> = {
456
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
457
+ type: PropType<__VLS_NonUndefinedable_2<T[K]>>;
458
+ } : {
459
+ type: PropType<T[K]>;
460
+ required: true;
461
+ };
462
+ };
463
+
464
+ declare type __VLS_TypePropsToRuntimeProps_3<T> = {
465
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
466
+ type: PropType<__VLS_NonUndefinedable_3<T[K]>>;
467
+ } : {
468
+ type: PropType<T[K]>;
469
+ required: true;
470
+ };
471
+ };
472
+
473
+ declare type __VLS_TypePropsToRuntimeProps_4<T> = {
474
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
475
+ type: PropType<__VLS_NonUndefinedable_4<T[K]>>;
476
+ } : {
477
+ type: PropType<T[K]>;
478
+ required: true;
479
+ };
480
+ };
481
+
482
+ declare type __VLS_TypePropsToRuntimeProps_5<T> = {
483
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
484
+ type: PropType<__VLS_NonUndefinedable_5<T[K]>>;
485
+ } : {
486
+ type: PropType<T[K]>;
487
+ required: true;
488
+ };
489
+ };
490
+
491
+ declare type __VLS_TypePropsToRuntimeProps_6<T> = {
492
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
493
+ type: PropType<__VLS_NonUndefinedable_6<T[K]>>;
494
+ } : {
495
+ type: PropType<T[K]>;
496
+ required: true;
497
+ };
498
+ };
499
+
500
+ declare type __VLS_TypePropsToRuntimeProps_7<T> = {
501
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
502
+ type: PropType<__VLS_NonUndefinedable_7<T[K]>>;
503
+ } : {
504
+ type: PropType<T[K]>;
505
+ required: true;
506
+ };
507
+ };
508
+
509
+ declare type __VLS_TypePropsToRuntimeProps_8<T> = {
510
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
511
+ type: PropType<__VLS_NonUndefinedable_8<T[K]>>;
512
+ } : {
513
+ type: PropType<T[K]>;
514
+ required: true;
515
+ };
516
+ };
517
+
518
+ declare type __VLS_TypePropsToRuntimeProps_9<T> = {
519
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
520
+ type: PropType<__VLS_NonUndefinedable_9<T[K]>>;
521
+ } : {
522
+ type: PropType<T[K]>;
523
+ required: true;
524
+ };
525
+ };
526
+
527
+ declare type __VLS_WithDefaults<P, D> = {
528
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
529
+ default: D[K];
530
+ }> : P[K];
531
+ };
532
+
533
+ declare type __VLS_WithDefaults_10<P, D> = {
534
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_10<P[K] & {
535
+ default: D[K];
536
+ }> : P[K];
537
+ };
538
+
539
+ declare type __VLS_WithDefaults_2<P, D> = {
540
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_2<P[K] & {
541
+ default: D[K];
542
+ }> : P[K];
543
+ };
544
+
545
+ declare type __VLS_WithDefaults_3<P, D> = {
546
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_3<P[K] & {
547
+ default: D[K];
548
+ }> : P[K];
549
+ };
550
+
551
+ declare type __VLS_WithDefaults_4<P, D> = {
552
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_4<P[K] & {
553
+ default: D[K];
554
+ }> : P[K];
555
+ };
556
+
557
+ declare type __VLS_WithDefaults_5<P, D> = {
558
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_5<P[K] & {
559
+ default: D[K];
560
+ }> : P[K];
561
+ };
562
+
563
+ declare type __VLS_WithDefaults_6<P, D> = {
564
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_6<P[K] & {
565
+ default: D[K];
566
+ }> : P[K];
567
+ };
568
+
569
+ declare type __VLS_WithDefaults_7<P, D> = {
570
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_7<P[K] & {
571
+ default: D[K];
572
+ }> : P[K];
573
+ };
574
+
575
+ declare type __VLS_WithDefaults_8<P, D> = {
576
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_8<P[K] & {
577
+ default: D[K];
578
+ }> : P[K];
579
+ };
580
+
581
+ declare type __VLS_WithDefaults_9<P, D> = {
582
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_9<P[K] & {
583
+ default: D[K];
584
+ }> : P[K];
585
+ };
586
+
587
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
588
+ new (): {
589
+ $slots: S;
590
+ };
591
+ };
592
+
593
+ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
594
+ new (): {
595
+ $slots: S;
596
+ };
597
+ };
598
+
599
+ declare type __VLS_WithTemplateSlots_3<T, S> = T & {
600
+ new (): {
601
+ $slots: S;
602
+ };
603
+ };
604
+
605
+ declare type __VLS_WithTemplateSlots_4<T, S> = T & {
606
+ new (): {
607
+ $slots: S;
608
+ };
609
+ };
610
+
611
+ export declare const BasemapDropdown: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_9<__VLS_TypePropsToRuntimeProps_9<BasemapDropdownProps>, {
612
+ position: string;
613
+ selectedIndex: number;
614
+ useAsControl: boolean;
615
+ isDropUp: boolean;
616
+ imageryLayerId: string;
617
+ imageryLabelsLayerId: string;
618
+ baseLayerId: null;
619
+ isImageryVisible: boolean;
620
+ }>>, {
621
+ isOpen: Ref<boolean, boolean>;
622
+ selectedIndex: Ref<number, number>;
623
+ selectedOption: ComputedRef<BasemapOption>;
624
+ toggleDropdown: typeof toggleDropdown;
625
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
626
+ select: (option: BasemapOption, index: number) => void;
627
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_9<__VLS_TypePropsToRuntimeProps_9<BasemapDropdownProps>, {
628
+ position: string;
629
+ selectedIndex: number;
630
+ useAsControl: boolean;
631
+ isDropUp: boolean;
632
+ imageryLayerId: string;
633
+ imageryLabelsLayerId: string;
634
+ baseLayerId: null;
635
+ isImageryVisible: boolean;
636
+ }>>> & Readonly<{
637
+ onSelect?: ((option: BasemapOption, index: number) => any) | undefined;
638
+ }>, {
639
+ position: MapControlPosition;
640
+ imageryLayerId: string;
641
+ imageryLabelsLayerId: string;
642
+ baseLayerId: string | null;
643
+ selectedIndex: number;
644
+ useAsControl: boolean;
645
+ isDropUp: boolean;
646
+ isImageryVisible: boolean;
647
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
648
+
649
+ declare interface BasemapDropdownProps {
650
+ options: BasemapOption[];
651
+ position?: MapControlPosition;
652
+ selectedIndex?: number;
653
+ useAsControl?: boolean;
654
+ isDropUp?: boolean;
655
+ imageryLayerId?: string;
656
+ imageryLabelsLayerId?: string;
657
+ baseLayerId?: string | null;
658
+ isImageryVisible?: boolean;
659
+ }
660
+
661
+ declare interface BasemapOption {
662
+ label: string;
663
+ imageryUrl: string;
664
+ imageryLabelsUrl: string;
665
+ }
666
+
667
+ export declare const BasemapToggle: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_8<__VLS_TypePropsToRuntimeProps_8<BasemapToggleProps>, {
668
+ position: string;
669
+ imageryUrl: string;
670
+ imageryLabelsUrl: string;
671
+ imageryLayerId: string;
672
+ imageryLabelsLayerId: string;
673
+ baseLayerId: null;
674
+ iconImage: null;
675
+ basemapImage: null;
676
+ title: string;
677
+ iconSize: number;
678
+ showDropdown: boolean;
679
+ dropdownOptions: () => never[];
680
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
681
+ toggled: (value: boolean) => void;
682
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_8<__VLS_TypePropsToRuntimeProps_8<BasemapToggleProps>, {
683
+ position: string;
684
+ imageryUrl: string;
685
+ imageryLabelsUrl: string;
686
+ imageryLayerId: string;
687
+ imageryLabelsLayerId: string;
688
+ baseLayerId: null;
689
+ iconImage: null;
690
+ basemapImage: null;
691
+ title: string;
692
+ iconSize: number;
693
+ showDropdown: boolean;
694
+ dropdownOptions: () => never[];
695
+ }>>> & Readonly<{
696
+ onToggled?: ((value: boolean) => any) | undefined;
697
+ }>, {
698
+ position: MapControlPosition;
699
+ title: string;
700
+ iconSize: number;
701
+ imageryUrl: string;
702
+ imageryLabelsUrl: string;
703
+ imageryLayerId: string;
704
+ imageryLabelsLayerId: string;
705
+ baseLayerId: string | null;
706
+ iconImage: string | null;
707
+ basemapImage: string | null;
708
+ showDropdown: boolean;
709
+ dropdownOptions: BasemapOption[];
710
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
711
+
712
+ declare interface BasemapToggleProps extends BaseProps {
713
+ position?: MapControlPosition;
714
+ imageryUrl?: string;
715
+ imageryLabelsUrl?: string;
716
+ imageryLayerId?: string;
717
+ imageryLabelsLayerId?: string;
718
+ baseLayerId?: string | null;
719
+ iconImage?: string | null;
720
+ basemapImage?: string | null;
721
+ title?: string;
722
+ iconSize?: number;
723
+ showDropdown?: boolean;
724
+ dropdownOptions?: BasemapOption[];
725
+ }
726
+
727
+ declare interface ButtonControl extends IControl {
728
+ _map?: Map_3;
729
+ _container?: HTMLDivElement;
730
+ _button?: HTMLButtonElement;
731
+ }
732
+
733
+ /**
734
+ * Factory for creating standard button controls
735
+ */
736
+ export declare function createButtonControl(icon?: string, image?: string, title?: string, iconSize?: number, clickHandler?: (this: GlobalEventHandlers, ev: MouseEvent) => void): ButtonControl;
737
+
738
+ export declare const DrawTool: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_5<__VLS_TypePropsToRuntimeProps_5<DrawToolProps>, {
739
+ icon: string;
740
+ position: string;
741
+ title: string;
742
+ iconSize: number;
743
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
744
+ polygonComplete: (geometry: ShapeGeometry) => void;
745
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_5<__VLS_TypePropsToRuntimeProps_5<DrawToolProps>, {
746
+ icon: string;
747
+ position: string;
748
+ title: string;
749
+ iconSize: number;
750
+ }>>> & Readonly<{
751
+ onPolygonComplete?: ((geometry: ShapeGeometry) => any) | undefined;
752
+ }>, {
753
+ icon: string;
754
+ position: MapControlPosition;
755
+ title: string;
756
+ iconSize: number;
757
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
758
+
759
+ declare interface DrawToolProps extends BaseProps {
760
+ icon?: string;
761
+ position?: MapControlPosition;
762
+ title?: string;
763
+ iconSize?: number;
764
+ }
765
+
766
+ export declare const GeolocationButton: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_7<__VLS_TypePropsToRuntimeProps_7<GeolocationButtonProps>, {
767
+ position: string;
768
+ icon: string;
769
+ iconSize: number;
770
+ title: string;
771
+ trackUser: boolean;
772
+ showAccuracyCircle: boolean;
773
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
774
+ located: (data: {
775
+ longitude: number;
776
+ latitude: number;
777
+ accuracy: number;
778
+ }) => void;
779
+ error: (error: Error | GeolocationPositionError) => void;
780
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_7<__VLS_TypePropsToRuntimeProps_7<GeolocationButtonProps>, {
781
+ position: string;
782
+ icon: string;
783
+ iconSize: number;
784
+ title: string;
785
+ trackUser: boolean;
786
+ showAccuracyCircle: boolean;
787
+ }>>> & Readonly<{
788
+ onError?: ((error: Error | GeolocationPositionError) => any) | undefined;
789
+ onLocated?: ((data: {
790
+ longitude: number;
791
+ latitude: number;
792
+ accuracy: number;
793
+ }) => any) | undefined;
794
+ }>, {
795
+ icon: string;
796
+ position: MapControlPosition;
797
+ title: string;
798
+ iconSize: number;
799
+ trackUser: boolean;
800
+ showAccuracyCircle: boolean;
801
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
802
+
803
+ declare interface GeolocationButtonProps extends BaseProps {
804
+ position?: MapControlPosition;
805
+ icon?: string;
806
+ iconSize?: number;
807
+ title?: string;
808
+ trackUser?: boolean;
809
+ showAccuracyCircle?: boolean;
810
+ }
811
+
812
+ /** Common layer type for MapLayer */
813
+ declare type LayerType = "fill" | "line" | "symbol" | "circle" | "fill-extrusion" | "raster" | "background" | "heatmap" | "hillshade";
814
+
815
+ declare interface LineStringGeometry {
816
+ type: "LineString";
817
+ coordinates: number[][];
818
+ }
819
+
820
+ export { Map_2 as Map }
821
+
822
+ export declare const MapButton: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_6<__VLS_TypePropsToRuntimeProps_6<MapButtonProps>, {
823
+ icon: string;
824
+ image: string;
825
+ position: string;
826
+ title: string;
827
+ iconSize: number;
828
+ toggleable: boolean;
829
+ active: boolean;
830
+ activeColor: string;
831
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
832
+ click: () => void;
833
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_6<__VLS_TypePropsToRuntimeProps_6<MapButtonProps>, {
834
+ icon: string;
835
+ image: string;
836
+ position: string;
837
+ title: string;
838
+ iconSize: number;
839
+ toggleable: boolean;
840
+ active: boolean;
841
+ activeColor: string;
842
+ }>>> & Readonly<{
843
+ onClick?: (() => any) | undefined;
844
+ }>, {
845
+ icon: string;
846
+ position: MapControlPosition;
847
+ title: string;
848
+ iconSize: number;
849
+ image: string;
850
+ toggleable: boolean;
851
+ active: boolean;
852
+ activeColor: string;
853
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
854
+
855
+ declare interface MapButtonProps extends BaseProps {
856
+ icon?: string;
857
+ image?: string;
858
+ position?: MapControlPosition;
859
+ title?: string;
860
+ iconSize?: number;
861
+ toggleable?: boolean;
862
+ active?: boolean;
863
+ activeColor?: string;
864
+ }
865
+
866
+ /** Common position type for map controls */
867
+ declare type MapControlPosition = "top-left" | "top-right" | "bottom-left" | "bottom-right";
868
+
869
+ declare interface MapControlProps {
870
+ position?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
871
+ }
872
+
873
+ export declare const MapFloatingPanel: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, ReturnType<typeof __VLS_template_4>>;
874
+
875
+ declare interface MapFloatingPanelProps extends BaseProps {
876
+ position?: MapControlPosition;
877
+ visible?: boolean;
878
+ offset?: {
879
+ x: number;
880
+ y: number;
881
+ };
882
+ leaveRoomForControls?: boolean;
883
+ }
884
+
885
+ export declare const MapLayer: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
886
+
887
+ declare interface MapLayerProps extends BaseProps {
888
+ id: string;
889
+ type: LayerType;
890
+ source: string | SourceSpecification;
891
+ sourceLayer?: string;
892
+ paint?: LayerSpecification["paint"];
893
+ layout?: LayerSpecification["layout"];
894
+ filter?: FilterSpecification;
895
+ minzoom?: number;
896
+ maxzoom?: number;
897
+ beforeId?: string;
898
+ }
899
+
900
+ export declare const MapMarker: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, ReturnType<typeof __VLS_template_2>>;
901
+
902
+ declare interface MapMarkerProps extends BaseProps {
903
+ lngLat: [number, number];
904
+ color?: string;
905
+ popup?: string;
906
+ draggable?: boolean;
907
+ rotation?: number;
908
+ offset?: PointLike;
909
+ icon?: string;
910
+ iconSize?: number;
911
+ iconColor?: string;
912
+ }
913
+
914
+ export declare const MapNavigationControl: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, ReturnType<typeof __VLS_template_3>>;
915
+
916
+ declare interface MapNavigationControlProps extends BaseProps {
917
+ position?: MapControlPosition;
918
+ }
919
+
920
+ export declare const MeasureButton: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_10<__VLS_TypePropsToRuntimeProps_10<MeasureButtonProps>, {
921
+ position: string;
922
+ icon: string;
923
+ iconSize: number;
924
+ title: string;
925
+ unit: string;
926
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
927
+ measured: (data: MeasuredData) => void;
928
+ cleared: () => void;
929
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_10<__VLS_TypePropsToRuntimeProps_10<MeasureButtonProps>, {
930
+ position: string;
931
+ icon: string;
932
+ iconSize: number;
933
+ title: string;
934
+ unit: string;
935
+ }>>> & Readonly<{
936
+ onMeasured?: ((data: MeasuredData) => any) | undefined;
937
+ onCleared?: (() => any) | undefined;
938
+ }>, {
939
+ icon: string;
940
+ position: MapControlPosition;
941
+ title: string;
942
+ iconSize: number;
943
+ unit: "feet" | "meters" | "miles" | "kilometers";
944
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
945
+
946
+ declare interface MeasureButtonProps extends BaseProps {
947
+ position?: MapControlPosition;
948
+ icon?: string;
949
+ iconSize?: number;
950
+ title?: string;
951
+ unit?: "feet" | "meters" | "miles" | "kilometers";
952
+ }
953
+
954
+ declare interface MeasuredData {
955
+ points: Point[];
956
+ totalDistance: string;
957
+ unit: string;
958
+ }
959
+
960
+ declare interface Point {
961
+ lng: number;
962
+ lat: number;
963
+ }
964
+
965
+ declare interface PointGeometry {
966
+ type: "Point";
967
+ coordinates: number[];
968
+ }
969
+
970
+ declare interface PolygonGeometry {
971
+ type: "Polygon";
972
+ coordinates: number[][][];
973
+ }
974
+
975
+ declare type ShapeGeometry = PolygonGeometry | LineStringGeometry | PointGeometry;
976
+
977
+ declare function toggleDropdown(): void;
978
+
979
+ /**
980
+ * Composable for creating MapLibre IControl components
981
+ * Handles the boilerplate of adding/removing controls
982
+ */
983
+ export declare function useMapControl(props: MapControlProps, createControlFn: (map: Map_3) => IControl | Promise<IControl>): {
984
+ map: Ref<Map_3 | null, Map_3 | null> | undefined;
985
+ control: null;
986
+ };
987
+
988
+ export { }
989
+
990
+
991
+ declare global {
992
+ interface Window {
993
+ deleteActivePolygon?: () => void;
994
+ cancelDrawing?: () => void;
995
+ finishDrawing?: () => void;
996
+ }
997
+ }
998
+