From bbcfc07a4d0e2ec1fa463aee5e27589f5abb3a01 Mon Sep 17 00:00:00 2001 From: zhongchao Date: Mon, 28 Jun 2021 11:03:56 +0800 Subject: [PATCH] fix bug of map draw line --- .../main/java/com/mogo/map/impl/custom/utils/ObjectUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/map-custom/src/main/java/com/mogo/map/impl/custom/utils/ObjectUtils.java b/libraries/map-custom/src/main/java/com/mogo/map/impl/custom/utils/ObjectUtils.java index 6a2100fecc..9d6377f708 100644 --- a/libraries/map-custom/src/main/java/com/mogo/map/impl/custom/utils/ObjectUtils.java +++ b/libraries/map-custom/src/main/java/com/mogo/map/impl/custom/utils/ObjectUtils.java @@ -727,6 +727,7 @@ public class ObjectUtils { return null; } PolylineOptions target = new PolylineOptions(); + target.setGps(options.gps()); if ( options.getPoints() != null ) { List< LonLatPoint > points = new ArrayList<>(); for ( MogoLatLng point : options.getPoints() ) { @@ -736,7 +737,7 @@ public class ObjectUtils { } target.setLineWidth( options.getWidth() ); target.setColor( options.getColor() ); - target.setGps(options.gps()); +// target.setGps(options.gps()); //todo 地图侧 验证画线问题 需要设置GPS提前至加点之前 // target.zIndex( options.getWidth() ); // target.visible( options.isVisible() ); //// target.geodesic( options.isGeodesic() );