{
  "widget": {
    "typeFullFqn": "system.route_map",
    "type": "timeseries",
    "sizeX": 8.5,
    "sizeY": 6,
    "config": {
      "datasources": [],
      "timewindow": {
        "hideAggregation": false,
        "hideAggInterval": false,
        "hideTimezone": false,
        "selectedTab": 0,
        "realtime": {
          "realtimeType": 0,
          "interval": 1000,
          "timewindowMs": 3600000,
          "quickInterval": "CURRENT_DAY",
          "hideInterval": false,
          "hideLastInterval": false,
          "hideQuickInterval": false
        },
        "history": {
          "historyType": 0,
          "interval": 1000,
          "timewindowMs": 3600000,
          "fixedTimewindow": null,
          "quickInterval": "CURRENT_DAY",
          "hideInterval": false,
          "hideLastInterval": false,
          "hideFixedInterval": false,
          "hideQuickInterval": false
        },
        "aggregation": {
          "type": "NONE",
          "limit": 500
        },
        "timezone": null
      },
      "showTitle": false,
      "backgroundColor": "rgba(0, 0, 0, 0)",
      "color": "rgba(0, 0, 0, 0.87)",
      "padding": "0px",
      "settings": {
        "mapType": "geoMap",
        "layers": [
          {
            "label": "{i18n:widgets.maps.layer.roadmap}",
            "provider": "openstreet",
            "layerType": "OpenStreetMap.Mapnik"
          },
          {
            "label": "{i18n:widgets.maps.layer.satellite}",
            "provider": "openstreet",
            "layerType": "OpenStreetMap.HOT",
            "referenceLayer": null
          },
          {
            "label": "{i18n:widgets.maps.layer.hybrid}",
            "provider": "openstreet",
            "layerType": "Esri.WorldImagery",
            "referenceLayer": "openstreetmap_hybrid"
          }
        ],
        "trips": [
          {
            "dsType": "device",
            "dsLabel": "",
            "dsDeviceId": "1dd5a770-ba1b-11f0-8d2a-7fcbd0bfb6b8",
            "dsEntityAliasId": null,
            "dsFilterId": null,
            "additionalDataSources": null,
            "additionalDataKeys": [
              {
                "name": "speed",
                "type": "timeseries",
                "label": "speed",
                "color": "#2196f3",
                "settings": {},
                "_hash": 0.5824171808130817
              },
              {
                "name": "status",
                "type": "timeseries",
                "label": "status",
                "color": "#2196f3",
                "settings": {},
                "_hash": 0.3328366145838354
              }
            ],
            "label": {
              "show": true,
              "type": "pattern",
              "pattern": "<div style=\"position: relative; white-space: nowrap; text-align: center; font-size: 12px; top: 5px;\"><span style=\"border-radius: 10px; background-color: #fff; padding-left: 12px; padding-right: 12px; padding-top: 4px; padding-bottom: 4px;\">${entityName}</span></div>",
              "patternFunction": null
            },
            "tooltip": {
              "show": true,
              "type": "function",
              "pattern": "<b>${entityName}</b><br/><br/><b>Latitude:</b> ${latitude:7}<br/><b>Longitude:</b> ${longitude:7}<br/><b>End Time:</b> ${maxTime}<br/><b>Start Time:</b> ${minTime}",
              "patternFunction": "var speed = data['speed'];\nvar res;\nif (speed > 0) {\n  res = \"<b>${entityName}</b><br/><b>Speed:</b> \" + String(speed) + ' km/h'\n} else {\n  res = \"<b>${entityName}</b><br/><b>Status:</b> At the stop\"\n}\nreturn res;",
              "trigger": "click",
              "autoclose": true,
              "offsetX": 0,
              "offsetY": -0.5,
              "tagActions": null
            },
            "click": {
              "type": "doNothing"
            },
            "groups": null,
            "xKey": {
              "name": "latitude",
              "label": "latitude",
              "type": "timeseries",
              "settings": {},
              "color": "#2196f3"
            },
            "yKey": {
              "name": "longitude",
              "label": "longitude",
              "type": "timeseries",
              "settings": {},
              "color": "#2196f3"
            },
            "showMarker": true,
            "markerType": "shape",
            "markerShape": {
              "size": 34,
              "color": {
                "type": "constant",
                "color": "#E89623",
                "rangeKey": null,
                "range": null,
                "colorFunction": null
              },
              "shape": "tripMarkerShape10"
            },
            "markerIcon": {
              "iconContainer": "tripIconContainer1",
              "icon": "arrow_forward",
              "size": 48,
              "color": {
                "type": "constant",
                "color": "#307FE5"
              }
            },
            "markerImage": {
              "type": "image",
              "image": "/assets/markers/tripShape2.svg",
              "imageSize": 34
            },
            "markerOffsetX": 0.5,
            "markerOffsetY": 0.5,
            "rotateMarker": true,
            "offsetAngle": 0,
            "showPath": true,
            "pathStrokeWeight": 4,
            "pathStrokeColor": {
              "type": "constant",
              "color": "#307FE5"
            },
            "usePathDecorator": false,
            "pathDecoratorSymbol": "arrowHead",
            "pathDecoratorSymbolSize": 10,
            "pathDecoratorSymbolColor": "#307FE5",
            "pathDecoratorOffset": 20,
            "pathEndDecoratorOffset": 20,
            "pathDecoratorRepeat": 20,
            "showPoints": false,
            "pointSize": 10,
            "pointColor": {
              "type": "constant",
              "color": "#307FE5"
            },
            "pointTooltip": {
              "show": true,
              "trigger": "click",
              "autoclose": true,
              "type": "pattern",
              "pattern": "<b>${entityName}</b><br/><br/><b>Latitude:</b> ${latitude:7}<br/><b>Longitude:</b> ${longitude:7}<br/><b>End Time:</b> ${maxTime}<br/><b>Start Time:</b> ${minTime}",
              "offsetX": 0,
              "offsetY": -1
            }
          }
        ],
        "markers": [],
        "polygons": [],
        "circles": [],
        "additionalDataSources": [],
        "controlsPosition": "topleft",
        "zoomActions": [
          "scroll",
          "doubleClick",
          "controlButtons"
        ],
        "scales": [],
        "dragModeButton": false,
        "fitMapBounds": true,
        "useDefaultCenterPosition": false,
        "defaultCenterPosition": "0,0",
        "defaultZoomLevel": null,
        "minZoomLevel": 16,
        "mapPageSize": 16384,
        "mapActionButtons": [],
        "tripTimeline": {
          "showTimelineControl": false,
          "timeStep": 1000,
          "speedOptions": [
            1,
            5,
            10,
            15,
            25
          ],
          "showTimestamp": true,
          "timestampFormat": {
            "format": "yyyy-MM-dd HH:mm:ss",
            "lastUpdateAgo": false,
            "custom": false,
            "auto": false
          },
          "snapToRealLocation": false,
          "locationSnapFilter": "return true;"
        },
        "background": {
          "type": "color",
          "color": "#fff",
          "overlay": {
            "enabled": false,
            "color": "rgba(255,255,255,0.72)",
            "blur": 3
          }
        },
        "padding": "8px",
        "imageSource": null
      },
      "title": "Route Map",
      "dropShadow": true,
      "enableFullscreen": true,
      "titleStyle": null,
      "mobileHeight": null,
      "configMode": "basic",
      "actions": {},
      "showTitleIcon": false,
      "titleIcon": "assistant_navigation",
      "iconColor": "#1F6BDD",
      "useDashboardTimewindow": false,
      "displayTimewindow": false,
      "titleFont": {
        "size": null,
        "sizeUnit": "px",
        "family": null,
        "weight": null,
        "style": null,
        "lineHeight": null
      },
      "titleColor": null,
      "titleTooltip": "",
      "widgetStyle": {},
      "widgetCss": "",
      "pageSize": 1024,
      "units": "",
      "decimals": null,
      "noDataDisplayMessage": "",
      "timewindowStyle": {
        "showIcon": false,
        "iconSize": "24px",
        "icon": null,
        "iconPosition": "left",
        "font": {
          "size": 12,
          "sizeUnit": "px",
          "family": "Roboto",
          "weight": "400",
          "style": "normal",
          "lineHeight": "16px"
        },
        "color": "rgba(0, 0, 0, 0.38)",
        "displayTypePrefix": true
      },
      "margin": "0px",
      "borderRadius": "0px",
      "iconSize": "24px"
    },
    "row": 0,
    "col": 0,
    "id": "8da32410-a6b7-1dec-7ff5-fba1590f012a"
  },
  "aliasesInfo": {
    "datasourceAliases": {},
    "targetDeviceAlias": null
  },
  "filtersInfo": {
    "datasourceFilters": {}
  },
  "originalSize": {
    "sizeX": 24,
    "sizeY": 9
  },
  "originalColumns": 24,
  "widgetExportInfo": {
    "trips": {}
  }
}
