Socket
Socket
Sign inDemoInstall

@uiw/react-amap-types

Package Overview
Dependencies
Maintainers
2
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 4.4.1 to 4.4.2

2

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

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

@@ -9,3 +9,8 @@ // @ts-ignore

declare namespace AMap {
const version: string;
/** 1.x.xx 版本 API,版本号用的是这个字段 */
const v:string;
/** 2.x.xx 版本 API,版本号用的是这个字段 */
const version: string;
/**

@@ -12,0 +17,0 @@ * 经纬度坐标,用来描述地图上的一个点位置, 目前高德地图使用的是 GCJ-02 坐标,如果你采集的是 WGS84 坐标,请先进行坐标转换

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

'AMap.AutoComplete' |
'AMap.Autocomplete' |
'AMap.ControlBar' |

@@ -316,0 +317,0 @@ 'AMap.CloudDataSearch' |

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

}
/**
* 根据输入关键字提示匹配信息,可将Poi类型和城市作为输入提示的限制条件。用户可以通过自定义回调函数取回并显
*/
class Autocomplete extends MapEventListener<'choose' | 'select'> {
constructor(opts: AutoCompleteOptions);
/** 设置提示Poi类型,多个类型用“|”分隔,POI相关类型请在网站“相关下载”处下载,目前只支持Poi类型编码如“050000” 默认值:所有类别 */
setType(type: string): void;
/** 设置城市 */
setCity(city: string): void;
/** 设置是否强制限制城市 */
setCityLimit(citylimit: boolean): void;
/** 设置是否强制限制城市 */
search(keyword?: string, callback?: (status: 'complete' | 'error' | 'no_data', result?: AutoCompleteSearchCallback) => void): void;
}
}
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