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 5.0.12 to 5.0.13

2

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

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

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

constructor(opts: GeocoderOptions);
/** 将地址信息转化为高德经纬度坐标信息 */
getLocation?(keyword: string, ReGeocoderCallback)
/** 地理编码时,设置地址描述所在城市 */
setCity(city: string)
/** 将高德经纬度坐标信息转化为结构化的地址信息 */
getAddress(location: LngLat | LngLat[], ReGeocoderCallback)
}
interface ReGeocoderCallback {
(status: string, result: ReGeocoderResult): void
}
interface ReGeocoderResult {
info: string
regeocode: {
formattedAddress: string
}
}
interface GeocoderOptions {

@@ -83,0 +98,0 @@ /**

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