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

通过切换数据,切换轨迹,展示线为叠加不是替换 #137

Open
niuchunling opened this issue Aug 26, 2019 · 3 comments
Open

Comments

@niuchunling
Copy link

Do you want to request a feature or report a bug?
bug
What is the current behavior?
通过切换数据,切换轨迹,展示线为叠加不是替换
新的轨迹会展示上一条数据的折线
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run. Paste the link to your CodeSandbox (https://codesandbox.io/s/jnnxrwq5y3) example below:

What is the expected behavior?
轨迹数据可以根据新数据重新绘制

@niuchunling
Copy link
Author

正确

错误

下面是我的数据,为什么key用Id显示是错误的,key 用idx是正确的,即使idx都为1
image

@JserWang
Copy link
Owner

嗨,能否在codesandbox中进行模拟错误,来让我更好复现你说的问题。
在地图中展示轨迹路线这种需求我们在实际应用中也有用到,但是还没发现问题,也许你可以帮我复现出来,我来看是否为bug或者是使用上的不便来修复带来更好的体验。

@niuchunling
Copy link
Author

嗨,能否在codesandbox中进行模拟错误,来让我更好复现你说的问题。
在地图中展示轨迹路线这种需求我们在实际应用中也有用到,但是还没发现问题,也许你可以帮我复现出来,我来看是否为bug或者是使用上的不便来修复带来更好的体验。

https://codesandbox.io/s/infallible-zhukovsky-6m5rk
点击下面切换按钮,查看效果,非常感谢啦

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

2 participants