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

Animations for expeditions (Military Symbols) #181

Open
MiklerGM opened this issue Nov 24, 2019 · 0 comments
Open

Animations for expeditions (Military Symbols) #181

MiklerGM opened this issue Nov 24, 2019 · 0 comments

Comments

@MiklerGM
Copy link
Contributor

This issue is connected to #155 #94

In order to implement animations for expeditions or LineStrings we need to modify data set provided to mapbox on the fly. So we can't use MVT.
https://docs.mapbox.com/mapbox-gl-js/example/animate-a-line/

For this purpose I would propose to create a separate endpoint for serving full GeoJSON with every military symbol for specified narrative (not narration).

Second Problem -- additional research needed
The speed of animation will depend on number of points.
Straight line would be animated in one animation frame, triangle in three and so on.

To keep the animation speed steady the LineString should be populated with points with similar space in between

I've been looking into smooth functions, like https://postgis.net/docs/ST_ChaikinSmoothing.html
But I think they will have zero effect on a straight line

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

2 participants