{ "layers": [ { "id": "0", "name": "NoiseWalls", "nativeID": "0", "displayName": "Noise Walls - new!", "description": "", "defaultVisibility": true, "featureType": "Line", "type": "DynamicFeatureLayer", "maxScale": 0, "minScale": 0, "visible": true, "initiallyVisible": false, "showMapTips": true, "identifiable": true, "queryable": true, "searchable": true, "supportsIdentify": true, "supportsQuery": true, "canCopyFeature": true, "snappable": true, "snappingEnabled": true, "hasAttachments": true, "featureZoomFactor": null, "featureZoomScale": null, "featureBorderColor": null, "featureBorderWidth": null, "featureFillColor": null, "showFeatureHyperlinks": "ShowAll", "iconUri": null, "includeInLayerList": true, "includeInLegend": true, "allowSymbolization": true, "legendUrl": null, "styleName": null, "drawIndex": null, "canToggleLabels": false, "showLabels": true, "dataProvider": null, "timeZoneId": "Etc/UTC", "featureLabel": "{ASSETTYPE} {UnitID}", "featureDescription": "{MapTipBody}{Comment}\r\n{Attachments}", "featureLongDescription": null, "displayField": "Location", "primaryKeyField": "OBJECTID", "fullExtent": { "xmin": -8883155.2299479973, "ymin": 5388204.922294152, "xmax": -8857318.2374992352, "ymax": 5424666.9169933489, "spatialReference": { "wkid": 102100 } }, "parentLayerId": null, "subLayerIds": [], "hasReports": false, "hasDataLinks": false, "fields": [ { "displayName": "OBJECTID", "name": "OBJECTID", "alias": "OBJECTID", "visible": true, "dataType": "Int32", "searchable": true }, { "displayName": "GlobalID", "name": "GlobalID", "alias": "GlobalID", "visible": true, "dataType": "Guid", "searchable": true }, { "displayName": "Location", "name": "Location", "alias": "Location", "visible": true, "dataType": "String", "searchable": true }, { "displayName": "Asset Class", "name": "COMPCLASS", "alias": "Asset Class", "visible": true, "dataType": "String", "searchable": true }, { "displayName": "Height", "name": "Height", "alias": "Height", "visible": true, "dataType": "Double", "searchable": true }, { "displayName": "Length", "name": "Length", "alias": "Length", "visible": true, "dataType": "Double", "searchable": true }, { "displayName": "Material", "name": "MATERIAL", "alias": "Material", "visible": true, "dataType": "String", "searchable": true }, { "displayName": "Owner", "name": "Owner", "alias": "Owner", "visible": true, "dataType": "String", "searchable": true }, { "displayName": "Ownership - Internal", "name": "OWNINT", "alias": "Ownership - Internal", "visible": true, "dataType": "String", "searchable": true }, { "displayName": "Ownership - External", "name": "OWNEXT", "alias": "Ownership - External", "visible": true, "dataType": "String", "searchable": true }, { "displayName": "Asset Management Responsibility", "name": "ASSETMGMTRESP", "alias": "Asset Management Responsibility", "visible": true, "dataType": "String", "searchable": true }, { "displayName": "Maintenance Responsibility", "name": "MAINTRESP", "alias": "Maintenance Responsibility", "visible": true, "dataType": "String", "searchable": true }, { "displayName": "Condition Rating", "name": "COND", "alias": "Condition Rating", "visible": true, "dataType": "Int16", "searchable": true }, { "displayName": "Inspection Date", "name": "INSPDATE", "alias": "Inspection Date", "visible": true, "dataType": "DateTime", "searchable": true }, { "displayName": "Condition State", "name": "CONDSTATE", "alias": "Condition State", "visible": true, "dataType": "String", "searchable": true }, { "displayName": "Current Age", "name": "CURRENTAGE", "alias": "Current Age", "visible": true, "dataType": "Int16", "searchable": true }, { "displayName": "Estimated Useful Life", "name": "ESTUSELIFE", "alias": "Estimated Useful Life", "visible": true, "dataType": "Int16", "searchable": true }, { "displayName": "Remaining Useful Life", "name": "REMUSELIFE", "alias": "Remaining Useful Life", "visible": true, "dataType": "Int16", "searchable": true }, { "displayName": "In-Service/Acquisition Date", "name": "ACQUISTDATE", "alias": "In-Service/Acquisition Date", "visible": true, "dataType": "DateTime", "searchable": true }, { "displayName": "Installation Date", "name": "INSTDATE", "alias": "Installation Date", "visible": true, "dataType": "DateTime", "searchable": true }, { "displayName": "Replacement Cost Date", "name": "REPLACECOSTDATE", "alias": "Replacement Cost Date", "visible": true, "dataType": "DateTime", "searchable": true }, { "displayName": "Replacement Cost Method", "name": "REPLACECOSTMTD", "alias": "Replacement Cost Method", "visible": true, "dataType": "String", "searchable": true }, { "displayName": "Road Class", "name": "ROADCLASS", "alias": "Road Class", "visible": true, "dataType": "String", "searchable": true }, { "displayName": "WARD", "name": "WARD", "alias": "WARD", "visible": true, "dataType": "String", "searchable": true }, { "displayName": "ZAREA", "name": "ZAREA", "alias": "ZAREA", "visible": true, "dataType": "String", "searchable": true }, { "displayName": "Data Validation", "name": "DATAVALIDATION", "alias": "Data Validation", "visible": true, "dataType": "String", "searchable": true }, { "displayName": "last_edited_date", "name": "last_edited_date", "alias": "last_edited_date", "visible": true, "dataType": "DateTime", "searchable": true }, { "displayName": "last_edited_user", "name": "last_edited_user", "alias": "last_edited_user", "visible": true, "dataType": "String", "searchable": true }, { "displayName": "created_date", "name": "created_date", "alias": "created_date", "visible": true, "dataType": "DateTime", "searchable": true }, { "displayName": "created_user", "name": "created_user", "alias": "created_user", "visible": true, "dataType": "String", "searchable": true }, { "displayName": "Comments", "name": "Comments", "alias": "Comments", "visible": true, "dataType": "String", "searchable": true }, { "displayName": "Status", "name": "SERVESTAT", "alias": "Status", "visible": true, "dataType": "String", "searchable": true }, { "displayName": "Unit ID", "name": "UnitID", "alias": "Unit ID", "visible": true, "dataType": "String", "searchable": true }, { "displayName": "Installation Cost", "name": "INSTCOST", "alias": "Installation Cost", "visible": true, "dataType": "Double", "searchable": true }, { "displayName": "Replacement Cost", "name": "REPLACECOST", "alias": "Replacement Cost", "visible": true, "dataType": "Double", "searchable": true }, { "displayName": "Colour", "name": "COLOUR", "alias": "Colour", "visible": true, "dataType": "String", "searchable": true }, { "displayName": "Description", "name": "DESCRIPT", "alias": "Description", "visible": true, "dataType": "String", "searchable": true }, { "displayName": "Post Material", "name": "MOUNTMATERIAL", "alias": "Post Material", "visible": true, "dataType": "String", "searchable": true }, { "displayName": "Noise Wall Purpose", "name": "PURPOSE", "alias": "Noise Wall Purpose", "visible": true, "dataType": "String", "searchable": true }, { "displayName": "Repair Required", "name": "REPAIRREQ", "alias": "Repair Required", "visible": true, "dataType": "String", "searchable": true }, { "displayName": "Inspection Comments", "name": "INSPCOMMENTS", "alias": "Inspection Comments", "visible": true, "dataType": "String", "searchable": true }, { "displayName": "Requires City Inspection", "name": "REQCITYINSP", "alias": "Requires City Inspection", "visible": true, "dataType": "String", "searchable": true }, { "displayName": "Calculated Condition Score", "name": "CONDSCORE", "alias": "Calculated Condition Score", "visible": true, "dataType": "String", "searchable": true }, { "displayName": "Condition (LiDAR)", "name": "LIDARCOND", "alias": "Condition (LiDAR)", "visible": true, "dataType": "String", "searchable": true }, { "displayName": "Manufacturer", "name": "MANUFACT", "alias": "Manufacturer", "visible": true, "dataType": "String", "searchable": true }, { "displayName": "Associated Assets", "name": "ASSOCASSETS", "alias": "Associated Assets", "visible": true, "dataType": "String", "searchable": true }, { "displayName": "ServiceArea", "name": "ServiceArea", "alias": "ServiceArea", "visible": true, "dataType": "String", "searchable": true }, { "displayName": "Asset Type", "name": "COMPTYPE", "alias": "Asset Type", "visible": true, "dataType": "Int16", "searchable": true }, { "displayName": "ASSETTYPE", "name": "ASSETTYPE", "alias": "ASSETTYPE", "visible": true, "dataType": "String", "searchable": true }, { "displayName": "XCOORD", "name": "XCOORD", "alias": "XCOORD", "visible": true, "dataType": "Double", "searchable": true }, { "displayName": "YCOORD", "name": "YCOORD", "alias": "YCOORD", "visible": true, "dataType": "Double", "searchable": true }, { "displayName": "COMPKEY", "name": "COMPKEY", "alias": "COMPKEY", "visible": true, "dataType": "Int32", "searchable": true }, { "displayName": "EXPIRYDATE", "name": "EXPIRYDATE", "alias": "EXPIRYDATE", "visible": true, "dataType": "DateTime", "searchable": true }, { "displayName": "MAINTOID", "name": "MAINTOID", "alias": "MAINTOID", "visible": true, "dataType": "String", "searchable": true }, { "displayName": "Shape", "name": "Shape", "alias": "Shape", "visible": true, "dataType": "Object", "searchable": true }, { "displayName": "Shape.STLength()", "name": "Shape.STLength()", "alias": "Shape.STLength()", "visible": true, "dataType": "Double", "searchable": true } ], "featureHyperlinks": [], "layerHyperlinks": [], "arcadeExpressions": [ { "expression": "var a = Attachments($feature);\r\nif (Count(a) > 0) {\r\n var server = \"https://gis.maps.mississauga.ca:6443/arcgis/rest/services/NoiseWalls/MapServer/0/\";\r\n var attachUrl;\r\n var result = \"<\" + \"span style='font-weight: bold; text-decoration-line: underline;'>Attachments:<\" + \"/span><\" + \"br/>\";\r\n for (var i in a) {\r\n attachUrl = server + $feature.OBJECTID + \"/attachments/\" + a[i].id;\r\n if (a[i][\"contenttype\"] == \"application/pdf\") {\r\n result += \"<\" + \"a href='\" + attachUrl + \"' target=_'blank'>\" + a[i].name + \"<\" + \"/a>\" + TextFormatting.NewLine;\r\n } else {\r\n result += \"<\" + \"a href='\" + attachUrl + \"' target=_'blank'><\" + \"img width='300' height='300' align='center' src='\" + attachUrl + \"'/><\" + \"/a>\" + TextFormatting.NewLine;\r\n result += \"<\" + \"span style='font-style: italic;'>Click to enlarge<\" + \"/span><\" + \"br/>\";\r\n }\r\n }\r\n return result;\r\n}", "token": "Attachments" }, { "expression": "return Text($feature.INSTDATE, 'MMM DD, YYYY')", "token": "Installed" }, { "expression": "return Text($feature.INSPDATE, 'MMM DD, YYYY')", "token": "Inspected" }, { "expression": "var string;\r\n\r\nstring = \"<\" + \"b>COMPKEY:<\" + \"/b> \" + $feature.COMPKEY + \"<\" + \"br/>\";\r\nstring += IIf(!IsEmpty($feature.DESCRIPT), \"<\" + \"b>Description:<\" + \"/b> \" + $feature.DESCRIPT + \"<\" + \"br/>\", \"\");\r\nstring += IIf(!IsEmpty($feature.Owner), \"<\" + \"b>Owner:<\" + \"/b> \" + DomainName($feature, 'Owner') + \"<\" + \"br/>\", \"\");\r\nstring += IIf(!IsEmpty($feature.INSTDATE), \"<\" + \"b>Installed:<\" + \"/b> \" + Text($feature.INSTDATE, 'MMM DD, YYYY') + \"<\" + \"br/>\", \"\");\r\nstring += IIf(!IsEmpty($feature.SERVESTAT), \"<\" + \"b>Status:<\" + \"/b> \" + $feature.SERVESTAT + \"<\" + \"br/>\", \"\");\r\nstring += \"<\" + \"br>\";\r\n\r\nstring += IIf(!IsEmpty($feature.Height), \"<\" + \"b>Height:<\" + \"/b> \" + $feature.Height + \" m<\" + \"br/>\", \"\");\r\nstring += IIf(!IsEmpty($feature.Length), \"<\" + \"b>Length:<\" + \"/b> \" + $feature.Length + \" m<\" + \"br/>\", \"\");\r\nstring += IIf(!IsEmpty($feature.MATERIAL), \"<\" + \"b>Material:<\" + \"/b> \" + DomainName($feature, 'MATERIAL') + \"<\" + \"br/>\", \"\");\r\nstring += IIf(!IsEmpty($feature.COLOUR), \"<\" + \"b>Colour:<\" + \"/b> \" + DomainName($feature, 'COLOUR') + \"<\" + \"br/>\", \"\");\r\nstring += \"<\" + \"br>\";\r\n\r\nstring += IIf(!IsEmpty($feature.CONDSTATE), \"<\" + \"b>Condition:<\" + \"/b> \" + DomainName($feature, 'CONDSTATE') + \"<\" + \"br/>\", \"\");\r\nstring += IIf(!IsEmpty($feature.INSPDATE), \"<\" + \"b>Last Inspected:<\" + \"/b> \" + Text($feature.INSTDATE, 'MMM DD, YYYY') + \"<\" + \"br/>\", \"\");\r\nstring += IIf(!IsEmpty($feature.INSPCOMMENTS), \"<\" + \"b>Inspection Comments:<\" + \"/b> \" + $feature.INSPCOMMENTS + \"<\" + \"br/>\", \"\");\r\nstring += IIf(!IsEmpty($feature.REQCITYINSP), \"<\" + \"b>New Inspection Required?<\" + \"/b> \" + $feature.REQCITYINSP + \"<\" + \"br/>\", \"\");\r\n\r\nreturn string;", "token": "MapTipBody" }, { "expression": "If (!IsEmpty($feature.Comments)) {\r\n var result = \"<\" + \"br><\" + \"span style='font-weight: bold; text-decoration-line: underline;'>Comments:<\" + \"/span>\" + \" \" + $feature.Comments + \"<\" + \"br/>\";\r\n return result;\r\n}", "token": "Comment" } ], "isDynamic": false, "dynamicDefinition": null, "themeSettings": [], "tileLevelLimits": [] } ] }