react-amap-plugin-geolocation

Geolocation plugin for react-amap

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
react-amap-plugin-geolocation
0.0.26 years ago6 years agoMinified + gzip package size for react-amap-plugin-geolocation in KB

Readme

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>