oneworld.WebMap.add_layer_control
- WebMap.add_layer_control(position='topright', collapsed=True, autoindex=True, hidesinglebase=True)
Add a layer control panel.
Basemap names will appear by order of creation (top to bottom), and will have radio buttons (only one basemap active at a time). Overlay names will appear by order of creation (top to bottom), with check boxes (multiple overlays active at the same time possible).
- Parameters:
position ({'topleft', 'topright', 'bottomleft', 'bottomright'}) – Position of the panel in the map (Default: ‘topright’).
collapsed (bool) – If True, the panel will be colapsed on map load and will expand on mouse over (Default: True).
autoindex (bool) – If True, displays layers on the panel by order of creation (top to bottom) (Default: True).
hidesinglebase (bool) – If True, hide the basemap layer from the control if there is only one single basemap (Default: True).