@beyonk/svelte-mapbox 9.1.1 → 10.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/.env +1 -0
  2. package/.github/workflows/publish.yml +31 -0
  3. package/eslint.config.mjs.disabled +21 -0
  4. package/jsconfig.json +11 -0
  5. package/package.json +21 -30
  6. package/src/app.html +18 -0
  7. package/src/global.d.ts +1 -0
  8. package/{geocoder → src/lib/geocoder}/Geocoder.svelte +1 -1
  9. package/{map → src/lib/map}/Map.svelte +4 -1
  10. package/src/routes/+page.svelte +211 -0
  11. package/src/routes/_Earthquakes.svelte +131 -0
  12. package/src/routes/_MiniScroller.svelte +1 -0
  13. package/static/favicon.png +0 -0
  14. package/static/normalize.css +76 -0
  15. package/static/prettify.css +70 -0
  16. package/static/style.css +534 -0
  17. package/svelte.config.js +5 -0
  18. package/vite.config.js +8 -0
  19. package/asset-loader.d.ts +0 -1
  20. package/components.d.ts +0 -13
  21. package/event-bindings.d.ts +0 -1
  22. package/geocoder/Geocoder.svelte.d.ts +0 -53
  23. package/geocoder/geocoder-action.d.ts +0 -3
  24. package/map/Map.svelte.d.ts +0 -89
  25. package/map/Marker.svelte.d.ts +0 -50
  26. package/map/controls/GeolocateControl.svelte.d.ts +0 -40
  27. package/map/controls/NavigationControl.svelte.d.ts +0 -25
  28. package/map/controls/ScaleControl.svelte.d.ts +0 -25
  29. package/map/map-action.d.ts +0 -3
  30. package/mapbox.d.ts +0 -1
  31. package/queue.d.ts +0 -8
  32. /package/{asset-loader.js → src/lib/asset-loader.js} +0 -0
  33. /package/{components.js → src/lib/components.js} +0 -0
  34. /package/{event-bindings.js → src/lib/event-bindings.js} +0 -0
  35. /package/{geocoder → src/lib/geocoder}/geocoder-action.js +0 -0
  36. /package/{map → src/lib/map}/Marker.svelte +0 -0
  37. /package/{map → src/lib/map}/controls/GeolocateControl.svelte +0 -0
  38. /package/{map → src/lib/map}/controls/NavigationControl.svelte +0 -0
  39. /package/{map → src/lib/map}/controls/ScaleControl.svelte +0 -0
  40. /package/{map → src/lib/map}/map-action.js +0 -0
  41. /package/{mapbox.js → src/lib/mapbox.js} +0 -0
  42. /package/{queue.js → src/lib/queue.js} +0 -0
@@ -0,0 +1,534 @@
1
+ body {
2
+ font-family: 'Open Sans', sans-serif;
3
+ background:#eaedf2;
4
+ color:#666;
5
+ font-size:14px;
6
+ }
7
+ * {
8
+ -webkit-box-sizing: border-box;
9
+ -moz-box-sizing: border-box;
10
+ box-sizing: border-box;
11
+ }
12
+
13
+ a{
14
+ -webkit-transition: all .3s ease;
15
+ -moz-transition: all .3s ease;
16
+ -o-transition: all .3s ease;
17
+ transition: all .3s ease;
18
+ text-decoration:none;
19
+ }
20
+ .content-info a{
21
+ color:#22A7F0
22
+ }
23
+ .content-info a:hover{
24
+ color:#000;
25
+ }
26
+ a img {
27
+ border:0;
28
+ }
29
+
30
+ section img{
31
+ display:block;
32
+ max-width:100%;
33
+ height:auto;
34
+ margin:15px 0 15px 0;
35
+ }
36
+
37
+ article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary {
38
+ display: block;
39
+ }
40
+ section{
41
+ position:relative;
42
+ }
43
+ h1, h2, h3, h4, h5, h6{
44
+ font-weight:400;
45
+ }
46
+ h1{
47
+ font-size:36px;
48
+ margin:0 0 30px 0;
49
+ }
50
+ h2{
51
+ font-size:30px;
52
+ margin:0 0 30px 0;
53
+ }
54
+ h3{
55
+ font-size:24px;
56
+ margin:0 0 30px 0;
57
+ }
58
+ h4{
59
+ font-size:20px;
60
+ margin:0 0 20px 0;
61
+ }
62
+ h5{
63
+ font-size:18px;
64
+ margin:0 0 15px 0;
65
+ }
66
+ h6{
67
+ font-size:16px;
68
+ margin:0 0 10px 0;
69
+ }
70
+
71
+ .container {
72
+ padding-right: 15px;
73
+ padding-left: 15px;
74
+ margin-right: auto;
75
+ margin-left: auto;
76
+ width: 1200px;
77
+ }
78
+ .container:before, .container:after, .clearfix:before, .row:before, .clearfix:after, .row:after {
79
+ display: table;
80
+ content: " ";
81
+ }
82
+ .container:after, .clearfix:after, .row:after {
83
+ clear: both;
84
+ }
85
+ .row {
86
+ margin-right: -15px;
87
+ margin-left: -15px;
88
+ }
89
+
90
+ .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11 {
91
+ float: left;
92
+ }
93
+ .col-xs-1,
94
+ .col-sm-1,
95
+ .col-md-1,
96
+ .col-lg-1,
97
+ .col-xs-2,
98
+ .col-sm-2,
99
+ .col-md-2,
100
+ .col-lg-2,
101
+ .col-xs-3,
102
+ .col-sm-3,
103
+ .col-md-3,
104
+ .col-lg-3,
105
+ .col-xs-4,
106
+ .col-sm-4,
107
+ .col-md-4,
108
+ .col-lg-4,
109
+ .col-xs-5,
110
+ .col-sm-5,
111
+ .col-md-5,
112
+ .col-lg-5,
113
+ .col-xs-6,
114
+ .col-sm-6,
115
+ .col-md-6,
116
+ .col-lg-6,
117
+ .col-xs-7,
118
+ .col-sm-7,
119
+ .col-md-7,
120
+ .col-lg-7,
121
+ .col-xs-8,
122
+ .col-sm-8,
123
+ .col-md-8,
124
+ .col-lg-8,
125
+ .col-xs-9,
126
+ .col-sm-9,
127
+ .col-md-9,
128
+ .col-lg-9,
129
+ .col-xs-10,
130
+ .col-sm-10,
131
+ .col-md-10,
132
+ .col-lg-10,
133
+ .col-xs-11,
134
+ .col-sm-11,
135
+ .col-md-11,
136
+ .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
137
+ position: relative;
138
+ min-height: 1px;
139
+ padding-right: 15px;
140
+ padding-left: 15px;
141
+ }
142
+ .col-lg-12 {
143
+ width: 100%;
144
+ }
145
+ .col-lg-11 {
146
+ width: 91.66666667%;
147
+ }
148
+ .col-lg-10 {
149
+ width: 83.33333333%;
150
+ }
151
+ .col-lg-9 {
152
+ width: 75%;
153
+ }
154
+ .col-lg-8 {
155
+ width: 66.66666667%;
156
+ }
157
+ .col-lg-7 {
158
+ width: 58.33333333%;
159
+ }
160
+ .col-lg-6 {
161
+ width: 50%;
162
+ }
163
+ .col-lg-5 {
164
+ width: 41.66666667%;
165
+ }
166
+ .col-lg-4 {
167
+ width: 33.33333333%;
168
+ }
169
+ .col-lg-3 {
170
+ width: 25%;
171
+ }
172
+ .col-lg-2 {
173
+ width: 16.66666667%;
174
+ }
175
+ .col-lg-1 {
176
+ width: 8.33333333%;
177
+ }
178
+ .center{
179
+ text-align:center;
180
+ }
181
+ .left{
182
+ text-align:left;
183
+ }
184
+ .right{
185
+ text-align:right;
186
+ }
187
+ .btn{
188
+ display:inline-block;
189
+ width:160px;
190
+ height:40px;
191
+ line-height:38px;
192
+ background:#3498db;
193
+ color:#fff;
194
+ font-weight:400;
195
+ text-align:center;
196
+ text-transform:uppercase;
197
+ font-size:14px;
198
+ border-bottom:2px solid #2a8bcc;
199
+ }
200
+ .btn:hover{
201
+ background:#2a8bcc
202
+ }
203
+ header{
204
+ margin:0 0 50px 0;
205
+ padding:20px 0;
206
+ background:#22A7F0
207
+ }
208
+ .slogan{
209
+ color:#fff;
210
+ font-weight:300;
211
+ font-size:20px;
212
+ line-height:34px;
213
+ }
214
+ #logo img{
215
+ display:block;
216
+ height:34px;
217
+ }
218
+
219
+ section .container{
220
+ background:#fff;
221
+ }
222
+
223
+ .content-wrap{
224
+ padding:50px 0
225
+ }
226
+
227
+ aside{
228
+ color:#fff;
229
+ float:left;
230
+ padding-left:15px;
231
+ width:285px;
232
+ }
233
+ .fixed{
234
+ position:fixed;
235
+ top:15px;
236
+ }
237
+ aside h4{
238
+ font-size:20px;
239
+ font-weight:400;
240
+ margin:0 0 30px 0;
241
+ }
242
+
243
+ .menu-box{
244
+ padding:20px;
245
+ background:#34495e;
246
+ }
247
+ .menu-box ul{
248
+ margin:0;
249
+ padding:0;
250
+ }
251
+ .menu-box li{
252
+ display:block;
253
+ }
254
+ .menu-box li a{
255
+ display:block;
256
+ padding:15px 20px;
257
+ margin-left: -20px;
258
+ margin-right: -20px;
259
+ color:#fff;
260
+ border-bottom:1px solid #314559;
261
+ }
262
+ .menu-box li a:hover, .menu-box li a.current{
263
+ background:#2c3e50;
264
+ }
265
+ .menu-box li:last-child a{
266
+ border-bottom:0;
267
+ }
268
+
269
+ .content-info{
270
+ padding-right:15px;
271
+ padding-left:315px;
272
+ }
273
+ .section-txt{
274
+ padding-bottom:15px;
275
+ margin-bottom:30px;
276
+ border-bottom:1px solid #dcdcdc;
277
+ }
278
+ .section-txt:last-child{
279
+ margin-bottom:0;
280
+ padding-bottom:0;
281
+ border-bottom:0;
282
+ }
283
+ .content-info h3{
284
+ font-size:24px;
285
+ font-weight:400;
286
+ color:#444;
287
+ margin:0 0 30px 0;
288
+ }
289
+ .content-info p{
290
+ color:#666;
291
+ line-height:24px;
292
+ font-size:16px;
293
+ font-weight:300;
294
+ }
295
+ .content-info ul{
296
+ margin:0 0 14px 0;
297
+ }
298
+ .content-info ul li{
299
+ line-height:24px;
300
+ font-size:16px;
301
+ font-weight:300;
302
+ }
303
+
304
+ .content-info iframe {
305
+ width: 100%!important;
306
+ height: 350px;
307
+ border: 0!important;
308
+ }
309
+
310
+ .footer-area{
311
+ margin-top:50px;
312
+ padding:60px 0;
313
+ background:#222;
314
+ font-size:16px;
315
+ line-height:24px;
316
+ color:#fff;
317
+ font-weight:300;
318
+ }
319
+
320
+ .footer-area a{
321
+ color:#999;
322
+ }
323
+ .footer-area a:hover{
324
+ color:#eee
325
+ }
326
+ footer{
327
+ background:#111;
328
+ padding:20px 0;
329
+ font-weight:300;
330
+ font-size:12px;
331
+ }
332
+
333
+ @media only screen and (max-width: 1200px) {
334
+ .container{
335
+ width:970px;
336
+ }
337
+ .hidden-md{
338
+ display:none;
339
+ }
340
+ .col-md-12 {
341
+ width: 100%;
342
+ }
343
+ .col-md-11 {
344
+ width: 91.66666667%;
345
+ }
346
+ .col-md-10 {
347
+ width: 83.33333333%;
348
+ }
349
+ .col-md-9 {
350
+ width: 75%;
351
+ }
352
+ .col-md-8 {
353
+ width: 66.66666667%;
354
+ }
355
+ .col-md-7 {
356
+ width: 58.33333333%;
357
+ }
358
+ .col-md-6 {
359
+ width: 50%;
360
+ }
361
+ .col-md-5 {
362
+ width: 41.66666667%;
363
+ }
364
+ .col-md-4 {
365
+ width: 33.33333333%;
366
+ }
367
+ .col-md-3 {
368
+ width: 25%;
369
+ }
370
+ .col-md-2 {
371
+ width: 16.66666667%;
372
+ }
373
+ .col-md-1 {
374
+ width: 8.33333333%;
375
+ }
376
+
377
+ }
378
+
379
+
380
+ @media only screen and (max-width: 992px){
381
+ .container{
382
+ width:750px;
383
+ }
384
+ .hidden-sm{
385
+ display:none;
386
+ }
387
+ .col-sm-12 {
388
+ width: 100%;
389
+ }
390
+ .col-sm-11 {
391
+ width: 91.66666667%;
392
+ }
393
+ .col-sm-10 {
394
+ width: 83.33333333%;
395
+ }
396
+ .col-sm-9 {
397
+ width: 75%;
398
+ }
399
+ .col-sm-8 {
400
+ width: 66.66666667%;
401
+ }
402
+ .col-sm-7 {
403
+ width: 58.33333333%;
404
+ }
405
+ .col-sm-6 {
406
+ width: 50%;
407
+ }
408
+ .col-sm-5 {
409
+ width: 41.66666667%;
410
+ }
411
+ .col-sm-4 {
412
+ width: 33.33333333%;
413
+ }
414
+ .col-sm-3 {
415
+ width: 25%;
416
+ }
417
+ .col-sm-2 {
418
+ width: 16.66666667%;
419
+ }
420
+ .col-sm-1 {
421
+ width: 8.33333333%;
422
+ }
423
+ .slogan {
424
+ font-size: 16px;
425
+ }
426
+
427
+ }
428
+
429
+ @media only screen and (max-width: 768px){
430
+ .container{
431
+ width:100%;
432
+ }
433
+ .hidden-xs{
434
+ display:none;
435
+ }
436
+ .col-xs-12 {
437
+ width: 100%;
438
+ }
439
+ .col-xs-11 {
440
+ width: 91.66666667%;
441
+ }
442
+ .col-xs-10 {
443
+ width: 83.33333333%;
444
+ }
445
+ .col-xs-9 {
446
+ width: 75%;
447
+ }
448
+ .col-xs-8 {
449
+ width: 66.66666667%;
450
+ }
451
+ .col-xs-7 {
452
+ width: 58.33333333%;
453
+ }
454
+ .col-xs-6 {
455
+ width: 50%;
456
+ }
457
+ .col-xs-5 {
458
+ width: 41.66666667%;
459
+ }
460
+ .col-xs-4 {
461
+ width: 33.33333333%;
462
+ }
463
+ .col-xs-3 {
464
+ width: 25%;
465
+ }
466
+ .col-xs-2 {
467
+ width: 16.66666667%;
468
+ }
469
+ .col-xs-1 {
470
+ width: 8.33333333%;
471
+ }
472
+ header{
473
+ margin-bottom:30px;
474
+ }
475
+ .content-wrap {
476
+ padding: 30px 0;
477
+ }
478
+ .slogan{
479
+ text-align:center;
480
+ line-height:22px;
481
+ margin-bottom:15px;
482
+ }
483
+ #logo {
484
+ text-align:center;
485
+ margin-bottom:15px;
486
+ }
487
+ #logo img{
488
+ margin:0 auto;
489
+ }
490
+ .btn{
491
+ display:block;
492
+ margin:0 auto;
493
+ }
494
+ aside{
495
+ width:100%;
496
+ float:none;
497
+ padding:0 15px;
498
+ margin-bottom:30px;
499
+ }
500
+ .content-info {
501
+ padding-right: 15px;
502
+ padding-left: 15px;
503
+ }
504
+ .content-info p, .content-info ul li{
505
+ font-size:14px;
506
+ line-height:22px;
507
+ }
508
+ .content-info h3 {
509
+ font-size: 20px;
510
+ }
511
+ h1{
512
+ font-size:32px;
513
+ }
514
+ h2{
515
+ font-size:26px;
516
+ }
517
+ h3{
518
+ font-size:20px;
519
+ }
520
+ h4{
521
+ font-size:18px;
522
+ }
523
+ h5{
524
+ font-size:16px;
525
+ }
526
+ h6{
527
+ font-size:14px;
528
+ }
529
+ .footer-area {
530
+ margin-top: 30px;
531
+ padding: 50px 0;
532
+ font-size:14px;
533
+ }
534
+ }
@@ -0,0 +1,5 @@
1
+
2
+ /** @type {import('@sveltejs/kit').Config} */
3
+ const config = {}
4
+
5
+ export default config
package/vite.config.js ADDED
@@ -0,0 +1,8 @@
1
+ import { sveltekit } from '@sveltejs/kit/vite'
2
+
3
+ /** @type {import('vite').UserConfig} */
4
+ const config = {
5
+ plugins: [ sveltekit() ]
6
+ }
7
+
8
+ export default config
package/asset-loader.d.ts DELETED
@@ -1 +0,0 @@
1
- export function load(assets: any, cb: any): void;
package/components.d.ts DELETED
@@ -1,13 +0,0 @@
1
- import Map from "./map/Map.svelte";
2
- import Marker from "./map/Marker.svelte";
3
- import Geocoder from "./geocoder/Geocoder.svelte";
4
- import { contextKey } from "./mapbox.js";
5
- export namespace controls {
6
- export { GeolocateControl };
7
- export { NavigationControl };
8
- export { ScaleControl };
9
- }
10
- import GeolocateControl from "./map/controls/GeolocateControl.svelte";
11
- import NavigationControl from "./map/controls/NavigationControl.svelte";
12
- import ScaleControl from "./map/controls/ScaleControl.svelte";
13
- export { Map, Marker, Geocoder, contextKey };
@@ -1 +0,0 @@
1
- export function bindEvents(el: any, handlers: any, mapbox: any, node: any): () => void;
@@ -1,53 +0,0 @@
1
- /** @typedef {typeof __propDef.props} GeocoderProps */
2
- /** @typedef {typeof __propDef.events} GeocoderEvents */
3
- /** @typedef {typeof __propDef.slots} GeocoderSlots */
4
- export default class Geocoder extends SvelteComponentTyped<{
5
- accessToken: any;
6
- geocoder: any;
7
- value?: any;
8
- version?: string;
9
- customStylesheetUrl?: boolean;
10
- options?: {};
11
- types?: string[];
12
- placeholder?: string;
13
- }, {
14
- results: Event | ProgressEvent<EventTarget> | DragEvent | MouseEvent | UIEvent | ClipboardEvent | AnimationEvent | InputEvent | FocusEvent | CompositionEvent | ErrorEvent | FormDataEvent | PointerEvent | KeyboardEvent | SecurityPolicyViolationEvent | SubmitEvent | TouchEvent | TransitionEvent | WheelEvent;
15
- result: Event | ProgressEvent<EventTarget> | DragEvent | MouseEvent | UIEvent | ClipboardEvent | AnimationEvent | InputEvent | FocusEvent | CompositionEvent | ErrorEvent | FormDataEvent | PointerEvent | KeyboardEvent | SecurityPolicyViolationEvent | SubmitEvent | TouchEvent | TransitionEvent | WheelEvent;
16
- loading: Event | ProgressEvent<EventTarget> | DragEvent | MouseEvent | UIEvent | ClipboardEvent | AnimationEvent | InputEvent | FocusEvent | CompositionEvent | ErrorEvent | FormDataEvent | PointerEvent | KeyboardEvent | SecurityPolicyViolationEvent | SubmitEvent | TouchEvent | TransitionEvent | WheelEvent;
17
- error: ErrorEvent;
18
- clear: Event | ProgressEvent<EventTarget> | DragEvent | MouseEvent | UIEvent | ClipboardEvent | AnimationEvent | InputEvent | FocusEvent | CompositionEvent | ErrorEvent | FormDataEvent | PointerEvent | KeyboardEvent | SecurityPolicyViolationEvent | SubmitEvent | TouchEvent | TransitionEvent | WheelEvent;
19
- load: Event;
20
- ready: CustomEvent<any>;
21
- } & {
22
- [evt: string]: CustomEvent<any>;
23
- }, {}> {
24
- }
25
- export type GeocoderProps = typeof __propDef.props;
26
- export type GeocoderEvents = typeof __propDef.events;
27
- export type GeocoderSlots = typeof __propDef.slots;
28
- import { SvelteComponentTyped } from "svelte";
29
- declare const __propDef: {
30
- props: {
31
- accessToken: any;
32
- geocoder: any;
33
- value?: any;
34
- version?: string;
35
- customStylesheetUrl?: boolean;
36
- options?: {};
37
- types?: string[];
38
- placeholder?: string;
39
- };
40
- events: {
41
- results: Event | ProgressEvent<EventTarget> | DragEvent | MouseEvent | UIEvent | ClipboardEvent | AnimationEvent | InputEvent | FocusEvent | CompositionEvent | ErrorEvent | FormDataEvent | PointerEvent | KeyboardEvent | SecurityPolicyViolationEvent | SubmitEvent | TouchEvent | TransitionEvent | WheelEvent;
42
- result: Event | ProgressEvent<EventTarget> | DragEvent | MouseEvent | UIEvent | ClipboardEvent | AnimationEvent | InputEvent | FocusEvent | CompositionEvent | ErrorEvent | FormDataEvent | PointerEvent | KeyboardEvent | SecurityPolicyViolationEvent | SubmitEvent | TouchEvent | TransitionEvent | WheelEvent;
43
- loading: Event | ProgressEvent<EventTarget> | DragEvent | MouseEvent | UIEvent | ClipboardEvent | AnimationEvent | InputEvent | FocusEvent | CompositionEvent | ErrorEvent | FormDataEvent | PointerEvent | KeyboardEvent | SecurityPolicyViolationEvent | SubmitEvent | TouchEvent | TransitionEvent | WheelEvent;
44
- error: ErrorEvent;
45
- clear: Event | ProgressEvent<EventTarget> | DragEvent | MouseEvent | UIEvent | ClipboardEvent | AnimationEvent | InputEvent | FocusEvent | CompositionEvent | ErrorEvent | FormDataEvent | PointerEvent | KeyboardEvent | SecurityPolicyViolationEvent | SubmitEvent | TouchEvent | TransitionEvent | WheelEvent;
46
- load: Event;
47
- ready: CustomEvent<any>;
48
- } & {
49
- [evt: string]: CustomEvent<any>;
50
- };
51
- slots: {};
52
- };
53
- export {};
@@ -1,3 +0,0 @@
1
- export default function action(node: any, options?: {}): {
2
- destroy(): void;
3
- };
@@ -1,89 +0,0 @@
1
- /** @typedef {typeof __propDef.props} MapProps */
2
- /** @typedef {typeof __propDef.events} MapEvents */
3
- /** @typedef {typeof __propDef.slots} MapSlots */
4
- export default class Map extends SvelteComponentTyped<{
5
- accessToken: any;
6
- map?: any;
7
- style?: string;
8
- version?: string;
9
- customStylesheetUrl?: boolean;
10
- zoom?: number;
11
- getMap?: () => any;
12
- getMapbox?: () => any;
13
- center?: number[];
14
- zoomRate?: number;
15
- wheelZoomRate?: number;
16
- fitBounds?: (bbox: any, data?: {}) => void;
17
- flyTo?: (destination: any, data?: {}) => void;
18
- resize?: () => void;
19
- setCenter?: (coords: any, data?: {}) => void;
20
- setZoom?: (value: any, data?: {}) => void;
21
- addControl?: (control: any, position?: string) => void;
22
- options?: {};
23
- }, {
24
- recentre: Event | ProgressEvent<EventTarget> | DragEvent | MouseEvent | UIEvent | ClipboardEvent | AnimationEvent | InputEvent | FocusEvent | CompositionEvent | ErrorEvent | FormDataEvent | PointerEvent | KeyboardEvent | SecurityPolicyViolationEvent | SubmitEvent | TouchEvent | TransitionEvent | WheelEvent;
25
- dragend: DragEvent;
26
- click: MouseEvent;
27
- zoomstart: Event | ProgressEvent<EventTarget> | DragEvent | MouseEvent | UIEvent | ClipboardEvent | AnimationEvent | InputEvent | FocusEvent | CompositionEvent | ErrorEvent | FormDataEvent | PointerEvent | KeyboardEvent | SecurityPolicyViolationEvent | SubmitEvent | TouchEvent | TransitionEvent | WheelEvent;
28
- zoom: Event | ProgressEvent<EventTarget> | DragEvent | MouseEvent | UIEvent | ClipboardEvent | AnimationEvent | InputEvent | FocusEvent | CompositionEvent | ErrorEvent | FormDataEvent | PointerEvent | KeyboardEvent | SecurityPolicyViolationEvent | SubmitEvent | TouchEvent | TransitionEvent | WheelEvent;
29
- zoomend: Event | ProgressEvent<EventTarget> | DragEvent | MouseEvent | UIEvent | ClipboardEvent | AnimationEvent | InputEvent | FocusEvent | CompositionEvent | ErrorEvent | FormDataEvent | PointerEvent | KeyboardEvent | SecurityPolicyViolationEvent | SubmitEvent | TouchEvent | TransitionEvent | WheelEvent;
30
- drag: DragEvent;
31
- keydown: KeyboardEvent;
32
- ready: CustomEvent<any>;
33
- } & {
34
- [evt: string]: CustomEvent<any>;
35
- }, {
36
- default: {};
37
- }> {
38
- get fitBounds(): (bbox: any, data?: {}) => void;
39
- get flyTo(): (destination: any, data?: {}) => void;
40
- get resize(): () => void;
41
- get setCenter(): (coords: any, data?: {}) => void;
42
- get setZoom(): (value: any, data?: {}) => void;
43
- get addControl(): (control: any, position?: string) => void;
44
- get getMap(): () => any;
45
- get getMapbox(): () => any;
46
- }
47
- export type MapProps = typeof __propDef.props;
48
- export type MapEvents = typeof __propDef.events;
49
- export type MapSlots = typeof __propDef.slots;
50
- import { SvelteComponentTyped } from "svelte";
51
- declare const __propDef: {
52
- props: {
53
- accessToken: any;
54
- map?: any;
55
- style?: string;
56
- version?: string;
57
- customStylesheetUrl?: boolean;
58
- zoom?: number;
59
- getMap?: () => any;
60
- getMapbox?: () => any;
61
- center?: number[];
62
- zoomRate?: number;
63
- wheelZoomRate?: number;
64
- fitBounds?: (bbox: any, data?: {}) => void;
65
- flyTo?: (destination: any, data?: {}) => void;
66
- resize?: () => void;
67
- setCenter?: (coords: any, data?: {}) => void;
68
- setZoom?: (value: any, data?: {}) => void;
69
- addControl?: (control: any, position?: string) => void;
70
- options?: {};
71
- };
72
- events: {
73
- recentre: Event | ProgressEvent<EventTarget> | DragEvent | MouseEvent | UIEvent | ClipboardEvent | AnimationEvent | InputEvent | FocusEvent | CompositionEvent | ErrorEvent | FormDataEvent | PointerEvent | KeyboardEvent | SecurityPolicyViolationEvent | SubmitEvent | TouchEvent | TransitionEvent | WheelEvent;
74
- dragend: DragEvent;
75
- click: MouseEvent;
76
- zoomstart: Event | ProgressEvent<EventTarget> | DragEvent | MouseEvent | UIEvent | ClipboardEvent | AnimationEvent | InputEvent | FocusEvent | CompositionEvent | ErrorEvent | FormDataEvent | PointerEvent | KeyboardEvent | SecurityPolicyViolationEvent | SubmitEvent | TouchEvent | TransitionEvent | WheelEvent;
77
- zoom: Event | ProgressEvent<EventTarget> | DragEvent | MouseEvent | UIEvent | ClipboardEvent | AnimationEvent | InputEvent | FocusEvent | CompositionEvent | ErrorEvent | FormDataEvent | PointerEvent | KeyboardEvent | SecurityPolicyViolationEvent | SubmitEvent | TouchEvent | TransitionEvent | WheelEvent;
78
- zoomend: Event | ProgressEvent<EventTarget> | DragEvent | MouseEvent | UIEvent | ClipboardEvent | AnimationEvent | InputEvent | FocusEvent | CompositionEvent | ErrorEvent | FormDataEvent | PointerEvent | KeyboardEvent | SecurityPolicyViolationEvent | SubmitEvent | TouchEvent | TransitionEvent | WheelEvent;
79
- drag: DragEvent;
80
- keydown: KeyboardEvent;
81
- ready: CustomEvent<any>;
82
- } & {
83
- [evt: string]: CustomEvent<any>;
84
- };
85
- slots: {
86
- default: {};
87
- };
88
- };
89
- export {};