Trying decluttering (doesn't work that well)

This commit is contained in:
Eric van der Vlist 2022-12-10 21:58:27 +01:00
parent b2955c8bbd
commit 8c82b9c040
2 changed files with 5 additions and 2 deletions

View File

@ -65,7 +65,11 @@ export const Gpx: Component<Props> = ({ 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(() => {

View File

@ -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,