mapbox / mapbox-gl-leaflet

binding from Mapbox GL JS to the Leaflet API
ISC License
522 stars 155 forks source link

using Mapbox geolocation search and directions - should i use mapbox-gl-leaflet? #116

Closed orionseye closed 4 years ago

orionseye commented 4 years ago

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 4 years ago

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.