mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
24 lines
424 B
TypeScript
24 lines
424 B
TypeScript
declare const map: AMap.Map;
|
|
|
|
// $ExpectType ControlBar
|
|
new AMap.ControlBar();
|
|
// $ExpectType ControlBar
|
|
const controlBar = new AMap.ControlBar({
|
|
position: {
|
|
left: 'left',
|
|
right: 'right',
|
|
top: 'top',
|
|
bottom: 'bottom'
|
|
},
|
|
showZoomBar: true,
|
|
showControlButton: true
|
|
});
|
|
|
|
// $ExpectType void
|
|
controlBar.show();
|
|
|
|
// $ExpectType void
|
|
controlBar.hide();
|
|
|
|
map.addControl(controlBar);
|