I am facing issue while loading the KML file on the mapbox map. For loading KML, I am using leaflet-omnivore https://github.com/mapbox/leaflet-omnivore library.
For reference purpose I am using this example https://www.mapbox.com/mapbox.js/example/v1.0.0/omnivore-kml/
It is working fine for the KML who has the single Placemark tag. But is not working for the multiple Placemark tags.
Can any please let me know how can I load the KML with multiple placemarks?
Or is there any other issue.
Here is my sample code
var runLayer = omnivore.kml('kmlfiles/sample.kml', null, customLayer)
.on('ready', function() {
runLayer.eachLayer(function(layer) {
layer.bindPopup(layer.feature.properties.description);
});
})
.on('error', function(e) {
console.log("Error loading KML: ", e);
})
.addTo(map);