MCPcopy Index your code
hub / github.com/opengeos/leafmap / add_layer_control

Method add_layer_control

leafmap/leafmap.py:510–517  ·  view source on GitHub ↗

Adds a layer control to the map. Args: position (str, optional): The position of the layer control. Defaults to 'topright'.

(self, position="topright")

Source from the content-addressed store, hash-verified

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.

Callers 4

view_vectorFunction · 0.95
split_mapMethod · 0.95
add_nlcd_tsMethod · 0.95
add_wayback_layersMethod · 0.95

Calls 1

addMethod · 0.95

Tested by

no test coverage detected