src/components/LayerController/logic/SolidWaste.js
@@ -14,13 +14,12 @@ * @param L leaflet对象 */ this.init = async (layer, L) => { // const SolidWasteIcon = this.SolidWasteIcon() this.animalService = new AnimalService({ L: L, layer: layer }) const res = await mapApi.getSolidWaste() // console.log(res) console.log(res) const data = res.Result.DataInfo || {} for (let i = 0; i < data.length; i++) { // 经纬度 位置 @@ -38,7 +37,6 @@ iconAnchor: [25, 25] }) }) layer.addLayer(marker) } }