0.3.0 • Published 8 years ago
@indigocore/angular-mapexplorer v0.3.0
angular-mapexplorer
AngularJS 1.6 directive to display an Indigo Map Explorer
Demo
http://stratumn.github.io/angular-mapexplorer/
Install
npm
$ npm install @indigocore/angular-mapexplorerYou might also need tinycolor.js and angular-drop.
Usage
<st-map-explorer chainscript="home.json" refresh="0"></st-map-explorer>or
<st-map-explorer agentUrl="home.agentUrl" map-id="home.mapId" process="home.process" options="{showTagColorConfiguration: true}"></st-map-explorer>Options
showTagColorConfiguration
Default: falseDisplay the tag color legend and allow configuration
onSegmentShow
Default: noopCallback called when a segment content is displayed with the segment in argument
onSegmentHide
Default: noopCallback called when a segment content is hidden
Plus all options inherited from MapExplorer Core
Development
Build and launch demo app:
npm run build:demo
node docs/server.jsThe application will be served at localhost:3300