Trying decluttering (doesn't work that well)
This commit is contained in:
parent
b2955c8bbd
commit
8c82b9c040
|
@ -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(() => {
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue