@uiw/react-amap-types
Advanced tools
Comparing version 7.1.0 to 7.1.1
{ | ||
"name": "@uiw/react-amap-types", | ||
"version": "7.1.0", | ||
"version": "7.1.1", | ||
"description": "基于 React 封装的高德地图组件。AMap Component Based On React.", | ||
@@ -5,0 +5,0 @@ "funding": "https://jaywcjlove.github.io/#/sponsor", |
@@ -171,2 +171,25 @@ // @ts-ignore | ||
} | ||
class GeometryUtil { | ||
distance(p1, p2): number; | ||
ringArea(ring: LngLat[] | [number, number][]): number; | ||
ringAreaByAltitude(params: any): number; | ||
isClockwise(ring: LngLat[] | [number, number][]): boolean; | ||
typePolygon(ring: LngLat[] | [number, number][]): boolean; | ||
makesureClockwise(ring: LngLat[] | [number, number][]): [number, number][]; | ||
makesureAntiClockwise(ring: LngLat[] | [number, number][]): [number, number][]; | ||
distanceOfLine(ring: LngLat[] | [number, number][]): number; | ||
isPointInRing(p: LngLat | [number, number],ring: LngLat[] | [number, number][]): boolean; | ||
distanceToLine(p: LngLat | [number, number],line: LngLat[] | [number, number][]): number; | ||
} | ||
interface DistrictSearchOptions { | ||
level: string; showbiz: boolean; extensions: string; subdistrict: number | ||
} | ||
/** | ||
* 需引入相关plugin | ||
*/ | ||
class DistrictSearch { | ||
constructor(opts: DistrictSearchOptions); | ||
search(keywords: string, callback: (status: string, result: any) => void): void; | ||
} | ||
class MapEventListener<T = ''> { | ||
@@ -173,0 +196,0 @@ /** |
@@ -44,6 +44,11 @@ /// <reference path="./base.d.ts" /> | ||
/** | ||
* 设置当前地图可现实的缩放级别, 取值范围为[2, 20] | ||
* @param zoomRange 缩放级别范围 | ||
*/ | ||
setZooms(zoomRange: [number, number]): void; | ||
/** | ||
* 获取当前地图缩放级别, 默认取值范围为[2, 20] | ||
* @param digits zoom级别的小数位精度,缺省为2 | ||
*/ | ||
getZoom(digits: number): number; | ||
getZoom(digits?: number): number; | ||
/** 地图放大一级显示 */ | ||
@@ -257,2 +262,19 @@ zoomIn(): void; | ||
/** | ||
* 根据 overlays 计算出合适的中心点和 zoom 级别 | ||
* 参数说明: | ||
* @param overlays (Array<Overlay>) 覆盖物 | ||
* @param avoid (Array<Number> = [0,0,0,0]) 四周边距,上、下、左、右 | ||
* @param maxZoom (Number = CoreMap.defaultZooms[1]) 最大 zoom 级别 | ||
*/ | ||
getFitZoomAndCenterByOverlays(overlays: Array<TileLayer> | null, avoid: number[], maxZoom: number): void; | ||
/** | ||
* 根据 overlays 计算出合适的中心点和 zoom 级别 | ||
* 参数说明: | ||
* @param bounds ((Array<number> | Bounds)) 需要计算的范围 | ||
* @param avoid (Array<Number> = [0,0,0,0]) 四周边距,上、下、左、右 | ||
* @param maxZoom (Number = CoreMap.defaultZooms[1]) 最大 zoom 级别 | ||
*/ | ||
getFitZoomAndCenterByBounds(bounds: (number[] | Bounds), avoid: number[], maxZoom: number): void; | ||
/** | ||
* 添加控件。参数可以是插件列表中的任何插件对象,如:ToolBar、OverView、Scale等 | ||
@@ -259,0 +281,0 @@ * @param control 控件对象 |
Sorry, the diff of this file is too big to display
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
162480
4092