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

tree variables data: define as per-instance list #29

Open
6 tasks
hotzeplotz opened this issue Jul 13, 2016 · 0 comments
Open
6 tasks

tree variables data: define as per-instance list #29

hotzeplotz opened this issue Jul 13, 2016 · 0 comments

Comments

@hotzeplotz
Copy link
Collaborator

now that we have introduced layers and layer groups, the previous workflow for the loading of tree data files is not making efficient use of network requests.

as tree variables are now defined (as XHR-loaded resources) for each layer, in order to optimize loading of resources for tree data shared across layers, the metadata file should define a master list of XHR-loaded resources and only reference these from individual layers' variables metadata.

we can then XHR-load all the required data files, and use them where necessary.

  • update metadata.json schema
    • add a section where XHR-loaded resources are listed
    • reference resources from the master list from within metadata of tree-type variables
  • update platform.js code
    • retrieve all tree data files (only for variables X layers that actually contain data)
    • use preloaded tree data files when attaching tree charts to visualization
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

1 participant