Mapbox GL support
rupl opened this issue · 2 comments
Hi, I have happily used Mapbox and Omnivore together on my personal site for a couple years. They make a fantastic pair and I was hoping to continue using Omnivore while switching to Mapbox GL.
Since Omnivore is advertised as a glue library, I assumed its GeoJSON output can be consumed by MapboxGL as well, but I can't quite figure out the incantation to get it working.
I see some hardcoded references to L.geoJson()
in Omnivore when no additional args are given to the parsing function. Since layer
is something that can be passed in, I thought maybe I could override but nothing I tried seems to be working. Code-wise, I'm basically using the Omnivore example found here: https://www.mapbox.com/mapbox.js/example/v1.0.0/omnivore-kml-tooltip/
Ditto. Let me know if you figure anything out.
+1 to that request if it's not done yet