Propose a solution for using Choropleth layer without giving an initial choro_data. Fix issue #934
In this implementation, when no dict is given for choro_data, a dict is built from the key of the geo_data and the affected value is zero for all keys. A check is performed to see wether all values of choro_data are identical (that means there is no geographical variation in the observed data that is not very likely) a warning is raised and the color and opacity attributed are set to the nan default ones.
Propose a solution for using Choropleth layer without giving an initial
choro_data
. Fix issue #934 In this implementation, when no dict is given forchoro_data
, a dict is built from the key of thegeo_data
and the affected value is zero for all keys. A check is performed to see wether all values ofchoro_data
are identical (that means there is no geographical variation in the observed data that is not very likely) a warning is raised and the color and opacity attributed are set to the nan default ones.