Render the GeoJson/TopoJson and color scale objects.
(self, **kwargs)
| 1706 | return value |
| 1707 | |
| 1708 | def render(self, **kwargs): |
| 1709 | """Render the GeoJson/TopoJson and color scale objects.""" |
| 1710 | if self.color_scale: |
| 1711 | # ColorMap needs Map as its parent |
| 1712 | assert isinstance( |
| 1713 | self._parent, Map |
| 1714 | ), "Choropleth must be added to a Map object." |
| 1715 | self.color_scale._parent = self._parent |
| 1716 | |
| 1717 | super().render(**kwargs) |
| 1718 | |
| 1719 | |
| 1720 | class DivIcon(MacroElement): |