Skip to content

Commit

Permalink
Merge pull request #3575 from osmandapp/route-line-width-fix
Browse files Browse the repository at this point in the history
Route line width fix
  • Loading branch information
alex-osm authored Apr 9, 2024
2 parents 30cf971 + a5e7ec7 commit 7808b5f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Sources/Controllers/Map/Layers/OAPreviewRouteLineLayer.mm
Original file line number Diff line number Diff line change
Expand Up @@ -337,10 +337,10 @@ - (CGFloat)getLineWidth
}
else
{
width = [self getParamFromAttr:@"strokeWidth"].floatValue * VECTOR_LINE_SCALE_COEF;
width = [self getParamFromAttr:@"strokeWidth"].floatValue;
}

return width;
return width * VECTOR_LINE_SCALE_COEF;
}

- (CGFloat)getWidthByKey:(NSString *)widthKey
Expand Down
4 changes: 2 additions & 2 deletions Sources/Controllers/Map/Layers/OARouteLayer.mm
Original file line number Diff line number Diff line change
Expand Up @@ -462,10 +462,10 @@ - (CGFloat)getLineWidth
}
else
{
width = [self getParamFromAttr:@"strokeWidth"].floatValue * VECTOR_LINE_SCALE_COEF;
width = [self getParamFromAttr:@"strokeWidth"].floatValue;
}

return width;
return width * VECTOR_LINE_SCALE_COEF;
}

- (CGFloat)getWidthByKey:(NSString *)widthKey
Expand Down

0 comments on commit 7808b5f

Please sign in to comment.