需要在html中引入依赖包导入/el-upload>parseKml(file){letresult=window.URL.createObjectURL(file)omnivore.kml(result).addTo(this.map)//这是我的地图主体},onBeforeUploadImage(file){if(file.name.endsWith('kml')){this.parseKml(file)返回}},
leaflet加载kml文件相关文章