Use Range input for choropleth steps, and limit to 9

This limit comes from ColorBrower sequential color sets, which
we use.
This commit is contained in:
Yohan Boniface 2023-10-09 12:38:10 +02:00
parent 82bb017b23
commit 3334db3fa2

View file

@ -207,7 +207,10 @@ L.U.Layer.Choropleth = L.FeatureGroup.extend({
[
'options.choropleth.steps',
{
handler: 'IntInput',
handler: 'Range',
min: 3,
max: 9,
step: 1,
placeholder: L._('Choropleth steps'),
helpText: L._('Choropleth steps (default 5)'),
},