Adds a layer control to the map. Args: position (str, optional): The position of the layer control. Defaults to 'topright'.
(self, position="topright")
| 508 | ) |
| 509 | |
| 510 | def add_layer_control(self, position="topright") -> None: |
| 511 | """Adds a layer control to the map. |
| 512 | |
| 513 | Args: |
| 514 | position (str, optional): The position of the layer control. Defaults to 'topright'. |
| 515 | """ |
| 516 | |
| 517 | self.add(ipyleaflet.LayersControl(position=position)) |
| 518 | |
| 519 | def layer_opacity(self, name, value=1.0) -> None: |
| 520 | """Changes layer opacity. |
no test coverage detected