fix bug of map draw line
This commit is contained in:
@@ -727,6 +727,7 @@ public class ObjectUtils {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
PolylineOptions target = new PolylineOptions();
|
PolylineOptions target = new PolylineOptions();
|
||||||
|
target.setGps(options.gps());
|
||||||
if ( options.getPoints() != null ) {
|
if ( options.getPoints() != null ) {
|
||||||
List< LonLatPoint > points = new ArrayList<>();
|
List< LonLatPoint > points = new ArrayList<>();
|
||||||
for ( MogoLatLng point : options.getPoints() ) {
|
for ( MogoLatLng point : options.getPoints() ) {
|
||||||
@@ -736,7 +737,7 @@ public class ObjectUtils {
|
|||||||
}
|
}
|
||||||
target.setLineWidth( options.getWidth() );
|
target.setLineWidth( options.getWidth() );
|
||||||
target.setColor( options.getColor() );
|
target.setColor( options.getColor() );
|
||||||
target.setGps(options.gps());
|
// target.setGps(options.gps()); //todo 地图侧 验证画线问题 需要设置GPS提前至加点之前
|
||||||
// target.zIndex( options.getWidth() );
|
// target.zIndex( options.getWidth() );
|
||||||
// target.visible( options.isVisible() );
|
// target.visible( options.isVisible() );
|
||||||
//// target.geodesic( options.isGeodesic() );
|
//// target.geodesic( options.isGeodesic() );
|
||||||
|
|||||||
Reference in New Issue
Block a user