Skip to content

Commit

Permalink
feat: read color from drawGeojsonData properties if set (#492)
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicamcinchak authored Sep 2, 2024
1 parent 978cbc4 commit cce3620
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/my-map/drawing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ function configureDrawingLayerStyle(
drawMany: boolean,
feature: FeatureLike,
) {
drawColor = feature.get("color") || drawColor;
switch (drawType) {
case "Point":
return new Style({
Expand Down

0 comments on commit cce3620

Please sign in to comment.