Skip to content

Commit

Permalink
read drawColor from geojson properties if set
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicamcinchak committed Sep 2, 2024
1 parent 1d47d13 commit b398d80
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 b398d80

Please sign in to comment.