Created
April 23, 2015 20:20
-
-
Save robhawkes/2d5c99ff6f9b5472a072 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var csvConfig = { | |
input: { | |
type: "BlueprintInputCSV", | |
options: { | |
path: "./data/some.csv" | |
} | |
}, | |
output: { | |
type: "BlueprintOutputDebugPoints", | |
options: {} | |
}, | |
triggers: [{ | |
triggerObject: "output", | |
triggerName: "initialised", | |
triggerArguments: [], | |
actionObject: "input", | |
actionName: "requestData", | |
actionArguments: [], | |
actionOutput: {} | |
}, { | |
triggerObject: "input", | |
triggerName: "dataReceived", | |
triggerArguments: ["csv"], | |
actionObject: "output", | |
actionName: "outputPoints", | |
actionArguments: ["data"], | |
actionOutput: { | |
data: { | |
process: "map", | |
itemsObject: "csv", | |
itemsProperties: "data", | |
transformation: { | |
coordinates: ["Longitude", "Latitude"] | |
} | |
} | |
} | |
}] | |
}; | |
var switchboardCSV = new VIZI.BlueprintSwitchboard(csvConfig); | |
switchboardCSV.addToWorld(world); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment