Skip to content

Commit 6c64a7d

Browse files
authored
Merge pull request #539 from martinRenou/choropleth_int_data
Fix Choropleth class when using integer data
2 parents 7a11469 + f130974 commit 6c64a7d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ipyleaflet/leaflet.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from ipywidgets.widgets.trait_types import InstanceDict
1515

1616
from traitlets import (
17-
Float, Unicode, Int, Tuple, List, Instance, Bool, Dict, Enum,
17+
CFloat, Float, Unicode, Int, Tuple, List, Instance, Bool, Dict, Enum,
1818
link, observe, default, validate, TraitError, Union, Any
1919
)
2020

@@ -608,8 +608,8 @@ def _get_data(self):
608608
class Choropleth(GeoJSON):
609609
geo_data = Dict()
610610
choro_data = Dict()
611-
value_min = Float(None, allow_none=True)
612-
value_max = Float(None, allow_none=True)
611+
value_min = CFloat(None, allow_none=True)
612+
value_max = CFloat(None, allow_none=True)
613613
colormap = Instance(ColorMap)
614614
key_on = Unicode('id')
615615

0 commit comments

Comments
 (0)