@@ -330,7 +330,7 @@ export class FeatureFillLayer extends VectorStyleLayer
330330
331331 paintStyle ( options : StylingOptions , changes = false )
332332 {
333- const coloured = options . coloured || true
333+ const coloured = ! ( ' coloured' in options ) || options . coloured
334334 const dimmed = options . dimmed || false
335335 const functional = ( options . flatmapStyle === FLATMAP_STYLE . FUNCTIONAL )
336336 const paintStyle : PaintSpecification = {
@@ -397,8 +397,8 @@ export class FeatureBorderLayer extends VectorStyleLayer
397397
398398 paintStyle ( options : StylingOptions , changes = false )
399399 {
400- const coloured = options . coloured || true
401- const outlined = options . outlined || true
400+ const coloured = ! ( ' coloured' in options ) || options . coloured
401+ const outlined = ! ( ' outlined' in options ) || options . outlined
402402 const dimmed = options . dimmed || false
403403 const activeRasterLayer = options . activeRasterLayer || false
404404 const functional = ( options . flatmapStyle === FLATMAP_STYLE . FUNCTIONAL )
@@ -490,7 +490,7 @@ export class FeatureLineLayer extends VectorStyleLayer
490490
491491 paintStyle ( options : StylingOptions , changes = false )
492492 {
493- const coloured = options . coloured || true
493+ const coloured = ! ( ' coloured' in options ) || options . coloured
494494 const paintStyle : PaintSpecification = {
495495 'line-color' : [
496496 'case' ,
@@ -1323,7 +1323,7 @@ export class RasterStyleLayer extends StyleLayer
13231323
13241324 style ( layer : FlatMapLayer , options : StylingOptions ) : RasterLayerSpecification
13251325 {
1326- const coloured = options . coloured || true
1326+ const coloured = ! ( ' coloured' in options ) || options . coloured
13271327 const style : RasterLayerSpecification = {
13281328 ...super . style ( layer ) ,
13291329 source : this . id ,
0 commit comments