mapbox/mapbox-gl-directions

Port localGeocoder option from mapbox-gl-geocoder

Ouverte

#166 ouverte le 6 févr. 2018

 (5 commentaires) (0 réaction) (0 personne assignée)JavaScript (130 forks)github user discovery
enhancementhelp wanted

Métriques du dépôt

Stars
 (253 étoiles)
Métriques de merge PR
 (Merge moyen 22h 39m) (1 PR mergée en 30 j)

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

Guide contributeur