ui.Map.setControlVisibility

Sets the visibility of the controls on the map.

Returns this ui.Map.

UsageReturns
Map.setControlVisibility(all, layerList, zoomControl, scaleControl, mapTypeControl, fullscreenControl, drawingToolsControl)ui.Map
ArgumentTypeDetails
this: ui.mapui.Map

The ui.Map instance.

allBoolean, optional

Whether to show all controls. False hides all controls; true shows all controls. Overridden by individually set parameters. Note that setting this explicitly will affect any additional controls added in the future.

layerListBoolean, optional

When false, hides the layer list panel or, when true, allows the layer list panel's visibility to be determined by the presence of layers in the list. The default is to show the list.

zoomControlBoolean, optional

Whether the zoom control is visible. Defaults to true.

scaleControlBoolean, optional

Whether to show the control which indicates the scale at the map's current zoom level. Defaults to true.

mapTypeControlBoolean, optional

Whether to show the control that allows the user to change the base map. Defaults to true.

fullscreenControlBoolean, optional

Whether to show the control that allows the user to make the map full-screen. Defaults to true.

drawingToolsControlBoolean, optional

Whether to show the control that allows the user to add or edit the geometry drawing tools. Defaults to true if the drawing tools were previously added to the map. Ignored if the drawing tools were not previously added to the map.

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!