Skip to content
A geocoder component using Mapbox.
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
.editorconfig First Oct 29, 2014
.eslintrc Update deps, add eslint Apr 28, 2015
.jshintrc Add jshint, add keys to fix React warning. Dec 8, 2014
LICENSE.txt Adding isc license, as intended by package.json Jan 26, 2017
README.md Update README.md Dec 2, 2016
index.js update bundle, add types to propTypes Nov 4, 2016
package.json Move package to @mapbox namespace. Dec 2, 2016
search.js add types param Oct 28, 2016

README.md

react-geocoder

npm install @mapbox/react-geocoder

A geocoder component using Mapbox.

api

An accessToken is assumed to be a valid Mapbox accessToken.

<Geocoder
  accessToken=required string
  onSelect=required function
  onSuggest=optional function
  source=optional string, default 'mapbox.places'
  endpoint=optional string, default 'http://api.tiles.mapbox.com'
  inputClass=optional string, default ''
  inputPlaceholder=optional string, default 'Search'
  resultClass=optional string, default ''
  resultsClass=optional string, default ''
  showLoader=optional string, default ''
  inputPosition=optional string, default 'top', can be 'bottom'
  resultFocusClass=optional string, default 'strong'
  proximity=optional string, default '',
  bbox=optional string, default '',
  types=optional string, default '',
  focusOnMount=optional bool, default true
  />
You can’t perform that action at this time.