From 7d3d36128ecd599c7294191fe7ddeddd9de7cec4 Mon Sep 17 00:00:00 2001
From: chenzeping <ChenZeping02609@163.com>
Date: 星期三, 31 三月 2021 21:15:24 +0800
Subject: [PATCH] Merge branch 'develop' of http://xearth.cn:6600/r/wuyushui/SewerAndRainNetwork into develop
---
src/components/LayerController/logic/SolidWaste.js | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/src/components/LayerController/logic/SolidWaste.js b/src/components/LayerController/logic/SolidWaste.js
index fc55978..efb3b43 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,7 +61,18 @@
// 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.Result.DataInfo, 'gufei')
+ }
+
+ // panTo
+ this.setPanTo = (pos, value) => {
+ var position = pos
+ position = this.layer.latLngToLayerPoint(position)
+ position.y += value
+ position = this.layer.layerPointToLatLng(position)
+ this.layer.flyTo(position)
}
// 涓嶅悓绫诲瀷鍥剧墖灏佽
--
Gitblit v1.8.0