From 3766ed949f8adf62dc29ef215da8b20129130735 Mon Sep 17 00:00:00 2001 From: Jessica McInchak Date: Thu, 29 Aug 2024 12:42:57 +0200 Subject: [PATCH] bump font size & point size --- src/components/my-map/drawing.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/my-map/drawing.ts b/src/components/my-map/drawing.ts index 1f5135f..cc2a486 100644 --- a/src/components/my-map/drawing.ts +++ b/src/components/my-map/drawing.ts @@ -69,14 +69,14 @@ function getVertices(drawColor: string) { function styleFeatureLabels(drawType: DrawTypeEnum, feature: FeatureLike) { return new Text({ text: feature.get("label"), - font: "80px inherit", + font: "20px Source Sans Pro,sans-serif", placement: drawType === "Point" ? "line" : "point", // "point" placement is center point of polygon fill: new Fill({ color: "#000", }), stroke: new Stroke({ color: "#fff", - width: 3, + width: 4, }), }); } @@ -91,7 +91,7 @@ function configureDrawingLayerStyle( case "Point": return new Style({ image: new Circle({ - radius: 9, + radius: 12, fill: new Fill({ color: drawColor }), }), text: drawMany ? styleFeatureLabels(drawType, feature) : undefined,