Renders the HTML representation of the element.
(self, **kwargs)
| 270 | self.overlays = OrderedDict() |
| 271 | |
| 272 | def render(self, **kwargs): |
| 273 | """Renders the HTML representation of the element.""" |
| 274 | self.reset() |
| 275 | for item in self._parent._children.values(): |
| 276 | if not isinstance(item, Layer) or not item.control: |
| 277 | continue |
| 278 | key = item.layer_name |
| 279 | if not item.overlay: |
| 280 | self.base_layers[key] = item.get_name() |
| 281 | else: |
| 282 | self.overlays[key] = item.get_name() |
| 283 | super().render() |
| 284 | |
| 285 | |
| 286 | class Icon(MacroElement): |