mapbox/mapbox-gl-directions

Port localGeocoder option from mapbox-gl-geocoder

Open

#166 opened on Feb 6, 2018

View on GitHub
 (5 comments) (0 reactions) (0 assignees)JavaScript (130 forks)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (253 stars)
PR merge metrics
 (PR metrics pending)

Description

It looks like the directions control is not recognizing the localGeocoder option from the mapbox-gl-geocoder. The map renders fine, but it doesn't respond to any local data passed to it.

map.addControl(new MapboxDirections({ accessToken: mapboxgl.accessToken, geocoder: {localGeocoder: coordinatesGeocoder} }), 'top-left');

Contributor guide