Browse Source

修改大屏地图中心位置

datou 5 tháng trước cách đây
mục cha
commit
d3dc4d5340

+ 3 - 3
approval-Vue3/src/views/bigScreen/exhibit.vue

@@ -332,9 +332,9 @@
 		guangDiv.value = proxy.$refs.guanDiv.offsetHeight;
 		carCont.value = proxy.$refs.carDiv.offsetHeight - proxy.$refs.carTit.offsetHeight;
 		clearInterval(timeId);
-		timeId = setInterval(()=>{
-			getList();
-	    },30*1000)
+		// timeId = setInterval(()=>{
+		// 	getList();
+	 //    },30*1000)
 	})
 	onBeforeUnmount(() => {
 		clearInterval(timeId);

+ 4 - 2
approval-Vue3/src/views/bigScreen/ship.vue

@@ -57,7 +57,7 @@
 	let firstAxo = false;
 	let vectorSources = ref(null);
 	const mapView = reactive({
-		center: fromLonLat([118.26718, 22.45402]),
+		center: fromLonLat([113.3964533,22.608285]),
 		zoom: 12,
 		minZoom: 2,
 		maxZoom: 18
@@ -204,7 +204,9 @@
 		newFeature.setStyle(createLabel(newFeature));
 		vectorSources.value.addFeature(newFeature);
 		map.value.getView().animate({
-			center: fromLonLat(nowShip.value.ol),
+			// center: fromLonLat(nowShip.value.ol),
+			// offset: [5000, 5000],
+			center: fromLonLat([113.6934,22.599]),
 			duration: 1000
 		})
 	};