1.4.4 • Published 6 months ago

@types/amap-js-api-control-bar v1.4.4

Weekly downloads
20
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for non-npm package amap-js-api-control-bar 1.4
// Project: https://lbs.amap.com/api/javascript-api/reference/map-control#control-bar
// Definitions by: breeze9527 <https://github.com/breeze9527>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8

/// <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

  • Last updated: Wed, 07 Jul 2021 21:44:08 GMT
  • Dependencies: @types/amap-js-api
  • Global values: AMap

Credits

These definitions were written by breeze9527.

1.4.4

6 months ago

1.4.3

7 months ago

1.4.2

8 months ago

1.4.1

3 years ago

1.4.0

5 years ago