From 55e6c16ceea8b2f2f6d7eb797e05928fb3f92f3b Mon Sep 17 00:00:00 2001 From: chenzeping <ChenZeping02609@163.com> Date: 星期三, 31 三月 2021 18:57:04 +0800 Subject: [PATCH] 工具栏问题修改 --- src/components/LayerController/logic/SolidWaste.js | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/LayerController/logic/SolidWaste.js b/src/components/LayerController/logic/SolidWaste.js index e12ae43..efb3b43 100644 --- a/src/components/LayerController/logic/SolidWaste.js +++ b/src/components/LayerController/logic/SolidWaste.js @@ -63,17 +63,17 @@ const instance = new PublicBounced() instance.$mount() document.body.appendChild(instance.$el) - instance.setData(result, 'gufei') + instance.setData(result.Result.DataInfo, '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.setPanTo = (pos, value) => { + var position = pos + position = this.layer.latLngToLayerPoint(position) + position.y += value + position = this.layer.layerPointToLatLng(position) + this.layer.flyTo(position) + } // 涓嶅悓绫诲瀷鍥剧墖灏佽 this.differentTypes = (judgeValue) => { -- Gitblit v1.8.0