@types/amap-js-api-map-type
@types/amap-js-api-map-type
npm i @types/amap-js-api-map-type
@types/amap-js-api-map-type

@types/amap-js-api-map-type

The repository for high quality TypeScript type definitions.

by DefinitelyTyped

1.4.1 (see all)License:MITTypeScript:Built-In
npm i @types/amap-js-api-map-type
Readme

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

// Type definitions for non-npm package amap-js-api-map-type 1.4
// Project: https://lbs.amap.com/api/javascript-api/reference/map-control#AMap.MapType
// 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 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

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

Credits

These definitions were written by breeze9527.

Downloads/wk

6

GitHub Stars

40.9K

LAST COMMIT

7mos ago

MAINTAINERS

1

CONTRIBUTORS

17,572

OPEN ISSUES

635

OPEN PRs

201
VersionTagPublished
1.4.1
latest
1yr ago
1.4.1
ts4.7
1yr ago
1.4.1
ts4.6
1yr ago
1.4.1
ts4.8
1yr ago
No alternatives found
No tutorials found
Add a tutorial

Rate & Review

100
No reviews found
Be the first to rate