152
GitHub - jser-club/rc-bmap: 当百度地图遇上React,会产生怎样的火花? ?欢迎您的...
source link: https://github.com/jser-club/rc-bmap
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
README.md
React BaiduMap
基于 React 的百度地图组件
文档
开始
安装
yarn add rc-bmap # 或者:npm install --save rc-bmap
使用
import React from 'react'; import { render } from 'react-dom'; import { Map } from 'rc-bmap'; render(<Map ak="WAeVpuoSBH4NswS30GNbCRrlsmdGB5Gv" />, document.getElementById('app') );
更多用法,见官网。
更多示例,见示例
协议
如何本地启动demo
- 进入
examples
目录,执行
yarn install # 安装相关依赖 npm run dev # 启动本地服务
如何启动本地文档
- 进入
docs
目录,执行
vuepress dev # 文档由vuepress驱动
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK