📜  Leaflet.KMLGroundOverlay kmz - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:31.190000             🧑  作者: Mango

代码示例1
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);