Map Dashboard

Map Dashboard

Let’s take a look at the code.

You can find the checked in file in the Hubstream solution here …

Hubstream.Intelligence.Server.Frontend/Data/Home/mapdashboardlayout.json

JSON
{
  "PageName": "Map Dashboard",
  "Tiles": [
    {
      "SubHeaderLabel": "Dashboard",
      "SubHeader": "null",
      "Header": "null",
      "HeaderLabel": "Map",
      "TileType": "LabelCard",
      "PositionSize": [ 0, 0, 20, 2 ],
      "IsFixed": true,
      "IsResizable": false
    },
    {
      "MenuItems": [
        {
          "Icon": "th",
          "Name": "User",
          "Caption": "User Dashboard"
        },
        {
          "Icon": "th",
          "Name": "Team",
          "Caption": "Team Dashboard"
        },
		{
          "Icon": "th",
          "Name": "Map",
          "Caption": "Map Dashboard"
        }
      ],
      "TileType": "SideMenu",
      "IsFixed": true,
      "IsResizable": false
    },
    {
      "TileType": "LayoutContainer",
      "ContainerBorder": "3px 0 0 3px",
      "IsFixed": true,
      "PositionSize": [ 10, 2, 10, -1 ],
      "Tiles": [
        {
          "Header": "Action",
          "TileType": "OptionsMenu",
          "PositionSize": [ 15, 1, 5, 2 ],
          "IsFixed": true,
          "ActionMenus": [
            {
              "Tooltip": "Open List",
              "Icon": "share",
              "Action": "openlistpage"
            },
            {
              "Tooltip": "Add new Investigation",
              "Icon": "plus",
              "Action": "addnewInvestigation",
              "AccessInfo": "EntityAccessInfo",
              "AccessInfoAction": "Add"
            },
            {
              "Tooltip": "Add To Investigation",
              "Icon": "plus-sign",
              "Action": "addtoOnlineIdentity",
              "AccessInfo": "EntityAccessInfo",
              "AccessInfoAction": "Add",
			  "Source" :"data.TeamDashboardOnlineIdentityView"
            }
          ]
        },
        {
          "TileType": "MiniTable",
          "PositionSize": [ 0, 3, 20, 15 ],
          "DynamicHeightOffset": 302,
          "EntityName":  "OnlineIdentity",
          "IsFixed": true,
          "DataAPI": "api/v2/tbl/OnlineIdentity/dashboard/Organization/list",
          "RowCountAPI": "tbl/OnlineIdentity/dashboard/Organization/count",
		  "ViewName": "data.TeamDashboardOnlineIdentityView",
		  "SortFields" :[
		  {
			  "FieldName" : "DateUpdated",
			  "IsSortDescending" : false
		  }
		  ],
          "OutputColumns": [
            {
              "FieldName": "OnlineIdentityID",
              "TargetFieldName": "ID"
            },
            {
              "FieldName": "Name"
            },
            {
              "FieldName": "TimePeriodName"
            },
            {
              "FieldName": "TimePeriodColor",
              "TargetFieldName": "ItemColor"
            },
            {
              "FieldName": "DateUpdated",
              "FormatType": "DeltaDate",
              "TargetFieldName": "DateUpdatedText"
            }
          ]
        }
      ]
    },
    {
      "TileType": "LayoutContainer",
      "IsFixed": true,
      "PositionSize": [ 0, 2, 10, 20 ],
      "Tiles": [
        {
          "TileType": "Chart",
          "ChartType": "MapWidget",
          "PositionSize": [ 0, 0, 20, -1 ],
          "IsFixed": true,
          "DataAPI": "tbl/OnlineIdentity/dashboard/Organization/list?pageNumber=1&pageSize=100",
          "FieldName": "Location",
		  "ViewName": "data.TeamDashboardOnlineIdentityView",
          "OutputColumns": [
            {
              "FieldName": "Latitude",
              "TargetFieldName": "Lat"
            },
            {
              "FieldName": "Longitude",
              "TargetFieldName": "Long"
            },
            {
              "FieldName": "Name"
            },
            {
              "FieldName": "TimePeriodColor",
              "TargetFieldName": "Color"
            }			
          ]
        }
      ]
    }
  ]
}