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

点亮城市示例中动态线的数据 #3

Closed
githubhanjunjun opened this issue Nov 28, 2018 · 7 comments
Closed

点亮城市示例中动态线的数据 #3

githubhanjunjun opened this issue Nov 28, 2018 · 7 comments

Comments

@githubhanjunjun
Copy link

我用pgis转线的geojson数据放到示例中,并没有动态效果,因为坐标中没有第三个值吗?

@lzxue
Copy link
Contributor

lzxue commented Nov 28, 2018

是的,第三个值表示出现的时间,

@githubhanjunjun
Copy link
Author

是的,第三个值表示出现的时间,

非常感谢您的回复,请问时间的单位是毫秒还是秒,还有每次重复显示一条线的时间是多久,可以设置吗?

@lzxue
Copy link
Contributor

lzxue commented Nov 29, 2018

单位是毫秒, 速度是每帧率 50ms的步长 ,当前的周期是3.6秒, 目前还没有开放这块这块动画设置的接口,

@githubhanjunjun
Copy link
Author

单位是毫秒, 速度是每帧率 50ms的步长 ,当前的周期是3.6秒, 目前还没有开放这块这块动画设置的接口,

请问我应该如何计算每个点的时间间隔,我用随机数生成了100-3000的数值,遍历每一条线,当随机数小于500,我设置这条线的第一个点时间为随机数,后面的点时间逐个加100。当随机数大于500小于1000,这条线的第一个点时间设置为随机数,后面的点时间逐渐加50。大于1000时时间间隔为10,展示效果并没有实例中的那么好,显示线很短,很稀少的感觉。这个时间间隔的计算方法是什么呢?

@liupeng7
Copy link

这些线的数据 都是从哪来的呢

@lzxue
Copy link
Contributor

lzxue commented Dec 2, 2018

@githubhanjunjun @liupeng7 示例中的数据是真实数据处理的,数据来源上海是出租车数据, 上海soda数据比赛上可以下载。

@lzxue lzxue closed this as completed Dec 3, 2018
@swwwww
Copy link

swwwww commented Jun 21, 2019

我用pgis转线的geojson数据放到示例中,并没有动态效果,因为坐标中没有第三个值吗?

你是通过什么方式得到线的geojson数据呢?

lzxue pushed a commit that referenced this issue Feb 9, 2020
lzxue pushed a commit that referenced this issue Mar 5, 2020
lzxue pushed a commit that referenced this issue Mar 5, 2020
lzxue pushed a commit that referenced this issue Mar 5, 2020
lzxue pushed a commit that referenced this issue Mar 6, 2020
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

4 participants