src/components/LayerController/logic/WasteSolid.js
@@ -65,7 +65,7 @@ title: title // 标题 }) /* flyTo()弹出框平移事件 */ this.setPanTo(e.latlng, 300) this.animalService.setPanTo(e.latlng, 300) } // 不同类型图片封装 @@ -77,14 +77,5 @@ effectOfChange = setting } return effectOfChange } // flayTo() 弹框的可滑动事件 this.setPanTo = (pos, value) => { var position = pos position = window.map.latLngToLayerPoint(position) position.y += value position = window.map.layerPointToLatLng(position) window.map.flyTo(position) } }