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

Camera movements along linestring #2441

Closed
peterqliu opened this issue Apr 14, 2016 · 3 comments
Closed

Camera movements along linestring #2441

peterqliu opened this issue Apr 14, 2016 · 3 comments

Comments

@peterqliu
Copy link
Contributor

.flyTo and .easeTo are totally my jam, though I've been seeing more frequent use cases for doing so to follow a moving marker-- usually in-car nav, or tracking some moving thing from just-above-the-driver's eye view.

It would be cool to feed in a linestring geometry --commonly provided by a routing query-- and

  • automatically follow it at some configurable speed (would it be sacrilege if this were measured in mph/kph? the physical distance of a pixel is variable with zoom level)
  • pivot the view to the proper bearing, to stay over (and behind) the driver's shoulder
  • bonus: accept zoom/pitch/speed as geojson properties at certain junctures along the route, and interpolate between them. This might require geojson points instead of one linestring, as each feature can have only one set of props.
@mourner
Copy link
Member

mourner commented Apr 14, 2016

I've been thinking about this too, also looking at camera flight algorithms that would make the movement smooth (without fast turns). I may take a stab at this later, likely involving Centripetal Catmull-Rom Spline.

@lucaswoj
Copy link
Contributor

What primitives would we need to expose to implement this feature as a plugin?

@lucaswoj
Copy link
Contributor

Duplicate of #981

Related to #2801

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

No branches or pull requests

3 participants