using Mapbox geolocation search and directions - should i use mapbox-gl-leaflet?
orionseye opened this issue · 1 comments
orionseye commented
Sorry to fill up your issues space,
correct me if i'm wrong, but using leaflet along with Mapbox geolocation search and directions api/plugins .. is there need to use mapbox-gl-leaflet?
Or can i have a mix of both, as you state "If you only need the mapbox-gl-js features (adding a map with a mapbox-style, adding a GeoJSON, etc.), you are probably better off using it directly."
jgravois commented
this library allows you to overlay vector tiles on a leaflet map and 'mix both' as you say.
that said, geolocation, search and directions are all things you can do in leaflet all by itself (or mapbox-gl-js for that matter) so you should probably just pick whichever one you prefer.