Skip to content
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

Allow MapView.lookAt() to obey a target's altitude, so that the camera will also move up/down. #2

Open
trusktr opened this issue May 12, 2023 · 0 comments

Comments

@trusktr
Copy link
Member

trusktr commented May 12, 2023

Is your feature request related to a problem? Please describe.

When calling mapView.lookAt({target}), altitude is ignored, so if an object moves upward (f.e. an helicopter taking off) then the object will go out of view because the camera altitude stays the same.

Describe the solution you'd like

We should have an option to specify that it should also follow the given target's altitude.

Describe alternatives you've considered

When we make custom cameras easier to use in #1, an alternative would be to tell the MapView to use a camera that is a child of a moving object and it would simply work.

Additional context

This would be useful when animating a object (f.e. in an animation frame loop) and wanting the camera to lookAt the object each frame as the object moves upwards into the sky.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant