Skip to content

j1mie/react-select-geocoder

 
 

Repository files navigation

react-select-geocoder

NPM version Build status

Geocoder that uses react-select

Usage

Check the propTypes for the options. For boundary see isomorphic-mapzen-search and for focusPoint use any lonlat compatible value.

import Geocoder from 'react-select-geocoder'

render(
  <Geocoder
    apiKey={process.env.MAPZEN_KEY}
    boundary={boundary}
    focusPoint={lonlat}
    onChange={value => console.log(value)}
    />
  , div
)

About

Geocoder that uses react-select

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 95.5%
  • HTML 4.5%