-
Notifications
You must be signed in to change notification settings - Fork 34
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
Add example for new location layer functionality #117
Conversation
@MaximAlien |
The puck layer position issue has been fixed in mapbox/mapbox-navigation-ios#3106 |
130e130
to
6d69dfd
Compare
7b77383
to
07f1aa4
Compare
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 so cool! If you don’t mind, it’d be nice to see a screenshot of the updated 3D puck in action. Maybe for a future enhancement, we can set a Red Planet style or something. 😁
|
||
func setupPuck3D() { | ||
// It's required to provide a `Puck3DConfiguration` to the `UserLocationStyle.puck3D`, a `gltf` 3D asset will be used as the `Model` source. | ||
// The model source is from NASA's curiosity(clean) in https://github.com/nasa/NASA-3D-Resources/blob/master/3D%20Models/Curiosity%20(Clean)/MSL_clean.blend |
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.
Let’s link to the permalink just in case the file gets renamed or moved in the future:
// The model source is from NASA's curiosity(clean) in https://github.com/nasa/NASA-3D-Resources/blob/master/3D%20Models/Curiosity%20(Clean)/MSL_clean.blend | |
// NASA's Curiosity rover from https://github.com/nasa/NASA-3D-Resources/blob/463f2b2941e3e95acfcbb12f783070e9d92ee267/3D%20Models/Curiosity%20(Clean)/MSL_clean.blend |
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.
Thanks for the suggestion. I added a gif example of the Curiosity in SF ☝️
This pr is to fix #115 to create example for new location layer functionality. It would allow the developers to provide custom user location style for navigation, including the default
userCourseView
, and thepuck2D
,puck3D
.Example of using the Curiosity 3D model as below: