Use non full white as left color for default choropleth color scale

This commit is contained in:
Yohan Boniface 2023-10-10 21:58:38 +02:00
parent bcd9b1ac04
commit e97e566c42

View file

@ -151,7 +151,7 @@ L.U.Layer.Choropleth = L.FeatureGroup.extend({
)
const fillColor = this.datalayer.getOption('fillColor') || this.defaults.fillColor
this.options.colors = chroma
.scale(this.datalayer.options.choropleth.brewer || ['white', fillColor])
.scale(this.datalayer.options.choropleth.brewer || ['#f7f7f7', fillColor])
.colors(this.options.limits.length - 1)
},