From 83d2044b6b47d26ff77ec25de8d6787ceaf83e3a Mon Sep 17 00:00:00 2001 From: wangqi <magical1908@outlook.com> Date: 星期三, 31 三月 2021 17:00:39 +0800 Subject: [PATCH] 1 --- src/components/LayerController/logic/SolidWaste.js | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/src/components/LayerController/logic/SolidWaste.js b/src/components/LayerController/logic/SolidWaste.js index dd48fcc..e12ae43 100644 --- a/src/components/LayerController/logic/SolidWaste.js +++ b/src/components/LayerController/logic/SolidWaste.js @@ -52,6 +52,8 @@ this.clickListener = async (e) => { this.animalService.pulseEffect(e.latlng) + // this.setPanTo(e.latlng, 200) + console.log(e) const dataValue = { StoragePlaceId: e.layer.options.test.StoragePlaceId } @@ -59,11 +61,20 @@ // console.log(result) const PublicBounced = window.Vue.extend(publicBounced) const instance = new PublicBounced() - instance.setData(result, 'gufei') instance.$mount() document.body.appendChild(instance.$el) + instance.setData(result, 'gufei') } + // panTo + // this.setPanTo = (pos, value) => { + // var position = pos + // position = this.map.latLngToLayerPoint(position) + // position.y += value + // position = this.map.layerPointToLatLng(position) + // this.map.flyTo(position) + // } + // 涓嶅悓绫诲瀷鍥剧墖灏佽 this.differentTypes = (judgeValue) => { var effectOfChange -- Gitblit v1.8.0