{ "id": "1034", "displayName": "LABus", "shortDisplayName": null, "description": null, "connectionString": "url=https://geoeventsample1.esri.com:6443/arcgis/rest/services/LABus/StreamServer", "copyright": null, "hasAttributionData": false, "serviceType": "Stream", "serviceFunction": "Operational", "baseMapGroup": null, "baseMapGroupIndex": "", "baseMapGroupIsMutuallyExclusive": false, "opacity": 1, "visible": true, "initiallyVisible": true, "drawingBehavior": "StreamLayer", "iconUri": null, "includeInLayerList": false, "defaultAllowSymbolization": true, "isExpanded": true, "updateInterval": null, "dataProvider": null, "disableClientCaching": null, "serviceTag": "07Hr5ehMMN+7rxyEtsr6c9c954Hw+RKSk6TkaXEKyGQ=", "identifiable": null, "includeMosaicDatasetValues": null, "includeCatalogItems": null, "startTime": null, "endTime": null, "serverVersion": "10.8", "failureAction": "Warn", "failureTimeout": null, "requestEncoding": null, "supportsDynamicLayers": false, "hasLayerCatalog": false, "format": "Png8", "streamSettings": { "definitionExpression": "route_id = '720' OR route_id = '108' OR route_id = '4' OR route_id = '115' OR route_id = '81' OR route_id = '60' OR route_id = '901' OR route_id = '18' OR route_id = '2' OR route_id = '16' OR route_id = '40' OR route_id = '204'", "maxAge": 10, "maxDisplayCount": null, "maxTrackPoints": null }, "themeSettings": [ { "themeID": "0" }, { "themeID": "1" }, { "themeID": "2" } ], "layerHyperlinks": [], "tileInfo": {}, "instantSearch": false, "layers": [ { "id": "0", "name": "Stream Layer", "nativeID": "0", "displayName": "Buses", "description": null, "defaultVisibility": true, "featureType": "Point", "type": "FeatureLayer", "maxScale": 0, "minScale": 0, "visible": true, "initiallyVisible": true, "showMapTips": true, "identifiable": true, "queryable": true, "searchable": false, "supportsIdentify": false, "supportsQuery": false, "canCopyFeature": false, "snappable": false, "snappingEnabled": false, "hasAttachments": false, "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, "featureLabel": "Route {route_id} ", "featureDescription": "Heading {Direction}
Reported at {received_time}
", "featureLongDescription": null, "displayField": "id", "primaryKeyField": "", "parentLayerId": null, "subLayerIds": [], "hasReports": false, "hasDataLinks": false, "fields": [ { "displayName": "seconds_since_report", "name": "seconds_since_report", "alias": "seconds_since_report", "visible": true, "dataType": "Double", "searchable": true }, { "displayName": "run_id", "name": "run_id", "alias": "run_id", "visible": true, "dataType": "String", "searchable": true }, { "displayName": "longitude", "name": "longitude", "alias": "longitude", "visible": true, "dataType": "Double", "searchable": true }, { "displayName": "heading", "name": "heading", "alias": "heading", "visible": true, "dataType": "Double", "searchable": true }, { "displayName": "route_id", "name": "route_id", "alias": "route_id", "visible": true, "dataType": "String", "searchable": true }, { "displayName": "predictable", "name": "predictable", "alias": "predictable", "visible": true, "dataType": "String", "searchable": true }, { "displayName": "latitude", "name": "latitude", "alias": "latitude", "visible": true, "dataType": "Double", "searchable": true }, { "displayName": "id", "name": "id", "alias": "id", "visible": true, "dataType": "String", "searchable": true }, { "displayName": "received_time", "name": "received_time", "alias": "received_time", "visible": true, "dataType": "DateTime", "searchable": true } ], "featureHyperlinks": [], "layerHyperlinks": [], "arcadeExpressions": [ { "expression": "var directions = [\"N\",\"NNE\",\"NE\",\"ENE\",\"E\",\"ESE\", \"SE\", \"SSE\",\"S\",\"SSW\",\"SW\",\"WSW\",\"W\",\"WNW\",\"NW\",\"NNW\"];\r\n\r\nfunction degreesToDirection(deg) {\r\n var val = Floor((deg/22.5) + 0.5);\r\n return directions[(val % 16)];\r\n}\r\n\r\nreturn degreesToDirection($feature.heading);", "token": "Direction" } ], "isDynamic": false, "dynamicDefinition": null, "themeSettings": [ { "themeID": "1", "visible": true } ], "tileLevelLimits": [] } ], "tables": [], "spatialReference": { "wkid": 4326 }, "properties": [], "extensions": [] }