diff --git a/components/AiDvRender.vue b/components/AiDvRender.vue index 567b48c2..27a62690 100644 --- a/components/AiDvRender.vue +++ b/components/AiDvRender.vue @@ -59,7 +59,8 @@ export default { // mods, chartList, map: null, - lib: null + lib: null, + timer: null } }, computed: { @@ -122,13 +123,14 @@ export default { }, renderMap(count = 0) { let {lib: AMap, map} = this + this.timer && clearInterval(this.timer) if (AMap) { let infoWin = new AMap.InfoWindow({content: ""}) map.clearMap() let markers = this.values.filter(e => e.lng).map(e => { return new AMap.Marker({ map, - content: e.content || `
+ content: e.content || `
${e.label}
`, @@ -147,7 +149,10 @@ export default { }) }) map.setFitView(markers) - this.data.is3d && map.setPitch(60) + this.data.is3d && map.setPitch(65) + if (this.data.is3dAround == 1) { + this.timer = setInterval(() => map?.setRotation(360, false, 16000)) + } } else if (count < 10) { console.log("正在加载...%s", count) setTimeout(() => this.renderMap(++count), 1000) @@ -220,7 +225,7 @@ export default { display: none; } - &:hover > span { + &:hover > span, &.showLabel > span { position: absolute; left: 50%; bottom: 0; diff --git a/packages/bigscreen/designer/components/form/componentConfig.vue b/packages/bigscreen/designer/components/form/componentConfig.vue index 2898fa34..0995917c 100644 --- a/packages/bigscreen/designer/components/form/componentConfig.vue +++ b/packages/bigscreen/designer/components/form/componentConfig.vue @@ -101,6 +101,12 @@
+
+ +
+ +
+
@@ -119,6 +125,12 @@
+
+ +
+ +
+
diff --git a/packages/bigscreen/designer/config.js b/packages/bigscreen/designer/config.js index 907f6003..357afea8 100644 --- a/packages/bigscreen/designer/config.js +++ b/packages/bigscreen/designer/config.js @@ -533,13 +533,14 @@ const components = [ dynamicData: [], staticData: [ { - content: '中卫慧通', + label: '中卫慧通', lng: 117.1339399, lat: 36.7190487, } ], api: '', - thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/map.png' + thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/map.png', + is3dAround: '0' } ] },