Request: Working example for custom location puck with correct heading (iOS & Android) #4024
Unanswered
GeoffreyFardeau
asked this question in
Q&A
Replies: 1 comment
-
@GeoffreyFardeau I'd start with LocationPuck https://rnmapbox.github.io/docs/examples/UserLocation/CustomNativeUserLocation Then describe your concrete issues with a concrete example |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi ,
I’ve been struggling for several months to get a custom location puck working properly with a GPS mode and correct heading on both iOS and Android.
What I need is:
A custom image for the location puck (e.g., my own marker icon)
The puck should rotate according to the user’s heading/direction of movement
It should work uniformly on both iOS and Android
Right now, I’m facing big inconsistencies:
The heading/rotation is never correct or synchronized between platforms
Some behaviors differ between iOS and Android when the map is in GPS/Follow mode
Could you please provide a clean, working code example (or documentation snippet) showing how to:
Use a custom puck image
Correctly bind it to the user’s heading
Ensure consistent behavior across iOS and Android
It would help a lot
I’ve seen other issues mentioning similar problems but none with a full working example.
Thanks in advance for your help 🙏
Beta Was this translation helpful? Give feedback.
All reactions