0.3.0 • Published 6 years ago

@indigocore/angular-mapexplorer v0.3.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
6 years ago

angular-mapexplorer

AngularJS 1.6 directive to display an Indigo Map Explorer

npm

Demo

http://stratumn.github.io/angular-mapexplorer/

Install

npm

$ npm install @indigocore/angular-mapexplorer

You 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: false

Display the tag color legend and allow configuration

onSegmentShow

Default: noop

Callback called when a segment content is displayed with the segment in argument

onSegmentHide

Default: noop

Callback 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.js

The application will be served at localhost:3300