@types/amap-js-api-control-bar
TypeScript icon, indicating that this package has built-in type declarations

1.4.4 • Public • Published

Installation

npm install --save @types/amap-js-api-control-bar

Summary

This package contains type definitions for amap-js-api-control-bar (https://lbs.amap.com/api/javascript-api/reference/map-control#control-bar).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/amap-js-api-control-bar.

index.d.ts

/// <reference types="amap-js-api" />

declare namespace AMap {
    namespace ControlBar {
        interface EventMap {
            hide: Event<"hide">;
            show: Event<"show">;
        }
        interface Position {
            top?: string | undefined;
            right?: string | undefined;
            bottom?: string | undefined;
            left?: string | undefined;
        }
        interface Options {
            /**
             * 显示位置
             */
            position?: Position | undefined;
            /**
             * 是否显示缩放按钮
             */
            showZoomBar?: boolean | undefined;
            /**
             * 是否显示倾斜、旋转按钮
             */
            showControlButton?: boolean | undefined;
        }
    }
    class ControlBar extends EventEmitter {
        /**
         * 组合了旋转、倾斜、复位、缩放在内的地图控件
         * @param options 选项
         */
        constructor(options?: ControlBar.Options);
        // internal
        show(): void;
        hide(): void;
    }
}

Additional Details

Credits

These definitions were written by breeze9527.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/amap-js-api-control-bar

Weekly Downloads

7

Version

1.4.4

License

MIT

Unpacked Size

4.99 kB

Total Files

5

Last publish

Collaborators

  • types