react-amap-plugin-geolocation

0.0.2 • Public • Published

Geolocation Plugin for react-amap

Configurable props are

  • enableHighAccuracy
  • timeout
  • maximumAge
  • buttonOffset
  • ...

Visit AMap doc for details about ALL prop;

import { Map } from 'react-amap';
import Geolocation from 'react-amap-plugin-geolocation';


const pluginProps = {
  enableHighAccuracy:true,
  timeout: 10000,
  showButton: true
}


// render
<Map>
  <Geolocation {...pluginProps} />
</Map>

Readme

Keywords

none

Package Sidebar

Install

npm i react-amap-plugin-geolocation

Weekly Downloads

295

Version

0.0.2

License

MIT

Last publish

Collaborators

  • zhengqingxin