tobinbradley / mapbox-gl-geocoder

Geocoder control for mapbox-gl-js using Mecklenburg County's Geocoding API

Home Page:http://timemachine.mcmap.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mapbox GL Geocoder

This control is customized to use Mecklenburg County's API rather than Mapbox's, as well as fetch/promise polyfills.

Use the optional searchTypes option to specify the search types for Mecklenburg's API. Default is "address". Search options are address, park, pid, library, school, and business.

var geocoder = new MapboxGeocoder({
  searchTypes: ["address", "park"]
});

About

Geocoder control for mapbox-gl-js using Mecklenburg County's Geocoding API

http://timemachine.mcmap.org

License:ISC License


Languages

Language:JavaScript 82.0%Language:CSS 18.0%