0.7.0 • Published 5 years ago
@fourcels/react-map v0.7.0
React Map
react-map 是一个基于高德地图的 React 地图组件
安装
yarn add @fourcels/react-map
用法
// App.jsx
import React from 'react';
import { BaseMap } from '@fourcels/react-map'
export default function App(props) {
return <BaseMap zoom={16}></BaseMap>
}
// index.js
import React from 'react';
import ReactDOM from 'react-dom';
import {helper} from '@fourcels/react-map'
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import './index.css'
helper.setOptions({
key: '高德地图 API KEY'
})
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
关于 Key
你可以在高德开放平台申请你自己的 API Key
License
0.7.0
5 years ago
0.6.7
5 years ago
0.6.6
5 years ago
0.6.5
5 years ago
0.6.4
5 years ago
0.6.3
5 years ago
0.6.0
5 years ago
0.5.2
5 years ago
0.5.1
5 years ago
0.5.0
5 years ago
0.4.4
5 years ago
0.4.2
5 years ago
0.4.0
5 years ago
0.3.0
5 years ago
0.2.2
5 years ago
0.2.1
5 years ago
0.2.0
5 years ago
0.1.3
5 years ago
0.1.2
5 years ago