From c27e345edc6a92f485c1ef722ccaaa8ec6cbf5bf Mon Sep 17 00:00:00 2001
From: che_shuai <che_shuai@massclouds>
Date: 星期四, 13 七月 2023 10:22:42 +0800
Subject: [PATCH] 修复多级级联平台平台时,上级平台无法获取设备录像列表问题。问题详见 https://github.com/648540858/wvp-GB28181-pro/issues/914
---
web_src/src/components/common/MapComponent.vue | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/web_src/src/components/common/MapComponent.vue b/web_src/src/components/common/MapComponent.vue
index 2d8600d..fb091ad 100644
--- a/web_src/src/components/common/MapComponent.vue
+++ b/web_src/src/components/common/MapComponent.vue
@@ -11,6 +11,7 @@
import Tile from 'ol/layer/Tile';
import VectorLayer from 'ol/layer/Vector';
import Style from 'ol/style/Style';
+import Stroke from 'ol/style/Stroke';
import Icon from 'ol/style/Icon';
import View from 'ol/View';
import Feature from 'ol/Feature';
@@ -230,7 +231,12 @@
}
let line = new LineString(points)
let lineFeature = new Feature(line);
-
+ lineFeature.setStyle(new Style({
+ stroke: new Stroke({
+ width: 4 ,
+ color: "#0c6d6a",
+ })
+ }))
let source = new VectorSource();
source.addFeature(lineFeature);
let vectorLayer = new VectorLayer({
--
Gitblit v1.8.0