var track = new L.KML('Coventry.kml', {async: true}) .on('loaded', function (e) { map.fitBounds(e.target.getBounds()); }) .addTo(map); L.control.layers({}, {'Track':track}).addTo(map);