From 39876031e4e94c7a41794265c5a37cb3dbc5480f Mon Sep 17 00:00:00 2001 From: Eric van der Vlist Date: Thu, 16 Mar 2023 21:41:29 +0100 Subject: [PATCH] Setting a higher z-index for GPX layers --- src/components/gpx/Gpx.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/gpx/Gpx.tsx b/src/components/gpx/Gpx.tsx index 5f8e245..dcf4e5a 100644 --- a/src/components/gpx/Gpx.tsx +++ b/src/components/gpx/Gpx.tsx @@ -43,11 +43,13 @@ export const Gpx: Component = ({ map, gpxId }) => { source: vectorSources[0], style, declutter: true, + zIndex: 1, }), new VectorLayer({ source: vectorSources[1], style, declutter: false, + zIndex: 2, }), ]; createEffect(() => {