From 65e3170ce0cf6d59e6d980576f9e43624375e229 Mon Sep 17 00:00:00 2001 From: renwj Date: Mon, 29 Aug 2022 18:10:32 +0800 Subject: [PATCH] =?UTF-8?q?[V2X]=E9=81=93=E8=B7=AF=E6=96=BD=E5=B7=A5?= =?UTF-8?q?=EF=BC=88AI=E4=BA=91=EF=BC=89=E4=BA=8B=E4=BB=B6=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E9=80=BB=E8=BE=91=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../v2x/events/scenario/scene/road/V2XRoadEventMarker.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/function-impl/mogo-core-function-v2x/src/main/java/com/mogo/eagle/core/function/v2x/events/scenario/scene/road/V2XRoadEventMarker.java b/core/function-impl/mogo-core-function-v2x/src/main/java/com/mogo/eagle/core/function/v2x/events/scenario/scene/road/V2XRoadEventMarker.java index d8950e8613..137f0cbf00 100644 --- a/core/function-impl/mogo-core-function-v2x/src/main/java/com/mogo/eagle/core/function/v2x/events/scenario/scene/road/V2XRoadEventMarker.java +++ b/core/function-impl/mogo-core-function-v2x/src/main/java/com/mogo/eagle/core/function/v2x/events/scenario/scene/road/V2XRoadEventMarker.java @@ -106,11 +106,15 @@ public class V2XRoadEventMarker implements IV2XMarker { Pair p = polygons.get(i); points.add(new MogoLatLng(p.second, p.first)); } + if (points.size() > 2) { + points.add(points.get(0)); + } options.points(points); options.useGradient(true); options.useFacade(true); - options.setGps(true); + options.setGps(false); options.width(5f); + options.zIndex(75000f); options.maxIndex(2000000f); polyline = overlayManager.addPolyline(options); polyline.setVisible(true);