Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

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 🙏

You must be logged in to vote

Replies: 1 comment

Comment options

@GeoffreyFardeau I'd start with LocationPuck

https://rnmapbox.github.io/docs/examples/UserLocation/CustomNativeUserLocation
https://rnmapbox.github.io/docs/components/LocationPuck

Then describe your concrete issues with a concrete example

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.