Compose Widget
The Compose Widget article explains how to add customizable pins to images and videos within TagoIO, including support for metadata and groups. It also outlines the main sections for configuring the widget: data source, media backgrounds, pin positioning, pin editor, and infobox settings.
The compose widget allows you to add pins to images and videos. You can change the colors, values, and icons for each pin.
This widget also accepts features like metadata and groups, which can be set in your variable data.
Creating your own
- 1. 'Data From' Field
- 2. Media Backgrounds
- 3. Positioning Pins
x and
y parameters in the variable’s metadata:
{
"fixed_position": {
"device_id": {
"device": "Temperature Sensor",
"label": "Pin One",
"color": "#313c46",
"icon": "presentation",
"x": "0.5",
"y": "0.5"
}
},
"file": {
"url": "https://api.tago.io/file/…/video.mp4",
"path": "/buckets/device_id/video.mp4"
}
}
Editor method: Enable pin editing in the widget to let users place pins interactively and edit their info boxes.
- 4. Pin Editor
- Default – zoom and drag the image.
- Edit – click an existing pin to change its data source, label, embed content, icon, etc.
- 5. Infobox