Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Direction arrows fix #3536

Merged
merged 6 commits into from
Apr 6, 2024
Merged

Direction arrows fix #3536

merged 6 commits into from
Apr 6, 2024

Conversation

nnngrach
Copy link
Contributor

@nnngrach nnngrach commented Mar 28, 2024

issue
core request

Updated this method from android
https://github.com/osmandapp/Osmand/blob/4e6f78419808ac87c2f35c4dc11f1161f0c89882/OsmAnd/src/net/osmand/plus/views/layers/geometry/MultiColoringGeometryWay.java#L404

LINE_WIDTH_THRESHOLD_DP = 8f;
lineWidthThresholdPix = AndroidUtils.dpToPxAuto(context.getCtx(), LINE_WIDTH_THRESHOLD_DP);

public boolean useSpecialArrow() {
    return getWidth(0) <= lineWidthThresholdPix;
}

Map style params - Day
Screenshot 2024-03-28 at 22 33 23

Map style params - Night
Screenshot 2024-03-28 at 22 36 39

Switching now is on 8 -> 9 levels

8 - rounds
Screenshot 2024-03-28 at 22 40 39

9 - arrows
Screenshot 2024-03-28 at 22 41 13

On Route Layer this settings works too

Screenshot 2024-03-28 at 22 43 30

@alex-osm alex-osm merged commit 7f5dc16 into master Apr 6, 2024
@alex-osm alex-osm deleted the Direction-arrows-fix branch April 6, 2024 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Direction arrows color is not adjusts to line color
2 participants