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

fix location puck getting hidden #956

Merged
merged 1 commit into from
Mar 22, 2022

Conversation

felix-ht
Copy link
Collaborator

@felix-ht felix-ht commented Mar 21, 2022

Currently new layers of any kind hide the location puck under them on android.

With this PR the location locationComponent is updated whenever a new layer is added to move it above the new layer. Fixes #692

@felix-ht felix-ht added bug Something isn't working android labels Mar 21, 2022
@felix-ht felix-ht requested a review from Chaoba March 21, 2022 19:59
@felix-ht felix-ht temporarily deployed to ANDROID_CI_DOWNLOADS_TOKEN March 21, 2022 19:59 Inactive
@felix-ht felix-ht temporarily deployed to ANDROID_CI_DOWNLOADS_TOKEN March 21, 2022 19:59 Inactive
Copy link
Collaborator

@Chaoba Chaoba left a comment

Choose a reason for hiding this comment

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

LGTM

@felix-ht
Copy link
Collaborator Author

@Chaoba thanks for the review!

@felix-ht felix-ht merged commit 19b541c into master Mar 22, 2022
@felix-ht felix-ht deleted the fix-location-component-hidden-issue branch March 22, 2022 09:21
@AAverin
Copy link
Contributor

AAverin commented Mar 24, 2022

This fails with NPE if location was disabled by the user.
locationComponent is null when we call updateLocationEnabled from onStyleLoaded and it will stay null because location is disabled,

I have created a PR: #966

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Android] Custom layers are placed on top of the user location
3 participants