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

1.4.4 • Public • Published

Installation

npm install --save @types/amap-js-api-map-type

Summary

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

Details

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

index.d.ts

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

declare namespace AMap {
    namespace MapType {
        interface EventMap {
            hide: Event<"hide">;
            show: Event<"show">;
        }
        interface Options {
            /**
             * 初始化默认图层类型,默认为0
             * 取值为0:默认底图
             * 取值为1:卫星图
             */
            defaultType?: 0 | 1 | undefined;
            /**
             * 是否叠加实时交通图层,默认false
             */
            showTraffic?: boolean | undefined;
            /**
             * 是否叠加路网图层,默认false
             */
            showRoad?: boolean | undefined;
        }
    }

    class MapType extends EventEmitter {
        constructor(options?: MapType.Options);
        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-map-type

Weekly Downloads

10

Version

1.4.4

License

MIT

Unpacked Size

4.5 kB

Total Files

5

Last publish

Collaborators

  • types