react-simple-bigemap
v0.1.0
Published
react simple package bigemap
Downloads
11
Readme
#BigeMap react 的简单封装
安装
npm install react-simple-bigemap
使用
import React from 'react';
import ReactDOM from 'react-dom';
import Map from 'react-simple-bigemap';
ReactDOM.render(
<Map
serverURL={YOUR_SERVER_URL}
APIversion={VERSION}
mapId={MAP_ID}
mapOptions={MAP_OPTIONS}
onInstanceCreated={(MAP_INSTANCES,BM)=>{
// MAP_INSTANCES:地图实例
// BM:Bigemap 对象
console.log(MAP_INSTANCES,BM);
}}
/>,
document.querySelector('#app')
)