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

1.4.4 • Public • Published

Installation

npm install --save @types/amap-js-api-overview

Summary

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

Details

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

index.d.ts

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

declare namespace AMap {
    namespace OverView {
        interface EventMap {
            show: Event<"show">;
            hide: Event<"hide">;
            open: Event<"open">;
            close: Event<"close">;
        }
        interface Options<L extends TileLayer = TileLayer> {
            /**
             * 鹰眼窗体中需显示的切片图层
             */
            tileLayer?: L | undefined;
            /**
             * 鹰眼是否展开,默认为false
             */
            isOpen?: boolean | undefined;
            /**
             * 鹰眼是否显示,默认为true
             */
            visible?: boolean | undefined;
        }
    }

    /**
     * 地图鹰眼插件
     */
    class OverView<L extends TileLayer = TileLayer> extends EventEmitter {
        constructor(options?: OverView.Options<L>);
        /**
         * 显示鹰眼窗体
         */
        show(): void;
        /**
         * 隐藏鹰眼窗体
         */
        hide(): void;
        /**
         * 展开鹰眼窗口
         */
        open(): void;
        /***
         * 折叠鹰眼窗口
         */
        close(): void;
        /**
         * 设置鹰眼中需显示的切片图层
         * @param tileLayer 切片图层
         */
        setTileLayer(tileLayer: L): void;
        /**
         * 获取窗体中显示的切片图层
         */
        getTileLayer(): L;
    }
}

Additional Details

Credits

These definitions were written by breeze9527.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/amap-js-api-overview

Weekly Downloads

5

Version

1.4.4

License

MIT

Unpacked Size

5.69 kB

Total Files

5

Last publish

Collaborators

  • types