{ "currentVersion": 11.1, "cimVersion": "3.1.0", "id": 32, "name": "Closed Trails", "type": "Feature Layer", "description": "

Trails contains many attributes that provide functionality in other applications. Uses, seasonal closure, restrictions, trail source, surface and ADA access are some of the information contained in this layer.<\/SPAN><\/SPAN><\/P><\/DIV><\/DIV><\/DIV>", "geometryType": "esriGeometryPolyline", "sourceSpatialReference": { "wkid": 102654, "latestWkid": 2232, "xyTolerance": 0.003280833333333333, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -118767900, "falseY": -94525500, "xyUnits": 3048.0060960121928, "falseZ": -100000, "zUnits": 10000, "falseM": -100000, "mUnits": 10000 }, "copyrightText": "Pitkin County Open Space and Trails, USFS, Town of Snowmass Village Parks and Trails, City of Aspen Parks Department", "parentLayer": null, "subLayers": [], "minScale": 1155581.108577, "maxScale": 0, "referenceScale": 0.0, "drawingInfo": { "renderer": { "type": "uniqueValue", "valueExpression": "// Arcade Script for Trails Symbols\n// Dictionary translates months to usable integers\nvar monthIndices = {\n 'Jan': 0,\n 'January': 0,\n 'Feb': 1,\n 'February': 1,\n 'Mar': 2,\n 'March': 2,\n 'Apr': 3,\n 'April': 3,\n 'May': 4,\n 'Jun': 5,\n 'June': 5,\n 'Jul': 6,\n 'July': 6,\n 'Aug': 7,\n 'August': 7,\n 'Sep': 8,\n 'Sept': 8,\n 'September': 8,\n 'Oct': 9,\n 'October': 9,\n 'Nov': 10,\n 'November': 10,\n 'Dec': 11,\n 'December': 11,\n 'Memorial': 4 // Memorial Day, last Monday in May\n};\nvar thisMonth = Month(Today());\nvar thisDay = Day(Today());\n\n\n// Get month and day from date string e.g. \"Jun 21\"\nfunction parseDateString(dateString){\n var outMonth, outDay;\n\n // Handle funky date strings\n if ( Find('Memorial Day', dateString) != -1 ){\n // Handle \"Memorial Day\"\n outMonth = 4;\n var earliestMemDate = Date(Year(Today()), outMonth, 25);\n var earliestMemWeekday = Weekday(earliestMemDate);\n if (earliestMemWeekday == 0) {\n // June - 7 is a Sunday\n outDay = 26;\n } else if (earliestMemWeekday == 1) {\n // June - 7 is a Monday\n outDay = 25;\n } else {\n var dayDelta = 8 - earliestMemWeekday;\n outDay = 25 + dayDelta;\n }\n } else {\n outMonth = Split(dateString, ' ')[0];\n outDay = Split(dateString, ' ')[1];\n outMonth = monthIndices[outMonth];\n }\n \n return [outMonth, outDay];\n}\n\n\nvar openDate = Text($feature.openondate);\n// Get Opening & Closure (default year start/end)\nvar openMonth, openDay;\nif ( !IsEmpty($feature.openondate) ) {\n var parsedOpenDate = parseDateString($feature.openondate);\n openMonth = parsedOpenDate[0];\n openDay = parsedOpenDate[1];\n} else {\n openMonth = 0;\n openDay = 1;\n}\nvar closedDate = Text($feature.closedondate);\nvar closeMonth, closeDay;\nif ( !IsEmpty($feature.closedondate) ) {\n var parsedCloseDate = parseDateString($feature.closedondate);\n closeMonth = parsedCloseDate[0];\n closeDay = parsedCloseDate[1];\n} else {\n closeMonth = 12;\n closeDay = 31;\n}\n\n\n// Check opening values & add closures to symbology class\nvar symbolClass;\nif ( (thisMonth < openMonth) || (thisMonth == openMonth && thisDay < openDay) ) {\n // Too Early\n symbolClass = 'Closed';\n} else if ( (thisMonth > closeMonth) || (thisMonth == closeMonth && thisDay >= closeDay) ) {\n // Too Late\n symbolClass = 'Closed';\n} else if (\n (thisDay >= openDay || thisMonth >= openMonth) &&\n (thisDay < closeDay || thisMonth <= closeMonth)\n ) {\n // All Clear, do nothing\n} else {\n // Oops\n symbolClass = 'ERROR';\n}\n\nreturn symbolClass;\n", "valueExpressionTitle": "Custom", "uniqueValueInfos": [ { "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 210, 100, 45, 229 ], "width": 8 }, "value": "Closed", "label": "Closed" } ], "fieldDelimiter": ",", "authoringInfo": { "colorRamp": { "type": "multipart", "colorRamps": [ { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 190, 201, 113, 255 ], "toColor": [ 190, 201, 113, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 191, 94, 242, 255 ], "toColor": [ 191, 94, 242, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 83, 191, 237, 255 ], "toColor": [ 83, 191, 237, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 222, 87, 96, 255 ], "toColor": [ 222, 87, 96, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 126, 87, 130, 255 ], "toColor": [ 126, 87, 130, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 76, 217, 167, 255 ], "toColor": [ 76, 217, 167, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 84, 121, 232, 255 ], "toColor": [ 84, 121, 232, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 126, 242, 94, 255 ], "toColor": [ 126, 242, 94, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 171, 135, 114, 255 ], "toColor": [ 171, 135, 114, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 240, 154, 84, 255 ], "toColor": [ 240, 154, 84, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 72, 130, 124, 255 ], "toColor": [ 72, 130, 124, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 222, 95, 165, 255 ], "toColor": [ 222, 95, 165, 255 ] }, { "type": "algorithmic", "algorithm": "esriCIELabAlgorithm", "fromColor": [ 49, 130, 67, 255 ], "toColor": [ 49, 130, 67, 255 ] } ] } } }, "scaleSymbols": true, "transparency": 0, "labelingInfo": null }, "defaultVisibility": true, "extent": { "xmin": 2410280.944990635, "ymin": 1420099.631382808, "xmax": 2731406.518617466, "ymax": 1630337.6105123162, "spatialReference": { "wkid": 102654, "latestWkid": 2232, "xyTolerance": 0.003280833333333333, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -118767900, "falseY": -94525500, "xyUnits": 3048.0060960121928, "falseZ": -100000, "zUnits": 10000, "falseM": -100000, "mUnits": 10000 } }, "hasAttachments": false, "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText", "displayField": "name", "typeIdField": null, "subtypeFieldName": null, "subtypeField": null, "defaultSubtypeCode": null, "fields": [ { "name": "OBJECTID", "type": "esriFieldTypeOID", "alias": "OBJECTID", "domain": null }, { "name": "Shape", "type": "esriFieldTypeGeometry", "alias": "Shape", "domain": null }, { "name": "name", "type": "esriFieldTypeString", "alias": "Name", "length": 30, "domain": null }, { "name": "usfs_no", "type": "esriFieldTypeString", "alias": "USFS Number", "length": 8, "domain": null }, { "name": "trailmap", "type": "esriFieldTypeString", "alias": "TRAILMAP", "length": 16, "domain": null }, { "name": "notes", "type": "esriFieldTypeString", "alias": "Note", "length": 120, "domain": null }, { "name": "restriction", "type": "esriFieldTypeString", "alias": "Restriction", "length": 40, "domain": null }, { "name": "surface_detail", "type": "esriFieldTypeString", "alias": "Surface Detail", "length": 20, "domain": null }, { "name": "miles", "type": "esriFieldTypeDouble", "alias": "Miles", "domain": null }, { "name": "motorized", "type": "esriFieldTypeString", "alias": "Motorized", "length": 5, "domain": null }, { "name": "surface", "type": "esriFieldTypeString", "alias": "Surface", "length": 10, "domain": null }, { "name": "closure", "type": "esriFieldTypeString", "alias": "Closure", "length": 50, "domain": null }, { "name": "ada_access", "type": "esriFieldTypeString", "alias": "ADA Access", "length": 35, "domain": null }, { "name": "parking_area", "type": "esriFieldTypeString", "alias": "Parking Area", "length": 50, "domain": null }, { "name": "rid_route", "type": "esriFieldTypeString", "alias": "RID_Route", "length": 8, "domain": null }, { "name": "rid_trail", "type": "esriFieldTypeString", "alias": "RID_Trail", "length": 10, "domain": null }, { "name": "opdmd", "type": "esriFieldTypeString", "alias": "OPDMD", "length": 120, "domain": null }, { "name": "ped", "type": "esriFieldTypeString", "alias": "Pedestrian", "length": 5, "domain": null }, { "name": "bike", "type": "esriFieldTypeString", "alias": "Bike", "length": 5, "domain": null }, { "name": "horse", "type": "esriFieldTypeString", "alias": "Horse", "length": 5, "domain": null }, { "name": "show", "type": "esriFieldTypeString", "alias": "Show", "length": 5, "domain": null }, { "name": "owner", "type": "esriFieldTypeString", "alias": "Owner", "length": 50, "domain": null }, { "name": "dog", "type": "esriFieldTypeString", "alias": "Dog", "length": 20, "domain": null }, { "name": "source", "type": "esriFieldTypeString", "alias": "Source", "length": 75, "domain": null }, { "name": "difficulty", "type": "esriFieldTypeString", "alias": "Difficulty", "length": 25, "domain": null }, { "name": "created_user", "type": "esriFieldTypeString", "alias": "created_user", "length": 255, "domain": null }, { "name": "last_edited_user", "type": "esriFieldTypeString", "alias": "last_edited_user", "length": 255, "domain": null }, { "name": "maintainer", "type": "esriFieldTypeString", "alias": "Maintained By", "length": 50, "domain": null }, { "name": "link", "type": "esriFieldTypeString", "alias": "Link", "length": 125, "domain": null }, { "name": "road_bike", "type": "esriFieldTypeString", "alias": "Bike_Route", "length": 5, "domain": null }, { "name": "wild", "type": "esriFieldTypeString", "alias": "Wilderness", "length": 5, "domain": null }, { "name": "ebike", "type": "esriFieldTypeString", "alias": "eBike", "length": 5, "domain": null }, { "name": "direction", "type": "esriFieldTypeString", "alias": "Direction", "length": 5, "domain": null }, { "name": "duskclosure", "type": "esriFieldTypeString", "alias": "DuskClosure", "length": 5, "domain": null }, { "name": "trail_type", "type": "esriFieldTypeString", "alias": "Trail Type", "length": 30, "domain": null }, { "name": "closedondate", "type": "esriFieldTypeString", "alias": "ClosedOnDate", "length": 25, "domain": null }, { "name": "openondate", "type": "esriFieldTypeString", "alias": "OpenOnDate", "length": 25, "domain": null }, { "name": "last_edited_date", "type": "esriFieldTypeDate", "alias": "last_edited_date", "length": 8, "domain": null }, { "name": "created_date", "type": "esriFieldTypeDate", "alias": "created_date", "length": 8, "domain": null }, { "name": "Shape_Length", "type": "esriFieldTypeDouble", "alias": "Shape_Length", "domain": null } ], "geometryField": { "name": "Shape", "type": "esriFieldTypeGeometry", "alias": "Shape" }, "indexes": [ { "name": "FDO_OBJECTID", "fields": "OBJECTID", "isAscending": true, "isUnique": true, "description": "" }, { "name": "FDO_Shape", "fields": "Shape", "isAscending": true, "isUnique": false, "description": "" } ], "subtypes": [], "relationships": [], "canModifyLayer": true, "canScaleSymbols": false, "hasLabels": false, "capabilities": "Query,Map,Data", "maxRecordCount": 2000, "supportsStatistics": true, "supportsExceedsLimitStatistics": true, "supportsAdvancedQueries": true, "hasZ": 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, "supportsPagination": true, "supportsLod": false, "supportsQueryWithLodSR": false, "supportsTrueCurve": true, "supportsQueryWithDatumTransformation": true, "supportsReturningQueryExtent": true, "supportsQueryWithDistance": true, "supportsSqlExpression": true, "supportsTimeRelation": true, "supportsSqlFormat": false, "supportsQueryAnalytic": false }, "supportsDatumTransformation": true, "dateFieldsTimeReference": null, "preferredTimeReference": null, "datesInUnknownTimezone": false, "hasGeometryProperties": true, "geometryProperties": { "shapeLengthFieldName": "Shape_Length", "units": "esriFeet", "mapUnits": {"uwkid": 9003} }, "hasMetadata": true, "isDataArchived": false, "archivingInfo": { "supportsQueryWithHistoricMoment": false, "startArchivingMoment": -1 }, "supportsCoordinatesQuantization": true, "supportsDynamicLegends": true, "serviceItemId": "dbcac3874d1645cdbf1e42b90f026c49" }