Skip to content

Commit

Permalink
fix: Use configured colors in inactive layers
Browse files Browse the repository at this point in the history
  • Loading branch information
m453h committed Aug 28, 2024
1 parent c228e0a commit 917a2c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/hurumap-next/src/Map/Layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ function Layers({
const locationCodes =
locationCodesProp?.map((c) => c.toUpperCase()) || [];
if (!locationCodes?.includes(feature.properties.code.toUpperCase())) {
geoStyles.inactive.color = choropleth[0].color;
layer.setStyle(geoStyles.inactive);
} else {
const popUpContent = (level, name) =>
Expand Down

0 comments on commit 917a2c1

Please sign in to comment.