0.0.15 • Published 2 months ago

@amap/amap-jsapi-types v0.0.15

Weekly downloads
106
License
MIT
Repository
github
Last release
2 months ago

@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