Skip to content

Commit

Permalink
fix: increase drawMany label font size and default drawing point si…
Browse files Browse the repository at this point in the history
…ze (#483)
  • Loading branch information
jessicamcinchak authored Aug 29, 2024
1 parent f28222b commit 04c7951
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/my-map/drawing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}),
});
}
Expand All @@ -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,
Expand Down

0 comments on commit 04c7951

Please sign in to comment.