-
Notifications
You must be signed in to change notification settings - Fork 27
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
Upgrades to improved MapLibre Compose #156
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When testing this, I ran into some issues. An API 35 emulator crashed instantly (ok it's dev; whatever...). An API 34 emulator is also segfaulting. It's crashing in a GL thread, which suggests it's related to MapLibre (not 100% sure but seems likely here).
2024-07-16 16:27:14.329 9192-9267 libc com.stadiamaps.ferrostar.demo A Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x30 in tid 9267 (GLThread 71), pid 9192 (.ferrostar.demo)
At first I thought it was related to the padding but I'm not sure now.
Is this working for you? If so, can you give more config details? Here's my AVD config:
fun CameraPadding.Companion.NavigationPortrait(): CameraPadding { | ||
return CameraPadding( | ||
start = 0.0, | ||
top = 1300.0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this will work. At the very least it doesn't generalize to other screen sizes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is gone and replaced by a much improved dynamic @composable.
* A camera padding configuration for a navigation map view that places the user puck in the lower | ||
* center of the screen. | ||
*/ | ||
fun CameraPadding.Companion.NavigationPortrait(): CameraPadding { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep. I've been ignoring those to keep it "kotlin enum like". I could put an actual suppression on it to note it's an intentional decision.
org.maplibre.android