mapbox/mapbox-gl-directions

Port localGeocoder option from mapbox-gl-geocoder

Offen

#166 geöffnet am 06.02.2018

 (5 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (130 Forks)github user discovery
enhancementhelp wanted

Repository-Metriken

Stars
 (253 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 22h 39m) (1 gemergte PR in 30 T)

Beschreibung

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