Skip to content

fix(android): Add option to move symbol location indicator bearing down the image stack#4408

Open
adrian-cojocaru wants to merge 9 commits into
maplibre:mainfrom
adrian-cojocaru:location-indicator-order
Open

fix(android): Add option to move symbol location indicator bearing down the image stack#4408
adrian-cojocaru wants to merge 9 commits into
maplibre:mainfrom
adrian-cojocaru:location-indicator-order

Conversation

@adrian-cojocaru

@adrian-cojocaru adrian-cojocaru commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Currently the symbol location indicator uses a background/foreground/bearing image stack, while the specialized implementation and overall documentation use the bearing under foreground and background images.
This PR adds the bearingOnTop option to move the bearing image to make both implementation consistent.

Bearing image is visible only when using RenderMode.Compass (all other modes are unaffected) and maplibre default values don't overlap making the draw order irrelevant for this scenario.

default bearing
Default bearing drawable

Custom bearing drawable:


bearingOnTop(true) - main
bearingOnTop(true) - current implementation
bearingOnTop(false) - PR

@adrian-cojocaru
adrian-cojocaru marked this pull request as ready for review July 16, 2026 16:48

@louwers louwers left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you share a screenshot of how different it looks?

@adrian-cojocaru

Copy link
Copy Markdown
Collaborator Author

@louwers Samples and default values are unaffected by this change. Added a couple of images for a custom drawable that overlaps with the foreground.

@louwers

louwers commented Jul 17, 2026

Copy link
Copy Markdown
Member

@adrian-cojocaru So I guess it's not a breaking change anymore, correct?

@adrian-cojocaru

Copy link
Copy Markdown
Collaborator Author

It's breaking for anybody that uses custom images for the bearing drawable.

@louwers

louwers commented Jul 17, 2026

Copy link
Copy Markdown
Member

Would flipping the default value of bearingOnTop make it backward compatible?

@adrian-cojocaru

Copy link
Copy Markdown
Collaborator Author

Yes, it makes it backwards compatible (but leaves the two implementations with different results)

@adrian-cojocaru adrian-cojocaru changed the title fix(android): Move symbol location indicator bearing to the middle of the stack fix(android): Add option to move symbol location indicator bearing down the image stack Jul 21, 2026
@adrian-cojocaru
adrian-cojocaru requested a review from louwers July 22, 2026 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants