From cce3620f7ae2dd60bbfd8ffce4229095711abf07 Mon Sep 17 00:00:00 2001 From: Jessica McInchak Date: Mon, 2 Sep 2024 18:39:48 +0200 Subject: [PATCH] feat: read color from `drawGeojsonData` properties if set (#492) --- src/components/my-map/drawing.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/my-map/drawing.ts b/src/components/my-map/drawing.ts index cc2a486..f8496d3 100644 --- a/src/components/my-map/drawing.ts +++ b/src/components/my-map/drawing.ts @@ -87,6 +87,7 @@ function configureDrawingLayerStyle( drawMany: boolean, feature: FeatureLike, ) { + drawColor = feature.get("color") || drawColor; switch (drawType) { case "Point": return new Style({