kmleaf
v0.1.2
Published
KML/KMZ translator for Leaflet
Downloads
414
Readme
KMLeaf - KML/KMZ translator for Leaflet
This is a wrapper arround Mapbox's toGeoJSON,
improving styling and description support,
appling the result directly to a Leaflet's layer object.
See a working example and test your own KML or KMZ files.
Features
- [x] Read asset files from KMZ package.
- [x] Styled icon for Placemark.
- [x] Display properties.description (or ExtendedData when empty) in a popup.
- [x] Fill and stroke style for path like features.
- [ ] GroundOverlay intentionally unsuported by toGeoJSON
Why is this not a Leaflet plugin?
We don't beleave we need to be in the guts of a Leaflet map instance, so a translator is better than a inherited specialized class. If you disagree, please file a issue with an explanation. We would like to know.
