react-amap-plugin-custom-geolocation

1.0.1 • Public • Published

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>

Readme

Keywords

none

Package Sidebar

Install

npm i react-amap-plugin-custom-geolocation

Weekly Downloads

5

Version

1.0.1

License

MIT

Unpacked Size

4.71 kB

Total Files

4

Last publish

Collaborators

  • theprimone