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: 8 days ago
JSON representation

当百度地图遇上React,会产生怎样的火花🔥 🎉欢迎您的加入🎉

Lists

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`重新点击按钮运行,即可看到最新修改后的效果