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

Refresh heatmap when data is returned from ElasticSearch #322

Closed
3 tasks
bajiat opened this issue Aug 7, 2015 · 1 comment
Closed
3 tasks

Refresh heatmap when data is returned from ElasticSearch #322

bajiat opened this issue Aug 7, 2015 · 1 comment
Assignees
Labels
Milestone

Comments

@bajiat
Copy link
Contributor

bajiat commented Aug 7, 2015

Currently the heatmap is only updated when the user interacts with the data, but it should be automatically updated when the data is returned from the query.

Definition of done

  • Determine the point when the map can be refreshed.
  • Implement a hook to refresh the map when the data is available.
  • Ensure that the map is refreshed every time data is filtered is interacting with charts.
@JuusoV JuusoV changed the title Refresh heatmap when data is returned from ElasticSeacr Refresh heatmap when data is returned from ElasticSeacrh Aug 7, 2015
@JuusoV JuusoV changed the title Refresh heatmap when data is returned from ElasticSeacrh Refresh heatmap when data is returned from ElasticSearch Aug 7, 2015
@bajiat bajiat added this to the Sprint 9 milestone Aug 10, 2015
@frenchbread
Copy link
Contributor

"Refresh" function can be actually placed in filter.js file but the problem is that once leaflet map has been initialized it is not possible to reinitialize one. There is built in "update" function (within leaflet) but even if calling it, data/heat won't update. The solution I came up with that seemed to work is onFiler event, removing DOM element from the page and reinitialize leaflet map with fresh data. Not the best approach but at least this could work

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

No branches or pull requests

2 participants