Skip to content

yunsii/react-amap-plugin-custom-geolocation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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-custom-geolocation';


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


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

About

📦 Geolocation Plugin for react-amap.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%