diff --git a/src/components/gpx/Gpx.tsx b/src/components/gpx/Gpx.tsx index 6367245..1c6c667 100644 --- a/src/components/gpx/Gpx.tsx +++ b/src/components/gpx/Gpx.tsx @@ -65,7 +65,11 @@ export const Gpx: Component = ({ map, gpxId }) => { }); const vectorSource = new VectorSource(); - const vectorLayer = new VectorLayer({ source: vectorSource, style }); + const vectorLayer = new VectorLayer({ + source: vectorSource, + style, + declutter: false, + }); createEffect(() => map()?.addLayer(vectorLayer)); createEffect(() => { diff --git a/src/components/gpx/styles.ts b/src/components/gpx/styles.ts index 23179ae..f0ae067 100644 --- a/src/components/gpx/styles.ts +++ b/src/components/gpx/styles.ts @@ -175,7 +175,6 @@ const styles = { image: new Icon(icon), text: new Text({ font: '16px Calibri,sans-serif', - overflow: true, text: text, fill: isSelected ? textFillSel : textFill, stroke: isSelected ? textStrokeSel : textStroke,