The expand
function for GeoDash that is used during building and runtime.
var value = expand(keyChain);
GeoDash is a modern web framework and approach for quickly producing visualizations of geospatial data. The name comes from "geospatial dashboard".
The framework is built to be extremely extensible. You can use GeoDash Server (an implementation), the front-end framework, backend code, or just the Gulp pipeline. Have fun!
See http://geodash.io for more details.
Install with npm
npm install geodash-expand--save-dev
expand
is a function mostly used with extract. Expand can expand an arbitrary array of period separated keychains and create a unified array of 1 element per key.
var a = ["featurelayers"];
var b = expand(a.concat([0, "popup.panes", 2]));
// b == ["featurelayers", 0, "popup", "panes", 2]
var pane = extract(b, dashbaord);
Since the function can be used throughout the framework and in downstream project code, in GeoDashJS, it is attached to the window
and is globally accessible with no namespace.
To build the custom docs template used in the website, you'll need to install a custom version of docstrap.git on top of the default version. The below command will install the custom version.
npm install git+https://[email protected]/geodashio/docstrap.git\#geodash # Install custom docs template with font awesome
You can just build docs with:
npm run build:docs # or gulp docs since run the same thing
Only jshint is supported right now. Run tests with the following command.
npm run tests
Happy to accept pull requests!
See LICENSE
file.