From 9dcd8f9bd1465300ade75f4682f2d1293f9333a7 Mon Sep 17 00:00:00 2001 From: Jessica McInchak Date: Wed, 23 Oct 2024 12:26:50 +0200 Subject: [PATCH] fix: consistent point styles (#509) --- src/components/my-map/drawing.ts | 6 +++--- src/components/my-map/index.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/my-map/drawing.ts b/src/components/my-map/drawing.ts index b3f3f1c..13e6548 100644 --- a/src/components/my-map/drawing.ts +++ b/src/components/my-map/drawing.ts @@ -29,7 +29,7 @@ function configureDrawPointerImage( }); case "dot": return new CircleStyle({ - radius: 6, + radius: 10, fill: new Fill({ color: drawColor, }), @@ -89,11 +89,11 @@ function configureDrawingLayerStyle( case "Point": return new Style({ image: new Circle({ - radius: hideDrawLabels ? 10 : 12, + radius: drawMany && !hideDrawLabels ? 12 : 10, fill: new Fill({ color: "#fff" }), stroke: new Stroke({ color: drawColor, - width: hideDrawLabels ? 6 : 2, + width: drawMany && !hideDrawLabels ? 2 : 6, }), }), text: diff --git a/src/components/my-map/index.ts b/src/components/my-map/index.ts index 1f297fd..1ac3092 100644 --- a/src/components/my-map/index.ts +++ b/src/components/my-map/index.ts @@ -503,7 +503,7 @@ export class MyMap extends LitElement { : hexToRgba(featureColor, 0), }), image: new Circle({ - radius: 9, + radius: 10, fill: new Fill({ color: featureColor }), }), }); @@ -706,7 +706,7 @@ export class MyMap extends LitElement { } const markerCircle = new Circle({ - radius: 9, + radius: 10, fill: new Fill({ color: this.markerColor }), });