From 687c99867838412be8f685fd34627037af3da597 Mon Sep 17 00:00:00 2001 From: vcoppe Date: Sun, 28 Apr 2024 19:18:54 +0200 Subject: [PATCH] style elevation profile marker --- website/src/lib/components/ElevationProfile.svelte | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/website/src/lib/components/ElevationProfile.svelte b/website/src/lib/components/ElevationProfile.svelte index 931e49bf..1e9a181e 100644 --- a/website/src/lib/components/ElevationProfile.svelte +++ b/website/src/lib/components/ElevationProfile.svelte @@ -226,7 +226,11 @@ } ] }); - marker = new mapboxgl.Marker(); + let element = document.createElement('div'); + element.className = 'h-4 w-4 rounded-full bg-cyan-500 border-2 border-white'; + marker = new mapboxgl.Marker({ + element + }); }); $: if (chart && $settings) {