@uiw/react-amap-types
Advanced tools
Comparing version 2.7.10 to 2.7.11
{ | ||
"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; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
135674
3458