Skip to content

Commit b5f281c

Browse files
committed
Set COLOUR_SELECTED to #8EF35D and selected opacity to 1.0 for consistent rendering (#68).
1 parent 78cf0fe commit b5f281c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/layers/styling.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export interface StylingOptions extends StyleLayerOptions
7070

7171
const COLOUR_ACTIVE = 'blue'
7272
const COLOUR_ANNOTATED = '#C8F'
73-
const COLOUR_SELECTED = '#0F0'
73+
const COLOUR_SELECTED = '#8EF35D'
7474
const COLOUR_HIDDEN = '#D8D8D8'
7575

7676
const CENTRELINE_ACTIVE = '#888'
@@ -356,7 +356,7 @@ export class FeatureFillLayer extends VectorStyleLayer
356356
'fill-opacity': [
357357
'case',
358358
['boolean', ['feature-state', 'hidden'], false], 0.01,
359-
['boolean', ['feature-state', 'selected'], false], 0.2,
359+
['boolean', ['feature-state', 'selected'], false], 1.0,
360360
['has', 'opacity'], ['get', 'opacity'],
361361
['has', 'colour'], 1.0,
362362
['==', ['get', 'kind'], 'proxy'], 1.0,
@@ -1125,7 +1125,7 @@ export class NervePolygonFill extends VectorStyleLayer
11251125
'fill-opacity': [
11261126
'case',
11271127
['boolean', ['feature-state', 'hidden'], false], 0.01,
1128-
['boolean', ['feature-state', 'selected'], false], 0.2,
1128+
['boolean', ['feature-state', 'selected'], false], 1,
11291129
['has', 'opacity'], ['get', 'opacity'],
11301130
['has', 'colour'], 1.0,
11311131
['==', ['get', 'kind'], 'proxy'], 1.0,

0 commit comments

Comments
 (0)