digiplan.map.choropleths#
Module to support choropleths in digiplan.
Choropleth
#
Base class for choropleths.
__init__(lookup, map_state=None)
#
Initialize choropleth.
Parameters#
lookup : str given lookup name map_state : dict current state of map (comes from mapengine)
get_fill_color(values)
#
get_paint_properties()
staticmethod
#
Return paint properties for choropleth.
Can be overwritten by child class.
Returns#
dict containing paint properties for choropleth layer in maplibre
get_values_per_feature()
abstractmethod
#
Must be overwritten by child class.
EnergyShare2045Choropleth
#
Bases: Choropleth
get_fill_color(values)
#
Fix choropleth legend and colors to max value of 100%.
EnergyShareChoropleth
#
Bases: Choropleth
get_fill_color(values)
#
Fix choropleth legend and colors to max value of 100%.