1.0.1 • Published 5 years ago

react-amap-plugin-custom-geolocation v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

Geolocation Plugin for react-amap

Configurable props are

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

New features

  • autoLocation

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>