@mapbox/react-geocoder

    2.5.0 • Public • Published

    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
      />
    

    Install

    npm i @mapbox/react-geocoder

    DownloadsWeekly Downloads

    247

    Version

    2.5.0

    License

    ISC

    Last publish

    Collaborators

    • mapbox-machine-user
    • mapbox-npm-ci
    • mapbox-npm-advanced-actions
    • mapbox-npm-09
    • mapbox-npm-08
    • mapbox-npm-07
    • mapbox-npm-06
    • mapbox-npm-05
    • mapbox-npm-04
    • mapbox-npm-03
    • mapbox-npm-02
    • mapbox-npm-01
    • mapbox-npm
    • mapbox-admin