基于 React 封装的高德地图组件,帮助你轻松的接入地图到 React 项目中。
npm i @uiw/[email protected]
https://github.com/uiwjs/react-amap/compare/v6.0.2...v6.0.3
Document [email protected]: https://raw.githack.com/uiwjs/react-amap/57094b9/index.html
npm i @uiw/[email protected]
https://github.com/uiwjs/react-amap/compare/v6.0.1...v6.0.2
Document [email protected]: https://raw.githack.com/uiwjs/react-amap/fe431e4/index.html
npm i @uiw/[email protected]
https://github.com/uiwjs/react-amap/compare/v6.0.0...v6.0.1
Document [email protected]: https://raw.githack.com/uiwjs/react-amap/fb690db/index.html
npm i @uiw/[email protected]
https://github.com/uiwjs/react-amap/compare/v5.0.21...v6.0.0
Document [email protected]: https://raw.githack.com/uiwjs/react-amap/3d5e8ad/index.html
在 v2.5.0+ -> v5 通过 props 传递 map
,container
和 AMap
对象,在 v6 版本中移除了,通过 Context 传递对象
export interface APILoaderProps extends APILoaderConfig {
/**
* 请使用 `key`
* @deprecated
*/
- akay?: string;
/**
* 请使用 `plugins`
* @deprecated
* @example `AMap.ToolBar,AMap.Driving`
*/
- plugin?: string;
}
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;
}
/**
* 要显示该 marker 的地图对象
* ~~v2.5.0+~~ 版本以上,不需要传递这个参数
* @deprecated
*/
- map?: Map;
npm i @uiw/[email protected]
https://github.com/uiwjs/react-amap/compare/v5.0.20...v5.0.21
Document [email protected]: https://raw.githack.com/uiwjs/react-amap/ad6bd16/index.html
npm i @uiw/[email protected]
https://github.com/uiwjs/react-amap/compare/v5.0.19...v5.0.20
Document [email protected]: https://raw.githack.com/uiwjs/react-amap/70983f2/index.html
npm i @uiw/[email protected]
https://github.com/uiwjs/react-amap/compare/v5.0.18...v5.0.19
Document [email protected]: https://raw.githack.com/uiwjs/react-amap/fcc1f5a/index.html
npm i @uiw/[email protected]
https://github.com/uiwjs/react-amap/compare/v5.0.17...v5.0.18
Document [email protected]: https://raw.githack.com/uiwjs/react-amap/1d642c3/index.html
npm i @uiw/[email protected]
https://github.com/uiwjs/react-amap/compare/v5.0.16...v5.0.17
Document [email protected]: https://raw.githack.com/uiwjs/react-amap/0b97262/index.html
npm i @uiw/[email protected]
https://github.com/uiwjs/react-amap/compare/v5.0.15...v5.0.16
Document [email protected]: https://raw.githack.com/uiwjs/react-amap/788613e/index.html