UNPKG

@indigoframework/ember-mapexplorer

Version:

Ember addon that displays a Map Explorer

41 lines (25 loc) 965 B
# Ember MapExplorer [![build status](https://travis-ci.org/stratumn/ember-mapexplorer.svg?branch=master)](https://travis-ci.org/stratumn/ember-mapexplorer?branch=master) Ember addon that provides map-explorer, a component that displays a Chain Map ## Installation Install the ember-cli addon in your ember-cli project: ``` $ ember install @indigoframework/ember-mapexplorer ``` This should automatically install ember-cli-sass. If you want to take advantage of default styles you may add: ``` @import '@indigoframework/mapexplorer-core'; @import '@indigoframework/ember-mapexplorer'; ``` in your `app/styles/app.scss`. You can also override default variables. ## Usage With an agent URL, a map ID and a process name: ``` {{map-explorer agentUrl="http://localhost:4000" mapId="57743311d6a22a8f2bd2bec1" process="myProcess"}} ``` With a chainscript (a JSON string or the array of segments as a POJO): ``` {{map-explorer chainscript=myChainscript}} ```