{
  "widget": {
    "typeFullFqn": "system.image_map",
    "type": "latest",
    "sizeX": 8.5,
    "sizeY": 6,
    "config": {
      "datasources": [],
      "timewindow": {
        "displayValue": "",
        "selectedTab": 0,
        "realtime": {
          "realtimeType": 1,
          "interval": 1000,
          "timewindowMs": 60000,
          "quickInterval": "CURRENT_DAY",
          "hideInterval": false,
          "hideLastInterval": false,
          "hideQuickInterval": false
        },
        "history": {
          "historyType": 0,
          "interval": 1000,
          "timewindowMs": 60000,
          "fixedTimewindow": {
            "startTimeMs": 1761572740992,
            "endTimeMs": 1761659140992
          },
          "quickInterval": "CURRENT_DAY",
          "hideInterval": false,
          "hideLastInterval": false,
          "hideFixedInterval": false,
          "hideQuickInterval": false
        },
        "aggregation": {
          "type": "AVG",
          "limit": 25000
        }
      },
      "showTitle": true,
      "backgroundColor": "rgba(0, 0, 0, 0)",
      "color": "rgba(0, 0, 0, 0.87)",
      "padding": "0px",
      "settings": {
        "mapType": "image",
        "layers": [
          {
            "label": "{i18n:widgets.maps.layer.roadmap}",
            "provider": "openstreet",
            "layerType": "OpenStreetMap.Mapnik"
          },
          {
            "label": "{i18n:widgets.maps.layer.satellite}",
            "provider": "openstreet",
            "layerType": "Esri.WorldImagery"
          },
          {
            "label": "{i18n:widgets.maps.layer.hybrid}",
            "provider": "openstreet",
            "layerType": "Esri.WorldImagery",
            "referenceLayer": "openstreetmap_hybrid"
          }
        ],
        "imageSource": {
          "sourceType": "image",
          "url": "tb-image;/api/images/tenant/apartment-plan.png",
          "entityAliasId": null,
          "entityKey": null
        },
        "markers": [
          {
            "dsType": "device",
            "dsLabel": "",
            "dsDeviceId": "adfdbaf0-9e04-11f0-ad77-5ba1fa750088",
            "dsEntityAliasId": null,
            "dsFilterId": null,
            "additionalDataSources": null,
            "additionalDataKeys": null,
            "label": {
              "show": true,
              "type": "pattern",
              "pattern": "<div style='position: relative; white-space: nowrap; text-align: center; font-size: 10px; top: -2px;'><span style='margin-left: -500%;'></span><div style='border: 2px solid #00695c; border-radius: 10px; color: #000; background-color: #fff;  padding-left: 10px; padding-right: 10px; padding-top: 4px; padding-bottom: 4px;'>${entityLabel}</div></div>",
              "patternFunction": null
            },
            "tooltip": {
              "show": true,
              "trigger": "click",
              "autoclose": true,
              "type": "pattern",
              "pattern": "<b>${entityName}</b><br/><br/><b>Temperature:</b> ${temperature} °C",
              "offsetX": 0,
              "offsetY": -1,
              "patternFunction": null,
              "tagActions": null
            },
            "click": {
              "type": "doNothing"
            },
            "groups": null,
            "edit": {
              "enabledActions": [
                "add",
                "remove"
              ],
              "attributeScope": "SERVER_SCOPE",
              "snappable": false
            },
            "xKey": {
              "name": "xPos",
              "label": "xPos",
              "type": "attribute",
              "settings": {},
              "color": "#2196f3"
            },
            "yKey": {
              "name": "yPos",
              "label": "yPos",
              "type": "attribute",
              "settings": {},
              "color": "#2196f3"
            },
            "markerType": "icon",
            "markerShape": {
              "shape": "markerShape1",
              "size": 34,
              "color": {
                "type": "constant",
                "color": "#307FE5"
              }
            },
            "markerIcon": {
              "iconContainer": "iconContainer1",
              "icon": "thermostat",
              "size": 30,
              "color": {
                "type": "range",
                "color": "#307FE5",
                "rangeKey": {
                  "name": "temperature",
                  "type": "timeseries",
                  "label": "temperature",
                  "color": "#2196f3",
                  "settings": {},
                  "_hash": 0.3603105237141905
                },
                "range": [
                  {
                    "from": null,
                    "to": 20,
                    "color": "rgb(4, 138, 211)"
                  },
                  {
                    "from": 20,
                    "to": 25,
                    "color": "rgb(76, 175, 80)"
                  },
                  {
                    "from": 25,
                    "to": null,
                    "color": "rgb(244, 67, 54)"
                  }
                ],
                "colorFunction": null
              }
            },
            "markerImage": {
              "type": "image",
              "image": "/assets/markers/shape1.svg",
              "imageSize": 34
            },
            "markerOffsetX": 0.5,
            "markerOffsetY": 1,
            "positionFunction": "return {x: origXPos, y: origYPos};",
            "markerClustering": {
              "enable": false,
              "zoomOnClick": true,
              "maxZoom": null,
              "maxClusterRadius": 80,
              "zoomAnimation": true,
              "showCoverageOnHover": true,
              "spiderfyOnMaxZoom": false,
              "chunkedLoad": false,
              "lazyLoad": true,
              "useClusterMarkerColorFunction": false,
              "clusterMarkerColorFunction": null
            }
          }
        ],
        "polygons": [],
        "circles": [],
        "additionalDataSources": [],
        "controlsPosition": "topleft",
        "zoomActions": [
          "controlButtons"
        ],
        "scales": [],
        "dragModeButton": false,
        "fitMapBounds": true,
        "useDefaultCenterPosition": false,
        "defaultCenterPosition": "0,0",
        "defaultZoomLevel": null,
        "mapPageSize": 16384,
        "mapActionButtons": [],
        "background": {
          "type": "color",
          "color": "#fff",
          "overlay": {
            "enabled": false,
            "color": "rgba(255,255,255,0.72)",
            "blur": 3
          }
        },
        "padding": "8px"
      },
      "title": "Sensor Map",
      "useDashboardTimewindow": true,
      "displayTimewindow": true,
      "showTitleIcon": false,
      "titleTooltip": "",
      "dropShadow": true,
      "enableFullscreen": true,
      "widgetStyle": {},
      "widgetCss": "",
      "titleStyle": {
        "fontSize": "16px",
        "fontWeight": 400
      },
      "pageSize": 1024,
      "noDataDisplayMessage": "",
      "configMode": "basic",
      "titleFont": null,
      "titleColor": null,
      "margin": "0px",
      "borderRadius": "12px",
      "iconSize": "24px",
      "titleIcon": "map",
      "iconColor": "#1F6BDD",
      "actions": {}
    },
    "row": 0,
    "col": 0,
    "id": "98ac76f1-16b6-3dcd-9a3a-1551b460fa71"
  },
  "aliasesInfo": {
    "datasourceAliases": {},
    "targetDeviceAlias": null
  },
  "filtersInfo": {
    "datasourceFilters": {}
  },
  "originalSize": {
    "sizeX": 10,
    "sizeY": 8
  },
  "originalColumns": 24,
  "widgetExportInfo": {
    "markers": {}
  }
}