文档模板:v0.4.2
react-native-baidu-map
本项目基于 react-native-baidu-map 开发。
该第三方库的仓库已迁移至 Gitcode,且支持直接从 npm 下载,新的包名为:@react-native-ohos/react-native-baidu-map,版本所属关系如下:
| 三方库名称 | 三方库版本(npm地址) | 发布信息 | 支持RN版本 | Autolink | 编译API版本 | 社区基线版本 | 源码地址 |
|---|---|---|---|---|---|---|---|
| @react-native-ohos/react-native-baidu-map | ~ 1.2.0(开发中) | Gitcode Releases | 0.82.* | 是 | API12+ | 1.0.37 | master |
| @react-native-ohos/react-native-baidu-map | ~ 1.1.0 | Gitcode Releases | 0.77.* | 否 | API12+ | 1.0.37 | br_rnoh0.77 |
| @react-native-ohos/react-native-baidu-map | ~ 1.0.38 | Gitcode Releases | 0.72.* | 是 | API12+ | 1.0.37 | br_rnoh0.72 |
| @react-native-oh-tpl/react-native-baidu-map | <= 1.0.37-0.0.5@deprecated | Github Releases(deprecated) | 0.72.* | 否 | API12+ | 1.0.37 | sig |
简介
react-native-baidu-map 是百度地图的 React Native 组件库,提供地图展示、定位、标注(Marker)、覆盖物、路线规划等地图能力。
本库在保留原库 API 的基础上适配了 HarmonyOS 平台,使用方法跨平台一致,效果对标 iOS 或 Android。
下载安装
进入到工程目录并输入以下命令:
npm
npm install @react-native-ohos/react-native-baidu-map
yarn
yarn add @react-native-ohos/react-native-baidu-map