Uiwjs React Amap Versions Save

基于 React 封装的高德地图组件,帮助你轻松的接入地图到 React 项目中。

v6.0.3

1 month ago

Buy me a coffee npm bundle size

npm i @uiw/[email protected]

https://github.com/uiwjs/react-amap/compare/v6.0.2...v6.0.3

  • 🐞 fix: Lnglat.distance in base.d.ts (#351) 3e1fb25 @HoshinoSuzumi
  • 🐞 fix: Map 子组件函数签名 (#350) b16c7bc @HoshinoSuzumi
  • 💢 ci: update workflow config. 8707af4 @jaywcjlove

Document [email protected]: https://raw.githack.com/uiwjs/react-amap/57094b9/index.html

v6.0.2

3 months ago

Buy me a coffee npm bundle size

npm i @uiw/[email protected]

https://github.com/uiwjs/react-amap/compare/v6.0.1...v6.0.2

  • 🐞 fix(Rectangle): ignore error when map unmounted. (#326) e0af081 @jaywcjlove

Document [email protected]: https://raw.githack.com/uiwjs/react-amap/fe431e4/index.html

v6.0.1

5 months ago

Buy me a coffee npm bundle size

npm i @uiw/[email protected]

https://github.com/uiwjs/react-amap/compare/v6.0.0...v6.0.1

  • 📈 perf: useLayoutEffect 替换 useEffect,改变销毁顺序,加一些 ts定义 (#347) d174fcc @starInEcust

Document [email protected]: https://raw.githack.com/uiwjs/react-amap/fb690db/index.html

v6.0.0

5 months ago

Buy me a coffee npm bundle size

npm i @uiw/[email protected]

https://github.com/uiwjs/react-amap/compare/v5.0.21...v6.0.0

  • 🐞 fix: 删除默认icon,添加删除逻辑,修复初始化时销毁无法删除图层,添加ts定义,修改基本用法例子 (#344) 652ecbc @starInEcust
  • 🐞 fix(LabelMarker): fix icon props. (#344) d285430 @jaywcjlove
  • 🐞 fix: remove deprecated props. (#346) 893f3e6 @jaywcjlove

Document [email protected]: 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;

v5.0.21

5 months ago

Buy me a coffee npm bundle size

npm i @uiw/[email protected]

https://github.com/uiwjs/react-amap/compare/v5.0.20...v5.0.21

  • 🌍 website: update menu 3c3c148 @jaywcjlove
  • 🐞 fix(polygon): 修复polygon初始化时被react销毁,无法移除高德地图图层的问题 (#343) 3249708 @starInEcust

Document [email protected]: https://raw.githack.com/uiwjs/react-amap/ad6bd16/index.html

v5.0.20

5 months ago

Buy me a coffee npm bundle size

npm i @uiw/[email protected]

https://github.com/uiwjs/react-amap/compare/v5.0.19...v5.0.20

  • 💄 chore: add sponsor badge. a4c71ca @jaywcjlove
  • 🐞 fix(deps): update dependency @uiw/react-markdown-preview-example to v2 (#339) ca5c571 @renovate-bot
  • 💄 chore(deps): update dependency lerna to v8 (#338) e4901be @renovate-bot
  • 🌍 website: modify kkt config. ac6c597 @jaywcjlove

Document [email protected]: https://raw.githack.com/uiwjs/react-amap/70983f2/index.html

v5.0.19

5 months ago

npm bundle size

npm i @uiw/[email protected]

https://github.com/uiwjs/react-amap/compare/v5.0.18...v5.0.19

  • 🐞 fix(LabelMarker): fix even props issue. (#337) f887b86 @jaywcjlove
  • 🌍 website: update dependency @uiw/react-loader to ~4.22.0 aa66c83 @jaywcjlove

Document [email protected]: https://raw.githack.com/uiwjs/react-amap/fcc1f5a/index.html

v5.0.18

6 months ago

npm bundle size

npm i @uiw/[email protected]

https://github.com/uiwjs/react-amap/compare/v5.0.17...v5.0.18

  • 🐞 fix(ContextMenu): fix export ContextMenu issue. (#336) 0878d9c @jaywcjlove

Document [email protected]: https://raw.githack.com/uiwjs/react-amap/1d642c3/index.html

v5.0.17

6 months ago

v5.0.16

7 months ago

npm bundle size

npm i @uiw/[email protected]

https://github.com/uiwjs/react-amap/compare/v5.0.15...v5.0.16

  • 🐞 fix(ContextMenu): fix context menu type error (#334) 53543b1 @berber1016

Document [email protected]: https://raw.githack.com/uiwjs/react-amap/788613e/index.html