Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/JserWang/rc-bmap
当百度地图遇上React,会产生怎样的火花🔥 🎉欢迎您的加入🎉
https://github.com/JserWang/rc-bmap
baidumap bmap react
Last synced: 1 day ago
JSON representation
当百度地图遇上React,会产生怎样的火花🔥 🎉欢迎您的加入🎉
- Host: GitHub
- URL: https://github.com/JserWang/rc-bmap
- Owner: JserWang
- License: mit
- Created: 2018-07-27T02:43:49.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-11-17T05:50:17.000Z (almost 2 years ago)
- Last Synced: 2024-10-28T05:37:35.525Z (12 days ago)
- Topics: baidumap, bmap, react
- Language: JavaScript
- Homepage: http://jser.wang/bmap/
- Size: 35.8 MB
- Stars: 847
- Watchers: 10
- Forks: 37
- Open Issues: 45
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-github-star - rc-bmap
README
# React BaiduMap
基于 React 的百度地图组件
[![npm](https://img.shields.io/npm/v/rc-bmap.svg)]()
[![license](https://img.shields.io/github/license/jserwang/rc-bmap.svg)]()## 文档
1.x文档地址:
[http://jser.wang/bmap/](http://jser.wang/bmap/)
0.2.4文档地址:
[https://bmap.jser-club.com](https://bmap.jser-club.com)
## 安装
```
npm install rc-bmap
```当前通过npm 或 yarn 直接安装为最新版,若想指定安装0.2.4版本时可通过:
```
npm install [email protected]
```## 协议
[MIT 许可证](https://opensource.org/licenses/MIT)
## 本地开发
与`demo`结合的最佳实践:
1. 将`demo`工程`clone`至本地。
``` bash
git clone https://github.com/jser-club/rc-bmap-demo.git
```
2. 安装`demo`工程所需依赖。
``` bash
cd 你刚clone的工程目录
yarn install
```
3. 进入`rc-bmap`工程的目录,执行
``` bash
yarn link
```
4. 进入`rc-bmap-dmeo`工程目录执行
``` bash
yarn link rc-bmap
```
5. 修改完`rc-bmap`的源码后,在`rc-bmap`工程执行
``` bash
yarn run build
```
如果在windows系统下
```bash
yarn run build_win
```
6. 在`demo`重新点击按钮运行,即可看到最新修改后的效果