From cfcda861640644e3597eff70775bfaf7186a55ad Mon Sep 17 00:00:00 2001
From: Iwan Lebron <105045937+iwanlebron@users.noreply.github.com>
Date: 星期四, 01 八月 2024 10:15:37 +0800
Subject: [PATCH] Merge branch '648540858:master' into master
---
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
old mode 100644
new mode 100755
index 2d8600d..fb091ad
--- 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