Skip to content

Conversation

@LukasPaczos
Copy link
Contributor

Closes #544.

While working on #577 I noticed that it's hard to extend the LocationLayerAnimator with new animation types, therefore, I refactored the code and updated the naming schema. Other than that, in this PR:

  • ff8872c fixes an issue where the fixed focal point would persist if camera modes where switched in a quick succession.
  • Added new methods that allow zooming and tilting the camera while any of the camera modes is engaged, besides the CameraMode#NONE.

ezgif com-video-to-gif 2

I'm open for discussion whether the approach taken with the methods that work only if the camera mode is engaged should be the way to go. The example of the required implementation can be found in the test app changes.

@LukasPaczos LukasPaczos added the location-layer-plugin Issues that deal with the location layer module label Jul 16, 2018
@LukasPaczos LukasPaczos added this to the location-layer-0.7.0 milestone Jul 16, 2018
@LukasPaczos LukasPaczos requested review from danesfeder and tobrun July 16, 2018 12:46
@LukasPaczos LukasPaczos force-pushed the 544-additional-camera-methods branch from b912b82 to ee4afaa Compare July 17, 2018 10:16
Copy link
Contributor

@danesfeder danesfeder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@LukasPaczos this refactor is 💯 awesome work - I don't have much feedback other than the comment on the TODO

this.previousAccuracyRadius = targetAccuracyRadius;
}

// TODO: 12/07/2018 canceling zoom and tilt
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is okay to go into master as is?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops, definitely not. Good catch.

@LukasPaczos LukasPaczos force-pushed the 544-additional-camera-methods branch from ee4afaa to a6b0f3f Compare July 18, 2018 10:53
@LukasPaczos
Copy link
Contributor Author

We also need to update the android-docs after this changes are released to document the new LocationLayerPlugin#zoomWhileTracking and LocationLayerPlugin#tiltWhileTracking methods.

/cc @langsmith

@LukasPaczos LukasPaczos merged commit 9342c78 into master Jul 18, 2018
@LukasPaczos LukasPaczos deleted the 544-additional-camera-methods branch July 18, 2018 14:13
@LukasPaczos LukasPaczos mentioned this pull request Jul 20, 2018
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

location-layer-plugin Issues that deal with the location layer module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Setting cameraMode cancels animation

2 participants