Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Support kml, kmz layer #3076

Closed
hoanvuso opened this issue Nov 19, 2015 · 3 comments
Closed

Support kml, kmz layer #3076

hoanvuso opened this issue Nov 19, 2015 · 3 comments

Comments

@hoanvuso
Copy link

Currently the plugin does not support kmz/kml layer, can we add this feature?

https://www.mapbox.com/mapbox.js/example/v1.0.0/omnivore-kml/

@friedbunny
Copy link
Contributor

We plan to support GeoJSON sources (#2161) but I doubt there will ever be direct support for KML.

It's possible to parse GeoJSON files on-the-fly right now and a similar approach would work just fine for KML.

@friedbunny
Copy link
Contributor

Or, the ideal approach would be to import your KML data using the new Mapbox Studio, which would create and host vector tiles that you could then use efficiently/worry-free in a GL style.

@percula
Copy link

percula commented Apr 24, 2019

For anyone else wondering how to do this, I am using the OSMBonusPack library to import KML and export to GeoJson. It works really well. Just like Mapbox's toGeoJson repo, you will need to manually add styling but the OSMBonusPack does a wonderful job parsing all the styling attributes for you so it's rather painless.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants