{ "layers": [ { "currentVersion": 11.2, "cimVersion": "3.2.0", "id": 0, "name": "Street Sweeping Schedule", "type": "Feature Layer", "description": "cotgispub.DBO.StreetSweepAreas", "geometryType": "esriGeometryPolygon", "sourceSpatialReference": { "wkid": 102677, "latestWkid": 3419, "xyTolerance": 0.003280833333333333, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -17463800, "falseY": -46132600, "xyUnits": 3048.0060960121914, "falseZ": 0, "zUnits": 1, "falseM": 0, "mUnits": 1 }, "copyrightText": "", "parentLayer": null, "subLayers": [], "minScale": 0, "maxScale": 0, "referenceScale": 0.0, "drawingInfo": { "renderer": { "type": "uniqueValue", "valueExpression": "var sOne = $feature.Schedule_1;\nvar sTwo = $feature.Schedule_2;\nvar sThree = $feature.Schedule_3;\nvar sFour = $feature.Schedule_4;\n\nfunction getText(z,m){\n var t = [];\n var j = 0;\n for (var i in z){\n t[i] = Decode(z[i],\n \"January\",0,\n \"February\",1,\n \"March\",2,\n \"April\",3,\n \"May\",4,\n \"June\",5,\n \"July\",6,\n \"August\",7,\n \"September\",8,\n \"October\",9,\n \"November\",10,\n \"December\",11,\n null);\n }\n var class = When(indexOf(t,m)!=-1 && indexOf(t,m-1)!=-1,\"Street sweeping in progress or finished last month\",\n indexOf(t,m)!=-1 && indexOf(t,m+1)!=-1,\"Street sweeping in progress or starting next month\",\n indexOf(t,m)!=-1 && indexOf(t,m-1)==-1 && indexOf(t,m+1)==-1,\"Street sweeping in progress\",\n indexOf(t,m)==-1 && indexOf(t,m+1)!=-1,\"Street sweeping scheduled for next month\",\n indexOf(t,m)==-1 && indexOf(t,m+2)!=-1,\"Street sweeping scheduled in 2 months\",\n indexOf(t,m)==-1 && indexOf(t,m+3)!=-1,\"Street sweeping scheduled in 3 months\",\n indexOf(t,m)==-1 && indexOf(t,m+4)!=-1,\"Street sweeping scheduled in 4 months\",\n indexOf(t,m)==-1 && indexOf(t,m+5)!=-1,\"Street sweeping scheduled in 5 months\",\n indexOf(t,m)==-1 && indexOf(t,m+6)!=-1,\"Street sweeping scheduled in 6 months\",\n indexOf(t,m)==-1 && indexOf(t,m+7)!=-1,\"Street sweeping scheduled in 7 months\",\n indexOf(t,m)==-1 && indexOf(t,m+8)!=-1,\"Street sweeping scheduled in 8 months\",\n indexOf(t,m)==-1 && indexOf(t,m-6)!=-1,\"Street sweeping scheduled in 6 months\",\n indexOf(t,m)==-1 && indexOf(t,m-5)!=-1,\"Street sweeping scheduled in 7 months\",\n indexOf(t,m)==-1 && indexOf(t,m-4)!=-1,\"Street sweeping scheduled in 8 months\",\n \"Street Sweeping handled by Downtown Topeka Inc.\");\n \n return class;\n}\n\nvar sched = Concatenate([sOne,sTwo,sThree,sFour],\"/\");\nvar monthNo = Month(Today());\nvar r = getText(split(sched,\"/\"),monthNO);\n\nreturn r;", "valueExpressionTitle": "Street Sweeping Schedule", "defaultSymbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 130, 130, 130, 255 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 110, 110, 110, 255 ], "width": 0.7 } }, "defaultLabel": "Street Sweeping scheduled more than 3 months out", "uniqueValueGroups": [ { "heading": "", "classes": [ { "label": "Street sweeping in progress", "description": "Street sweeping in progress", "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 0, 115, 76, 255 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 110, 110, 110, 255 ], "width": 0.7 } }, "values": [ [ "Street sweeping in progress" ] ] }, { "label": "Street sweeping in progress and/or finished last month", "description": "Street sweeping in progress and/or finished last month", "symbol": { "type": "esriSFS", "style": "esriSFSBackwardDiagonal", "color": [ 0, 0, 0, 255 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 110, 110, 110, 255 ], "width": 1 } }, "values": [ [ "Street sweeping in progress or finished last month" ] ] }, { "label": "Street sweeping in progress and/or starting next month", "description": "Street sweeping in progress and/or starting next month", "symbol": { "type": "esriSFS", "style": "esriSFSBackwardDiagonal", "color": [ 166, 216, 84, 255 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 110, 110, 110, 255 ], "width": 0.7 } }, "values": [ [ "Street sweeping in progress or starting next month" ] ] }, { "label": "Street sweeping scheduled for next month", "description": "Street sweeping scheduled for next month", "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 166, 216, 84, 255 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 110, 110, 110, 255 ], "width": 0.7 } }, "values": [ [ "Street sweeping scheduled for next month" ] ] }, { "label": "Street sweeping scheduled in 2 months", "description": "Street sweeping scheduled in 2 months", "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 255, 255, 115, 255 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 110, 110, 110, 255 ], "width": 0.7 } }, "values": [ [ "Street sweeping scheduled in 2 months" ] ] }, { "label": "Street sweeping scheduled in 3 months", "description": "Street sweeping scheduled in 3 months", "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 255, 170, 0, 255 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 110, 110, 110, 255 ], "width": 0.7 } }, "values": [ [ "Street sweeping scheduled in 3 months" ] ] } ] } ], "uniqueValueInfos": [ { "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 0, 115, 76, 255 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 110, 110, 110, 255 ], "width": 0.7 } }, "value": "Street sweeping in progress", "label": "Street sweeping in progress" }, { "symbol": { "type": "esriSFS", "style": "esriSFSBackwardDiagonal", "color": [ 0, 0, 0, 255 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 110, 110, 110, 255 ], "width": 1 } }, "value": "Street sweeping in progress or finished last month", "label": "Street sweeping in progress and/or finished last month" }, { "symbol": { "type": "esriSFS", "style": "esriSFSBackwardDiagonal", "color": [ 166, 216, 84, 255 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 110, 110, 110, 255 ], "width": 0.7 } }, "value": "Street sweeping in progress or starting next month", "label": "Street sweeping in progress and/or starting next month" }, { "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 166, 216, 84, 255 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 110, 110, 110, 255 ], "width": 0.7 } }, "value": "Street sweeping scheduled for next month", "label": "Street sweeping scheduled for next month" }, { "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 255, 255, 115, 255 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 110, 110, 110, 255 ], "width": 0.7 } }, "value": "Street sweeping scheduled in 2 months", "label": "Street sweeping scheduled in 2 months" }, { "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 255, 170, 0, 255 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 110, 110, 110, 255 ], "width": 0.7 } }, "value": "Street sweeping scheduled in 3 months", "label": "Street sweeping scheduled in 3 months" } ], "fieldDelimiter": "," }, "scaleSymbols": true, "transparency": 45, "labelingInfo": [ { "labelExpressionInfo": {"expression": "$feature.SWAREANUM"}, "labelPlacement": "esriServerPolygonPlacementAlwaysHorizontal", "multiPart": "labelPerPart", "allowOverrun": false, "deconflictionStrategy": "dynamic", "repeatLabel": false, "useClippedGeometry": false, "allowOverlapOfFeatureInterior": "avoid", "stackLabel": true, "stackAlignment": "dynamic", "removeDuplicates": "all", "removeDuplicatesDistance": 0, "stackRowLength": 24, "useCodedValues": true, "maxScale": 0, "minScale": 0, "name": "Class 1", "priority": -1, "symbol": { "type": "esriTS", "color": [ 255, 255, 255, 255 ], "backgroundColor": [ 0, 0, 0, 191 ], "borderLineColor": null, "borderLineSize": null, "verticalAlignment": "baseline", "horizontalAlignment": "left", "rightToLeft": false, "angle": 0, "xoffset": 0, "yoffset": 0, "kerning": true, "haloColor": null, "haloSize": null, "font": { "family": "Corbel", "size": 11, "style": "normal", "weight": "bold", "decoration": "none" } } } ] }, "defaultVisibility": true, "extent": { "xmin": 1933732.6795945875, "ymin": 237965.21373659372, "xmax": 1991499.7687845863, "ymax": 291072.9549618438, "spatialReference": { "wkid": 102677, "latestWkid": 3419, "xyTolerance": 0.003280833333333333, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -120389200, "falseY": -95723100, "xyUnits": 3048.0060960121928, "falseZ": -100000, "zUnits": 10000, "falseM": -100000, "mUnits": 10000 } }, "hasAttachments": false, "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText", "displayField": "Sweep_Type", "typeIdField": null, "subtypeFieldName": null, "subtypeField": null, "defaultSubtypeCode": null, "fields": [ { "name": "OBJECTID", "type": "esriFieldTypeOID", "alias": "OBJECTID", "domain": null }, { "name": "Sweep_Type", "type": "esriFieldTypeString", "alias": "Sweep_Type", "length": 50, "domain": null }, { "name": "Schedule_1", "type": "esriFieldTypeString", "alias": "Schedule_1", "length": 50, "domain": null }, { "name": "Schedule_2", "type": "esriFieldTypeString", "alias": "Schedule_2", "length": 50, "domain": null }, { "name": "Schedule_3", "type": "esriFieldTypeString", "alias": "Schedule_3", "length": 50, "domain": null }, { "name": "Schedule_4", "type": "esriFieldTypeString", "alias": "Schedule_4", "length": 50, "domain": null }, { "name": "DESCRIPT", "type": "esriFieldTypeString", "alias": "DESCRIPT", "length": 255, "domain": null }, { "name": "SWAREANUM", "type": "esriFieldTypeString", "alias": "Sweep Area Number", "length": 5, "domain": null }, { "name": "CREATEDDATE", "type": "esriFieldTypeDate", "alias": "Created Date", "length": 8, "domain": null }, { "name": "LASTEDITED", "type": "esriFieldTypeDate", "alias": "Last Edited Date", "length": 8, "domain": null }, { "name": "LASTEDITOR", "type": "esriFieldTypeString", "alias": "Last Editor", "length": 20, "domain": null }, { "name": "GlobalID", "type": "esriFieldTypeGlobalID", "alias": "GlobalID", "length": 38, "domain": null }, { "name": "Shape", "type": "esriFieldTypeGeometry", "alias": "Shape", "domain": null }, { "name": "Shape.STArea()", "type": "esriFieldTypeDouble", "alias": "Shape.STArea()", "domain": null }, { "name": "Shape.STLength()", "type": "esriFieldTypeDouble", "alias": "Shape.STLength()", "domain": null } ], "geometryField": { "name": "Shape", "type": "esriFieldTypeGeometry", "alias": "Shape" }, "indexes": [ { "name": "R105_pk", "fields": "OBJECTID", "isAscending": true, "isUnique": true, "description": "" }, { "name": "UUID_105", "fields": "GlobalID", "isAscending": true, "isUnique": false, "description": "" }, { "name": "S45_idx", "fields": "Shape", "isAscending": true, "isUnique": true, "description": "" } ], "subtypes": [], "relationships": [], "canModifyLayer": true, "canScaleSymbols": false, "hasLabels": true, "capabilities": "Map,Query,Data", "maxRecordCount": 2000, "supportsStatistics": true, "supportsExceedsLimitStatistics": true, "supportsAdvancedQueries": true, "supportedQueryFormats": "JSON, geoJSON, PBF", "isDataVersioned": false, "ownershipBasedAccessControlForFeatures": {"allowOthersToQuery": true}, "useStandardizedQueries": true, "supportedSpatialRelationships": [ "esriSpatialRelIntersects", "esriSpatialRelContains", "esriSpatialRelCrosses", "esriSpatialRelEnvelopeIntersects", "esriSpatialRelIndexIntersects", "esriSpatialRelOverlaps", "esriSpatialRelTouches", "esriSpatialRelWithin", "esriSpatialRelRelation" ], "advancedQueryCapabilities": { "useStandardizedQueries": true, "supportsStatistics": true, "supportsPercentileStatistics": true, "supportsHavingClause": true, "supportsOrderBy": true, "supportsDistinct": true, "supportsCountDistinct": true, "supportsAdvancedQueryRelated": true, "supportsQueryRelatedPagination": true, "supportsPagination": true, "supportsLod": false, "supportsQueryWithLodSR": false, "supportsTrueCurve": true, "supportsQueryWithDatumTransformation": true, "supportsReturningQueryExtent": true, "supportsQueryWithDistance": true, "supportsSqlExpression": true, "supportsTimeRelation": true, "supportsSqlFormat": false, "supportsQueryAnalytic": true, "supportsCurrentUserQueries": true }, "supportsDatumTransformation": true, "advancedQueryAnalyticCapabilities": { "supportsLinearRegression": true, "supportsAsync": false, "supportsPercentileAnalytic": true }, "dateFieldsTimeReference": null, "preferredTimeReference": null, "datesInUnknownTimezone": false, "hasGeometryProperties": true, "geometryProperties": { "shapeAreaFieldName": "Shape.STArea()", "shapeLengthFieldName": "Shape.STLength()", "units": "esriFeet", "mapUnits": {"uwkid": 9003} }, "hasMetadata": true, "isDataArchived": false, "archivingInfo": { "supportsQueryWithHistoricMoment": false, "startArchivingMoment": -1 }, "supportsCoordinatesQuantization": true, "supportsDynamicLegends": true, "serviceItemId": "fa95336d8be44b1a874f37e2eb2b1086" } ], "tables": [] }