From 25e45267c1c88fcac8297a42926da75c922ff4fd Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Mon, 15 Aug 2022 10:28:46 +0800 Subject: [PATCH] 1 --- src/components/AiTMap.vue | 30 +- src/project/saas/AppBuilding/AppBuilding.vue | 46 +- .../saas/AppBuilding/components/gridMap.vue | 455 ++++++++++++++++++ .../saas/AppBuilding/components/searchMap.vue | 7 +- 4 files changed, 522 insertions(+), 16 deletions(-) create mode 100644 src/project/saas/AppBuilding/components/gridMap.vue diff --git a/src/components/AiTMap.vue b/src/components/AiTMap.vue index 51400eec..4efc4129 100644 --- a/src/components/AiTMap.vue +++ b/src/components/AiTMap.vue @@ -80,19 +80,29 @@ export default { lng: res.longitude } if (latLng.lat) { - this.mapLib = TMap - this.tmap = new TMap.Map(this.$refs.tmap, { - zoom: 11, - center: new TMap.LatLng(latLng.lat, latLng.lng), - ...this.ops - }) - this.$emit('update:lib', TMap) - this.$emit('update:map', this.tmap) - this.$emit('loaded') - this.areaId && this.getMapArea() + // this.mapLib = TMap + // this.tmap = new TMap.Map(this.$refs.tmap, { + // zoom: 11, + // center: new TMap.LatLng(latLng.lat, latLng.lng), + // ...this.ops + // }) + // this.$emit('update:lib', TMap) + // this.$emit('update:map', this.tmap) + // this.$emit('loaded') + // this.areaId && this.getMapArea() } } }) + this.mapLib = TMap + this.tmap = new TMap.Map(this.$refs.tmap, { + zoom: 11, + // center: new TMap.LatLng(latLng.lat, latLng.lng), + ...this.ops + }) + this.$emit('update:lib', TMap) + this.$emit('update:map', this.tmap) + this.$emit('loaded') + this.areaId && this.getMapArea() } }, fitBounds(latLngList, count = 0) { diff --git a/src/project/saas/AppBuilding/AppBuilding.vue b/src/project/saas/AppBuilding/AppBuilding.vue index 7e4a3768..7a726784 100644 --- a/src/project/saas/AppBuilding/AppBuilding.vue +++ b/src/project/saas/AppBuilding/AppBuilding.vue @@ -1,6 +1,13 @@