0.0.2 • Published 7 years ago

react-amap-plugin-geolocation v0.0.2

Weekly downloads
88
License
MIT
Repository
github
Last release
7 years ago

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>