Socket
Book a DemoInstallSign in
Socket

@amap/amap-jsapi-types

Package Overview
Dependencies
Maintainers
5
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amap/amap-jsapi-types

amap-jsapi-types 是高德开放平台官网提供的地图 JSAPI2.0 的 Typescript 声明文件

latest
Source
npmnpm
Version
0.0.15
Version published
Maintainers
5
Created
Source

@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

FAQs

Package last updated on 14 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.