Trying decluttering (doesn't work that well)
This commit is contained in:
1 parent
b2955c8bbd
commit
8c82b9c040
2 files changed
+5
-2
No files matched your search
@@ -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(() => {
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in new issue
Block a user