File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
lib/components/data-vis/map
wrappers/components/data-vis/map Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 78
78
mapHeight = 200 ,
79
79
setMaxBounds = false ,
80
80
onload,
81
+ onidle,
81
82
}: {
82
83
data: object [];
83
84
customPalette? : object [];
120
121
customBreaks? : number [];
121
122
interactive? : boolean ;
122
123
onload? : (map : maplibregl .Map ) => void ;
124
+ onidle? : (e : maplibregl .MapLibreEvent ) => void ;
123
125
} = $props ();
124
126
125
127
let styleLookup = {
316
318
{interactive }
317
319
class =" map"
318
320
{onload }
321
+ {onidle }
319
322
>
320
323
{#if interactive && ! standardControls }
321
324
<NonStandardControls
Original file line number Diff line number Diff line change 590
590
},
591
591
category: " Events" ,
592
592
},
593
+ {
594
+ name: " onidle" ,
595
+ isProp: true ,
596
+ description: " Pass a function to use when the map is idle" ,
597
+ value : () => {
598
+ console .log (" idle" );
599
+ },
600
+ functionElements: {
601
+ functionAsString: ` () => { console.log("idle"); }` ,
602
+ },
603
+ category: " Events" ,
604
+ },
593
605
]),
594
606
);
595
607
You can’t perform that action at this time.
0 commit comments