stadiamaps / ferrostar

A FOSS navigation SDK built from the ground up for the future
https://stadiamaps.github.io/ferrostar/
Other
81 stars 9 forks source link

Navigation puck design #53

Closed ianthetechie closed 3 weeks ago

Archdoog commented 2 months ago

Here are some Rallista assets we made for the latest mapbox, not sure if maplibre supports glb or they need to be converted. They could use some cleanup and should be changed to a more general purpose blue like the route line.

Rallista User Puck v2.zip puck_smaller_arrow.glb.zip

ianthetechie commented 2 months ago

I think that might still be usable on Android; we'd need something else for iOS though as glb files are OpenGL-specific.

ianthetechie commented 2 months ago

It looks like MapLibre Navigation for iOS just draws a UIView at an appropriate position. I think we briefly discussed that idea a week or two ago.

I assume you have some thoughts on this @Archdoog given that you are using a custom puck.

ianthetechie commented 2 months ago

Looks like this might actually not be too bad!

iOS actually gives us a good looking puck for free (unsure when that happened, as MapLibre Navigation still uses a hacked up UIView annotation... or was it this one?).

Need to confirm how this works on Android, and we'll need to do some work to expose this in Ramani.

Might be relevant: https://github.com/maplibre/maplibre-navigation-android/blob/main/libandroid-navigation-ui/src/main/java/com/mapbox/services/android/navigation/ui/v5/map/MapPaddingAdjustor.java

ianthetechie commented 1 month ago

Assigning @Archdoog to finish up the basic Android integration (using MapLibre defaults for now); once that's integrated, we can mark this as complete.

ianthetechie commented 3 weeks ago

This is done. We can iterate on this as the remaining issues like puck not showing up correctly z-order-wise are likely a result of the Ramani composables drawing in the wrong order.