在getMap()里加入
document.getElementsByClassName(
"leaflet-control-layers"
)[0].style.visibility = "hidden";
在getMap()里加入
document.getElementsByClassName(
"leaflet-control-layers"
)[0].style.visibility = "hidden";