152

GitHub - jser-club/rc-bmap: 当百度地图遇上React,会产生怎样的火花? ?欢迎您的...

 5 years ago
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

68747470733a2f2f626d61702e6a7365722d636c75622e636f6d2f686f6d652e706e67

基于 React 的百度地图组件

npm license

文档

https://bmap.jser-club.com

开始

安装

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')
);

更多用法,见官网

更多示例,见示例

协议

MIT 许可证

如何本地启动demo

  • 进入examples目录,执行
yarn install # 安装相关依赖
npm run dev # 启动本地服务

如何启动本地文档

  • 进入docs目录,执行
vuepress dev # 文档由vuepress驱动

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK