@uiw/react-amap-types
Advanced tools
Comparing version 5.0.12 to 5.0.13
{ | ||
"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 @@ /** |
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
158649
3995