henrypoydar / mapbox-gl-geocoder

Geocoder control for mapbox-gl-js using Mapbox Geocoding API

Home Page:https://mapbox.com/mapbox-gl-js/example/mapbox-gl-geocoder/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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');

Deeper dive

API Documentation

See API.md for complete reference.

Examples

Contributing

See CONTRIBUTING.md.

About

Geocoder control for mapbox-gl-js using Mapbox Geocoding API

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

License:ISC License


Languages

Language:JavaScript 95.9%Language:CSS 4.1%