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

0.0.15 • Public • Published

@amap/amap-jsapi-types

@amap/amap-jsapi-types 是高德开放平台官网提供的地图 JSAPI2.0 的 Typescript 声明文件。旨在为开发者提供 Typescript 环境下的类型提示,提升开发体验。

目前仅包含 JSAPI2.0 核心文件的接口,不包含插件的接口!

INSTALL

npm i -S @amap/amap-jsapi-types

USAGE

import "@amap/amap-jsapi-types";

const mapOptions: AMap.MapOptions = {
  center :[116.45, 39.92],
  zoom: 10,

};
const map = new AMap.Map('container',mapOptions);
const circle :AMap.CircleMarker = new AMap.CircleMarker({
  center:[116.45, 39.92],
  radius: 30
});

map.add(circle);

相关链接:

地               图 JSAPI:   示例中心    教程    参考手册

官方 JSAPI 加载器:     教程             NPM

Readme

Keywords

none

Package Sidebar

Install

npm i @amap/amap-jsapi-types

Weekly Downloads

1,112

Version

0.0.15

License

MIT

Unpacked Size

254 kB

Total Files

15

Last publish

Collaborators

  • duxiaohui
  • phlicess
  • fxxjdedd
  • qfish
  • mengmeng.du