diff --git a/Sources/Controllers/Map/Layers/OAPreviewRouteLineLayer.mm b/Sources/Controllers/Map/Layers/OAPreviewRouteLineLayer.mm index 102e5dfc73..b900fb2e68 100644 --- a/Sources/Controllers/Map/Layers/OAPreviewRouteLineLayer.mm +++ b/Sources/Controllers/Map/Layers/OAPreviewRouteLineLayer.mm @@ -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 diff --git a/Sources/Controllers/Map/Layers/OARouteLayer.mm b/Sources/Controllers/Map/Layers/OARouteLayer.mm index b21ace61ff..5e3f771bdb 100644 --- a/Sources/Controllers/Map/Layers/OARouteLayer.mm +++ b/Sources/Controllers/Map/Layers/OARouteLayer.mm @@ -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