Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@uiw/react-amap-types

Package Overview
Dependencies
Maintainers
1
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uiw/react-amap-types - npm Package Compare versions

Comparing version 2.7.10 to 2.7.11

2

package.json
{
"name": "@uiw/react-amap-types",
"version": "2.7.10",
"version": "2.7.11",
"description": "基于 React 封装的高德地图组件。AMap Component Based On React.",

@@ -5,0 +5,0 @@ "homepage": "https://uiwjs.github.io/react-amap/#/types",

@@ -20,3 +20,3 @@ /// <reference path="./base.d.ts" />

*/
setCenter(center: [number, number] | LngLat, immediately: boolean, duration?: number): void;
setCenter(center: [number, number] | LngLat, immediately?: boolean, duration?: number): void;
/**

@@ -43,3 +43,3 @@ * 地图缩放至指定级别并以指定点为地图显示中心点

*/
setZoom(zoom: number, immediately: boolean, duration?: number): void;
setZoom(zoom: number, immediately?: boolean, duration?: number): void;
/**

@@ -46,0 +46,0 @@ * 获取当前地图缩放级别, 默认取值范围为[2, 20]

@@ -59,2 +59,13 @@ /// <reference path="./base.d.ts" />

/**
* 添加文本标注
*/
interface MarkerLabelOptions {
/** 文本标注的内容 */
content?: string;
/** 文本标注方位 可选值,默认值: `right`。 */
direction?: 'top'|'right'|'bottom'|'left'|'center';
/** 为偏移量。如设置了 direction,以 direction 方位为基准点进行偏移。 */
offset?: AMap.Pixel;
}
/**
* [点标记](https://a.amap.com/jsapi/static/doc/index.html?v=2#marker)

@@ -73,5 +84,5 @@ */

/** 获取点标记文本标签内容 */
getLabel(): TextOptions;
getLabel(): MarkerLabelOptions;
/** 设置点标记文本标签内容相关示例(https://lbs.amap.com/api/javascript-api/example/marker/set-marker-text-label/) */
setLabel(opts: TextOptions): void;
setLabel(opts: MarkerLabelOptions): void;
/** 获取点标记是否支持鼠标单击事件Boolean */

@@ -78,0 +89,0 @@ getClickable(): boolean;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc