-
Notifications
You must be signed in to change notification settings - Fork 67
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
"save your project" #209
Comments
I think this feature is essential for DC (and a critical component of #130). I've thought a bit about it, here is what I had in mind: The entire app state (or, at least layer's states) needs to be serializable. This would likely be an object with a list of layers (order of list representing order in layerlist and draw order on map). I'm going to call this the config file. Each layer would likely store its source, configurable properties (name, styling). Additionally, the config object should store a Some cases that will need to be sorted out:
I see this really being amazing if/when we enact the idea of operations being more like 'pipes', modifying the source data (meaning chainable, and if you make a change to the source data upstream, all layers downstream are updated). We'll save the source data, the operations that act upon the source data, and the styling of the output data. This could allow people to save/share mashup-maps of realtime data, which would be cool. |
I like these ideas. Why don't we each take a swing at this and see what we come up with/what we learn and come back with recommendations? |
Whoa! That's awesome @mapsam! |
What does this look like?
An idea: When you press "save" it builds a new, anonymous gist with each layer as it's own file in that gist, which can be loaded again. This way when we want to build in browser caching, similar to geojson.io, we can just load in that gist ID instead of caching each layer.
The text was updated successfully, but these errors were encountered: