@mapbox/mapbox-gl-geocoder
A geocoder control for Mapbox GL JS
Last updated 5 months ago by mapbox-npm-04 .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @mapbox/mapbox-gl-geocoder 
SYNC missed versions from official npm registry.

Mapbox GL Geocoder Build Status

A geocoder control for mapbox-gl-js using the Mapbox Geocoding API.

Usage

https://www.mapbox.com/mapbox-gl-js/example/mapbox-gl-geocoder/

If you are supporting older browsers, you will need a Promise polyfill. es6-promise is a good one, if you're uncertain.

Usage with a module bundler

This module exports a single class called MapboxGeocoder as its default export, so in browserify or webpack, you can require it like:

var MapboxGeocoder = require('@mapbox/mapbox-gl-geocoder');

Using without a Map

It is possible to use the plugin without it being placed as a control on a mapbox-gl map. Keep in mind that the Mapbox Terms of Service require that POI search results be shown on a Mapbox map. If you don't need POIs, you can exclude them from your search results with the options.types parameter when constructing a new Geocoder.

Deeper dive

API Documentation

See API.md for complete reference.

Examples

Contributing

See CONTRIBUTING.md.

Current Tags

  • 4.0.0-beta.0                                ...           beta (a year ago)
  • 4.5.1                                ...           latest (5 months ago)

26 Versions

  • 4.5.1                                ...           5 months ago
  • 4.5.0                                ...           7 months ago
  • 4.4.2                                ...           8 months ago
  • 4.4.1                                ...           a year ago
  • 4.4.0                                ...           a year ago
  • 4.3.0                                ...           a year ago
  • 4.2.0                                ...           a year ago
  • 4.1.2                                ...           a year ago
  • 4.1.1                                ...           a year ago
  • 4.1.0                                ...           a year ago
  • 4.0.0                                ...           a year ago
  • 4.0.0-beta.0                                ...           a year ago
  • 3.1.6                                ...           a year ago
  • 3.1.4                                ...           a year ago
  • 3.1.3                                ...           a year ago
  • 3.1.2                                ...           a year ago
  • 3.1.1                                ...           a year ago
  • 3.1.0                                ...           a year ago
  • 3.0.1                                ...           a year ago
  • 3.0.0                                ...           a year ago
  • 2.3.0                                ...           2 years ago
  • 2.2.0                                ...           2 years ago
  • 2.1.2                                ...           3 years ago
  • 2.1.1                                ...           3 years ago
  • 2.1.0                                ...           3 years ago
  • 2.0.1                                ...           3 years ago

Copyright 2014 - 2016 © taobao.org |