ToolBar
AMap.ToolBar
Map Operation Toolbar Control. Supports directional navigation, location positioning, view level zooming, view level selection, and other operations. Inherits from AMap.Control. Constructs a map operation toolbar object.
new AMap.ToolBar(opts: ControlConfig)Parameter
opts (ControlConfig): Map Operation Toolbar Plugin Parameters
Demo
AMap.plugin(["AMap.ToolBar"], function () {
//Load Toolbar
var tool = new AMap.ToolBar();
map.addControl(tool);
});Method
remove()
Remove control from map
Demo:
tool.remove();show()
Show control
Demo:
tool.show();hide()
Hide control
Demo:
tool.hide();Event
For event object property descriptions, go to:MapsEvent