Skip to content

Instantly share code, notes, and snippets.

@wizzard0
Forked from rymohr/remote-blueprints-in-kumu.md
Created February 24, 2017 18:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wizzard0/bb4a504921d7a035e7aa872fea6ed222 to your computer and use it in GitHub Desktop.
Save wizzard0/bb4a504921d7a035e7aa872fea6ed222 to your computer and use it in GitHub Desktop.

Create a new map in Kumu, open up the javascript console, and point the map at the blueprint:

Workflows.setCurrentMapSource("https://example.com/path/to/blueprint.json");

For example, if you wanted to load the blueprint below you would use

Workflows.setCurrentMapSource("https://gist.githubusercontent.com/rymohr/06533f749645f13c7732/raw/420f21f74b6de68485347af058f1a3f8b12b89a9/simple-kumu-blueprint.json");

The map data will now be fetched on the fly each time you visit the map. Just make sure to validate the json before trying to load it in Kumu. The error messages you'll get within Kumu won't be helpful here.

See https://kumu.io/rymohr/remote#simple for the final result!

{
"elements": [
{"type": "Cofounder", "label": "Ryan", "description": "Ryan likes to surf and hack on things.", "location": "Oahu"},
{"type": "Cofounder", "label": "Jeff", "description": "Jeff likes to run and save the world.", "location": "Menlo Park"},
{"type": "Startup", "label": "Kumu", "description": "A network visualization startup cofounded by [[Ryan]] and [[Jeff]].", "website": "https://kumu.io"}
],
"connections": [
{"from": "Ryan", "to": "Jeff", "type": "Family", "description": "[[Ryan]] and [[Jeff]] are brothers."},
{"from": "Ryan", "to": "Kumu", "type": "Cofounder"},
{"from": "Jeff", "to": "Kumu", "type": "Cofounder"}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment