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

DataLayer.reloadData() connects my end points #51

Closed
jack-r-abbit opened this issue Oct 13, 2014 · 4 comments
Closed

DataLayer.reloadData() connects my end points #51

jack-r-abbit opened this issue Oct 13, 2014 · 4 comments

Comments

@jack-r-abbit
Copy link

I have a data set of points drawn using a FlowLine (extended from DataLayer). It draws just fine. When I call the reloadData() function it redraws all the data but it also connects my end points.

I've whipped up a quick jsFiddle to show what I mean. http://jsfiddle.net/wzfp1mLh/ Click the "DataLayer.reloadData()" text above the map.

I should note: I am not actually that interested in calling reloadData() directly. Originally I was using the DataLayer.setDisplayOption() function to alter the opacity of the layer, which in turn calls reloadData(). When the extra line segment appeared, I took steps to isolate the cause.

@sfairgrieve
Copy link
Contributor

Thanks for pointing this out. I'll take a look and see what's going on. Should hopefully have an answer by tomorrow.

@sfairgrieve
Copy link
Contributor

I think I figured out the problem. I'll push a fix up soon.

sfairgrieve pushed a commit that referenced this issue Oct 15, 2014
@sfairgrieve
Copy link
Contributor

This should be fixed. Let me know if it's still a problem.

@jack-r-abbit
Copy link
Author

I've only just gotten back to working on this again. I can confirm the problem is gone. Thanks.

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