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 vectorSource = new VectorSource();
const vectorLayer = new VectorLayer({ source: vectorSource, style }); const vectorLayer = new VectorLayer({
source: vectorSource,
style,
declutter: false,
});
createEffect(() => map()?.addLayer(vectorLayer)); createEffect(() => map()?.addLayer(vectorLayer));
createEffect(() => { createEffect(() => {

View File

@ -175,7 +175,6 @@ const styles = {
image: new Icon(icon), image: new Icon(icon),
text: new Text({ text: new Text({
font: '16px Calibri,sans-serif', font: '16px Calibri,sans-serif',
overflow: true,
text: text, text: text,
fill: isSelected ? textFillSel : textFill, fill: isSelected ? textFillSel : textFill,
stroke: isSelected ? textStrokeSel : textStroke, stroke: isSelected ? textStrokeSel : textStroke,