aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/LocationsMap.svelte8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/components/LocationsMap.svelte b/src/components/LocationsMap.svelte
index 6f84408e..d5caba0d 100644
--- a/src/components/LocationsMap.svelte
+++ b/src/components/LocationsMap.svelte
@@ -3,6 +3,7 @@
import { browser } from '$app/environment';
import html2canvas from 'html2canvas';
import { Icon, Popup } from '$comp';
+ import { shuffleArray } from "$lib/utils";
import 'maplibre-gl/dist/maplibre-gl.css';
@@ -129,13 +130,6 @@
shuffleArray(inview);
}
-function shuffleArray(array) {
- for (let i = array.length - 1; i > 0; i--) {
- const j = Math.floor(Math.random() * (i + 1));
- [array[i], array[j]] = [array[j], array[i]];
- }
-}
-
let popups = {};
let counter = 0;