Skip to content

Commit

Permalink
Reduce opacity on custom zones
Browse files Browse the repository at this point in the history
  • Loading branch information
louptheron committed Nov 9, 2023
1 parent 4111dca commit 82d5251
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { getColorWithAlpha, getHashDigitsFromString } from '../../map/layers/sty
import { DEFAULT_ZONE_BORDER, DEFAULT_ZONE_COLOR, DIGIT_TO_LAYER_COLOR_MAP } from '../constants'

export function computeCustomZoneStyle(uuid: string, name: string): [Style] {
const defaultStyle = getCustomZoneStyle(getColorWithAlpha(DEFAULT_ZONE_COLOR, 0.75), name)
const defaultStyle = getCustomZoneStyle(getColorWithAlpha(DEFAULT_ZONE_COLOR, 0.4), name)

const randomDigits = getHashDigitsFromString(uuid)
if (!randomDigits) {
Expand All @@ -19,7 +19,7 @@ export function computeCustomZoneStyle(uuid: string, name: string): [Style] {
return [defaultStyle]
}

return [getCustomZoneStyle(getColorWithAlpha(color, 0.75), name)]
return [getCustomZoneStyle(getColorWithAlpha(color, 0.4), name)]
}

function getCustomZoneStyle(color: string | undefined, name: string | undefined) {
Expand Down

0 comments on commit 82d5251

Please sign in to comment.