diff --git a/OsmAnd/src/net/osmand/plus/views/layers/GPXLayer.java b/OsmAnd/src/net/osmand/plus/views/layers/GPXLayer.java index 960b0d6d5ff..9aecff8c587 100644 --- a/OsmAnd/src/net/osmand/plus/views/layers/GPXLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/layers/GPXLayer.java @@ -1224,9 +1224,12 @@ private void drawSelectedFileSegments(SelectedGpxFile selectedGpxFile, boolean c GpxGeometryWay geometryWay = new GpxGeometryWay(wayContext); geometryWay.updateTrack3DStyle(track3DStyle); geometryWay.updateColoringType(coloringType); + geometryWay.updateCustomWidth(paint.getStrokeWidth()); if (!oldSegments.isEmpty() && oldSegments.get(0).getRenderer() instanceof RenderableSegment renderableSegment) { geometryWay.vectorLinesCollection = renderableSegment.getGeometryWay().vectorLinesCollection; geometryWay.vectorLineArrowsProvider = renderableSegment.getGeometryWay().vectorLineArrowsProvider; + geometryWay.updateCustomWidth(renderableSegment.getGeometryWay().getCustomWidth()); + geometryWay.updateDrawDirectionArrows(renderableSegment.getGeometryWay().getDrawDirectionArrows()); oldSegments.remove(0); } geometryWay.baseOrder = baseOrder--; diff --git a/OsmAnd/src/net/osmand/plus/views/layers/MapMarkersLayer.java b/OsmAnd/src/net/osmand/plus/views/layers/MapMarkersLayer.java index 63c081f476d..85504a5d3ac 100644 --- a/OsmAnd/src/net/osmand/plus/views/layers/MapMarkersLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/layers/MapMarkersLayer.java @@ -15,6 +15,7 @@ import android.os.Message; import android.text.TextPaint; import android.text.TextUtils; +import android.util.Log; import android.util.Pair; import android.view.GestureDetector; import android.view.MotionEvent; diff --git a/OsmAnd/src/net/osmand/plus/views/layers/geometry/GpxGeometryWay.java b/OsmAnd/src/net/osmand/plus/views/layers/geometry/GpxGeometryWay.java index 7d5cc473ce3..96bcea63c49 100644 --- a/OsmAnd/src/net/osmand/plus/views/layers/geometry/GpxGeometryWay.java +++ b/OsmAnd/src/net/osmand/plus/views/layers/geometry/GpxGeometryWay.java @@ -79,6 +79,14 @@ public void setTrackStyleParams(int trackColor, this.gradientPalette = gradientPalette; } + public boolean getDrawDirectionArrows() { + return drawDirectionArrows; + } + + public void updateDrawDirectionArrows(boolean drawDirectionArrows) { + this.drawDirectionArrows = drawDirectionArrows; + } + public void updateSegment(RotatedTileBox tb, List points, List routeSegments, boolean forceUpdate) { if (coloringChanged || forceUpdate || tb.getMapDensity() != getMapDensity() diff --git a/OsmAnd/src/net/osmand/plus/views/layers/geometry/MultiColoringGeometryWay.java b/OsmAnd/src/net/osmand/plus/views/layers/geometry/MultiColoringGeometryWay.java index a63525998ae..7c7dd664527 100644 --- a/OsmAnd/src/net/osmand/plus/views/layers/geometry/MultiColoringGeometryWay.java +++ b/OsmAnd/src/net/osmand/plus/views/layers/geometry/MultiColoringGeometryWay.java @@ -118,6 +118,14 @@ public void updateColoringType(@NonNull ColoringType routeColoringType) { coloringType = routeColoringType; } + public float getCustomWidth() { + return this.customWidth; + } + + public void updateCustomWidth(@NonNull float customWidth) { + this.customWidth = customWidth; + } + protected void updateStylesDashPattern(@Nullable float[] dashPattern) { for (GeometryWayStyle style : styleMap.values()) { style.dashPattern = dashPattern;