-
Notifications
You must be signed in to change notification settings - Fork 103
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
Puck layer not added the same way on iOS and Android #577
Comments
Hi @basvdijk, thank you for making the report. May I ask what's the reason you are trying to access the location indicator layer? Just so we don't run into the XY problem. |
@evil159 I need to "snap" the puck on a route so it nicely follows the route line. As far as I know there is no listener I can use which is triggered when the puck location changes I do the following:
A 100% nicer solution would be if there is if there is a 'onPuckLocationChanged |
Thank you for sharing your use case @basvdijk! We have location API in our road map, can't give exact estimate, but it's close to the top of the list. |
@evil159 Great to hear! When implementing could you please make a flag or something so I can subscribe to GPS changes and the actual puck position (because of the smooth movement, don't want to interpolate myself). |
When you set the puck settings as:
You can access the puck layer with:
However when you use the same code for Android, it fails. The error tells you the puck layer does not exist.
In order to fix this you need to add
enabled: true
I think this behavior should be consistent across iOS and Android. So I guess the bug is that when
enabled: true
is not provided on iOS it still adds the puck layer.The text was updated successfully, but these errors were encountered: