react-simple-bigemap

0.1.0 • Public • Published

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

Bigemap document

Bigemap document

Readme

Keywords

Package Sidebar

Install

npm i react-simple-bigemap

Weekly Downloads

2

Version

0.1.0

License

MIT

Unpacked Size

194 kB

Total Files

8

Last publish

Collaborators

  • aute