PlantQuest is a supplier of asset mapping solutions to the Life Science sector. The industry focused PlantQuest Asset Map allows users to intergrate the PlantQuest mapping technology into their technology stack. Upon doing so, users can manipulate maps and display asset information within the context of where it is generated helping workers to make smarter, quicker and more insightful decisions. In turn, increasing their operational effeciency.
npm install --save @plantquest/assetmap
Set window.PLANTQUEST_ASSETMAP_LOG
to true
to enable logging.
width
: Pixel width of mapheight
: Pixel height of mapmapBounds
: Pixel bounds of mapmapStart
: Pixel start position of mapmapStartZoom
: Starting zoom levelmapRoomFocusZoom
: Zoom level for room focusmapMaxZoom
: Maximum zoommapMinZoom
: Minimum zoomstates
: State definitions{ [stateName]: { color: COLOR, name: STRING, marker: 'standard'|'alert'}, ...}
start.map
: Starting mapstart.level
: Starting levelroom.color
: Room highlight color
{ srv: 'plantquest', part: 'assetmap', ZOOM: <INTEGER>, }
Where:
<INTEGER>: Zoom level (default: -4 to +2)
{ srv: 'plantquest', part: 'assetmap', relate: 'room-asset', }
Listen: RELATION
{ srv: 'plantquest', part: 'assetmap', show: 'room', room: <ROOM-ID>, }
Where:
<ROOM-ID>: Room Identifier String
{ srv: 'plantquest', part: 'assetmap', status: <STATUS>, asset: <ASSET-ID>, }
Where:
<STATUS>: Status String ('red', 'green')
<ASSET-ID>: Asset Identifier String
{ srv: 'plantquest', part: 'assetmap', state: <STATE>, }
Where:
<STATE>: 'ready'
{ srv: 'plantquest', part: 'assetmap', relate: 'room-asset', relation: <RELATION>, }
Where:
<RELATION>:
{ '<ROOM-ID>': [ '<ASSET-ID>', ... ] }
{ srv: 'plantquest', part: 'assetmap', select: 'room', room: <ROOM-ID>, }
Where:
<ROOM-ID>: Room Identifier String
MIT © Plantquest Ltd BSD 2-Clause © Vladimir Agafonkin, Cloudmade MIT © Justin Manley