Skip to content

v6.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 05 Dec 14:04
· 49 commits to master since this release

Buy me a coffee npm bundle size

npm i @uiw/react-amap@6.0.0

v5.0.21...v6.0.0

Document react-amap@v6.0.0:
https://raw.githack.com/uiwjs/react-amap/3d5e8ad/index.html

Map

v2.5.0+ -> v5 通过 props 传递 mapcontainerAMap 对象,在 v6 版本中移除了,通过 Context 传递对象

APILoader

export interface APILoaderProps extends APILoaderConfig {
  /**
   * 请使用 `key`
   * @deprecated
   */
-  akay?: string;
  /**
   * 请使用 `plugins`
   * @deprecated
   * @example `AMap.ToolBar,AMap.Driving`
   */
-  plugin?: string;
}

LabelMarker

export interface LabelMarkerProps extends OverlayProps, AMap.LabelMarkerEvents, AMap.LabelMarkerOptions {
  /**覆盖物是否可见 */
  visiable?: boolean;
  className?: string;
  children?: JSX.Element;
  /**
   * 将在下一个版本 `v6+` 版本移除
   * @deprecated use `onMouseDown`
   */
-  onMousedown?(event: AMap.MapsEvent): void;
  /**
   * 将在下一个版本 `v6+` 版本移除
   * @deprecated use `onMouseUp`
   */
-  onMouseup?(event: AMap.MapsEvent): void;
  /**
   * 将在下一个版本 `v6+` 版本移除
   * @deprecated use `onTouchStart`
   */
-  onTouchstart?(event: AMap.MapsEvent): void;
  /**
   * 将在下一个版本 `v6+` 版本移除
   * @deprecated use `onTouchMove`
   */
-  onTouchmove?(event: AMap.MapsEvent): void;
  /**
   * 将在下一个版本 `v6+` 版本移除
   * @deprecated use `onTouchEnd`
   */
-  onTouchend?(event: AMap.MapsEvent): void;
  /**
   * 将在下一个版本 `v6+` 版本移除
   * @deprecated use `onMouseMove`
   */
-  onMousemove?(event: AMap.MapsEvent): void;
  /**
   * 将在下一个版本 `v6+` 版本移除
   * @deprecated use `onMouseOver`
   */
-  onMouseover?(event: AMap.MapsEvent): void;
  /**
   * 将在下一个版本 `v6+` 版本移除
   * @deprecated use `onMouseOut`
   */
-  onMouseout?(event: AMap.MapsEvent): void;
}

MarkerOptions

/**
 * 要显示该 marker 的地图对象
 * ~~v2.5.0+~~ 版本以上,不需要传递这个参数
 * @deprecated 
 */
- map?: Map;
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy