Skip to content

POC nav mode - #220

Closed
tobrun wants to merge 1 commit into
masterfrom
poc-navigation-mode
Closed

tobrun wants to merge 1 commit into
masterfrom
poc-navigation-mode

Conversation

@tobrun

@tobrun tobrun commented Dec 21, 2017

Copy link
Copy Markdown
Member

This PR contains a small POC of a third person navigation mode, in this mode we have a fixed ImageView over the map and animate the map underneath.

This PR tries to showcase:

  • using a focal point with MapboxMap#getUiSettings()#setFocalPoint(PointF). As a result all gesture interactions will occur around this point instead of the focal point of the gesture itself (eg. center point between two fingers while pinch zooming). The calculation isn't completely correct as it wobbles a bit, and we would need to add scaling to it, but you get the picture.

    • ezgif com-video-to-gif 23
  • you can listen to camera changes and validate if the tilt of the camera has changed. This allows to provide a hook to transform the location puck. Atm the transformation is incorrect but good enough to showcase it's feasibility.

    • ezgif com-video-to-gif 24
  • all animations in above gifs were done with Android SDK animators, it contains an example how to orchestrate multiple of them together to create an animation set. Atm animation duration is calculated based on the time it took for the previous location update to be triggerred. There will be better ways of getting a more smooth animation.

cc @mapbox/navigation-android

@tobrun tobrun added location-layer-plugin Issues that deal with the location layer module ⚠️ DO NOT MERGE labels Dec 21, 2017
@ericrwolfe

Copy link
Copy Markdown
Contributor

Awesome! 😍

@vladgheorghe

Copy link
Copy Markdown

awesome ! looking forward to the snapshot version

@lucianboboc

Copy link
Copy Markdown

Woohoo, let’s go with the merge 😋

@tobrun tobrun closed this Feb 20, 2018
@tobrun

tobrun commented Feb 20, 2018

Copy link
Copy Markdown
Member Author

fwiw this was a proof of concept, we are looking implementing this functionality in a different manner.

@tobrun
tobrun deleted the poc-navigation-mode branch September 19, 2018 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚠️ DO NOT MERGE location-layer-plugin Issues that deal with the location layer module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants