{
  "layers" : [
    {
      "currentVersion" : 12, 
      "id" : 0, 
      "name" : "Election_2016_Results", 
      "type" : "Feature Layer", 
      "serviceItemId" : "87db9ef393ac4b7191962f3ca26cf42f", 
      "cacheMaxAge" : 30, 
      "isView" : true, 
      "isUpdatableView" : true, 
      "sourceSchemaChangesAllowed" : true, 
      "displayField" : "", 
      "description" : "", 
      "copyrightText" : "", 
      "defaultVisibility" : true, 
      "editFieldsInfo" : {
        "creationDateField" : "CreationDate", 
        "creatorField" : "Creator", 
        "editDateField" : "EditDate", 
        "editorField" : "Editor"
      }, 
      "editingInfo" : {
        "lastEditDate" : 1489020133895, 
        "schemaLastEditDate" : 1489020133895, 
        "dataLastEditDate" : 1489020133895
      }, 
      "relationships" : [], 
      "isDataVersioned" : false, 
      "hasContingentValuesDefinition" : false, 
      "supportsAppend" : true, 
      "supportsCalculate" : true, 
      "supportsASyncCalculate" : true, 
      "supportsTruncate" : false, 
      "supportsAttachmentsByUploadId" : true, 
      "supportsAttachmentsResizing" : true, 
      "supportsRollbackOnFailureParameter" : true, 
      "supportsStatistics" : true, 
      "supportsExceedsLimitStatistics" : true, 
      "supportsAdvancedQueries" : true, 
      "supportsValidateSql" : true, 
      "supportsCoordinatesQuantization" : true, 
      "supportsLayerOverrides" : true, 
      "supportsTilesAndBasicQueriesMode" : true, 
      "supportsFieldDescriptionProperty" : true, 
      "supportsQuantizationEditMode" : true, 
      "supportsColumnStoreIndex" : true, 
      "supportsApplyEditsWithGlobalIds" : true, 
      "supportsReturningQueryGeometry" : true, 
      "enableNullGeometry" : false, 
      "advancedQueryCapabilities" : {
        "supportsPagination" : true, 
        "supportsPaginationOnAggregatedQueries" : true, 
        "supportsQueryRelatedPagination" : true, 
        "supportsQueryWithDistance" : true, 
        "supportsOutDistance" : true, 
        "supportsReturningQueryExtent" : true, 
        "supportsStatistics" : true, 
        "supportsOrderBy" : true, 
        "supportsDistinct" : true, 
        "supportsQueryWithResultType" : true, 
        "supportsSqlExpression" : true, 
        "supportsTimeRelation" : true, 
        "supportsAdvancedQueryRelated" : true, 
        "supportsCountDistinct" : true, 
        "supportsPercentileStatistics" : true, 
        "supportsApproxPercentileStatistics" : true, 
        "supportsSpatialAggregationStatistics" : true, 
        "supportedSpatialAggregationStatistics" : [
          "EnvelopeAggregate", 
          "CentroidAggregate", 
          "ConvexHullAggregate"
        ], 
        "supportsLod" : true, 
        "supportsQueryWithLodSR" : false, 
        "supportedLodTypes" : [
          "geohash"
        ], 
        "supportsReturningGeometryCentroid" : false, 
        "supportsReturningGeometryEnvelope" : false, 
        "supportsQueryWithDatumTransformation" : true, 
        "supportsCurrentUserQueries" : true, 
        "supportsHavingClause" : true, 
        "supportsOutFieldSQLExpression" : true, 
        "supportsMaxRecordCountFactor" : true, 
        "supportsTopFeaturesQuery" : true, 
        "supportsDisjointSpatialRel" : true, 
        "supportsQueryWithCacheHint" : true, 
        "supportedOperationsWithCacheHint" : [
          "query", 
          "queryTopFilter", 
          "queryAnalytics", 
          "queryAttachments", 
          "queryRelated", 
          "queryBins", 
          "queryPivot"
        ], 
        "supportsQueryAnalytic" : true, 
        "supportsQueryPivot" : true, 
        "supportsQueryBins" : true, 
        "supportsDefaultSR" : true, 
        "supportsTranslations" : false, 
        "supportsAggIds" : true, 
        "supportsQueryWithCollation" : true, 
        "supportsISODOW" : true, 
        "supportsISOWeek" : true, 
        "supportsFullTextSearch" : true, 
        "fullTextSearchCapabilities" : {
          "supportsAccentSensitivity" : true, 
          "supportsStopWords" : true, 
          "supportsSearchOperator" : true, 
          "supportsOperator" : true
        }
      }, 
      "advancedQueryAnalyticCapabilities" : {
        "supportsLinearRegression" : true, 
        "supportsTrendlineRegression" : true, 
        "supportsAsync" : true, 
        "supportsPercentileAnalytic" : true
      }, 
      "queryBinsCapabilities" : {
        "supportsAsync" : true, 
        "supportsAutoIntervalBin" : true, 
        "supportsFixedIntervalBin" : true, 
        "supportsFixedBoundariesBin" : true, 
        "supportsDateBin" : true, 
        "supportsClassificationBin" : true, 
        "supportsStackBy" : true, 
        "supportsSplitBy" : true, 
        "supportsFirstDayOfWeek" : true, 
        "supportsSnapToData" : true, 
        "supportsReturnFullIntervalBin" : true, 
        "supportsReturnStackValueRange" : true, 
        "supportsNormalization" : true, 
        "supportedStatisticTypes" : [
          "COUNT", 
          "SUM", 
          "AVG", 
          "VAR", 
          "STDDEV", 
          "MIN", 
          "MAX", 
          "PERCENTILE_CONT", 
          "PERCENTILE_DISC", 
          "APPROX_PERCENTILE_CONT", 
          "APPROX_PERCENTILE_DISC", 
          "CentroidAggregate", 
          "EnvelopeAggregate", 
          "ConvexHullAggregate"
        ], 
        "supportedNormalizationTypes" : [
          "boxCox", 
          "field", 
          "inverse", 
          "log", 
          "naturalLog", 
          "percentOfTotal", 
          "squareRoot"
        ]
      }, 
      "supportedOperationsWithCollation" : "query,addField,updateField", 
      "advancedEditingCapabilities" : {
        "supportedSqlFormatsInCalculate" : [
          "standard"
        ], 
        "supportsAsyncApplyEdits" : true, 
        "supportsReturnEditResults" : true, 
        "supportsApplyEditsbyUploadID" : true, 
        "supportedApplyEditsUploadIDFormats" : "JSON,PBF", 
        "supportsTranslation" : false, 
        "supportsMaxTranslations" : 10
      }, 
      "infoInEstimates" : [
        "extent", 
        "count"
      ], 
      "useStandardizedQueries" : true, 
      "geometryType" : "esriGeometryPoint", 
      "minScale" : 73957191, 
      "maxScale" : 0, 
      "extent" : {
        "xmin" : -13840226.6248, 
        "ymin" : 2837976.4213999994, 
        "xmax" : -7510113.0724, 
        "ymax" : 6253676.1546000019, 
        "spatialReference" : {
          "wkid" : 102100, 
          "latestWkid" : 3857
        }
      }, 
      "drawingInfo":{"renderer":{"visualVariables":[{"valueExpression":"//  Rotate data based on the percent gap\n//  between the two candidates.  Arrows pointing\n//  to the left completely voted for Jim (Bald party) \n//  candidate.  Arrows pointing to the right completely\n//  voted for Euan (Hair party).  Arrow pointing\n//  straight up indicate a close race.\n\nvar total = $feature.PRS_DEM_16 + \n            $feature.PRS_REP_16 + \n            $feature.PRS_OTH_16;\n\nvar percentGap = \n  (($feature.PRS_REP_16 - $feature.PRS_DEM_16) / total) * 100;\n\nvar normalizedRotation = 0.9 * percentGap;\n\nreturn round(normalizedRotation,1);","valueExpressionTitle":"Percent Gap","rotationType":"geographic","type":"rotationInfo"},{"type":"sizeInfo","field":null,"valueExpression":"// Write a script that returns a value that will be used to draw features.\n// For example, find the percentage of males:\n// Round(($feature.MalePop / $feature.TotalPop) * 100, 2)\n\n$feature.PRS_DEM_16+$feature.PRS_OTH_16+$feature.PRS_REP_16","valueExpressionTitle":"Total votes","valueUnit":"unknown","minSize":6,"maxSize":37.5,"minDataValue":0,"maxDataValue":2488626}],"authoringInfo":{"visualVariables":[{"type":"sizeInfo","minSliderValue":0,"maxSliderValue":6636335}]},"type":"uniqueValue","field1":null,"valueExpression":"if ($feature.PRS_REP_16>$feature.PRS_DEM_16) {\n    return \"Euan (Hair party)\";\n} else {\n    return \"Jim (Bald party)\";\n}","valueExpressionTitle":"Leading vote getter","uniqueValueInfos":[{"value":"Euan (Hair party)","symbol":{"angle":0,"xoffset":0,"yoffset":0,"type":"esriPMS","url":"b0f20faa-4086-406b-b5e6-10ece183c776","imageData":"iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAA4ElEQVRIS+2UwQ2DMAxFbbUDMAojNNeqSNmgZZLSScoIkah6zQqMwgCt0kRwQJRgJxI3c0TYT/bzByHzsbq6hVJlujanBeYUWX0uEQ421Dr4KmXefWqfZLDVukD4eCiWI8z1Do4eboYUeAa4an3RdQFpT6ardwMHrx76XAM4gDrFN3vimdciMtmQ4psF/vcaWyrfNxO86jVGZ/kmwVteo3MzfG+CGV5jbNI3OfGys9WXBgHv8/cO3EOZV7NbnEJjAY//a1k1fWZy1eSOJE4SJ/JIpg8kTuSmJE4SJ/JIpg9+6qvPH/4ndkIAAAAASUVORK5CYII=","contentType":"image/png","width":6,"height":6},"label":"Euan (Hair party)"},{"value":"Jim (Bald party)","symbol":{"angle":0,"xoffset":0,"yoffset":0,"type":"esriPMS","url":"768fa198-d1ec-4a97-94c2-114d3efda8b3","imageData":"iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAA5ElEQVRIS+2UyQ2DQAxFbdIApdACmnNQOkiohKGSUEKWaxAtUAoNBIdBKMrC4DESN3NE2E/28wdh5bO39cmV3q2p1rTANUUH2yQEfeNqEaL0YtNW2kcMHqAxwbMBxGSEEbUIOwfvJHAxOCsfFQIevyAE1dWafDOw8xohnOcAPUEu8R088dsrQjw7GUEn8R0E/vPq26nAdxB41qsXHuabBS959bFDfC+CWa/+qVnf7MS/vbOytkNR8fmeAMpbYexmcXKNFTz+NXXVAVemV80uSeOkcWKPZPpA48RuSuOkcWKPZPrgBQbkwx+ke5zgAAAAAElFTkSuQmCC","contentType":"image/png","width":6,"height":6},"label":"Jim (Bald party)"}]},"transparency":0}, 
      "allowGeometryUpdates" : false, 
      "hasAttachments" : false, 
      "viewSourceHasAttachments" : false, 
      "htmlPopupType" : "esriServerHTMLPopupTypeNone", 
      "hasM" : false, 
      "hasZ" : false, 
      "objectIdField" : "OBJECTID", 
      "uniqueIdField" : 
      {
        "name" : "OBJECTID", 
        "isSystemMaintained" : true
      }, 
      "globalIdField" : "GlobalID", 
      "typeIdField" : "", 
      "collation" : {
        "locale" : "neutral", 
        "caseSensitive" : false, 
        "accentSensitive" : true
      }, 
      "fields" : [
        {
          "name" : "OBJECTID", 
          "type" : "esriFieldTypeOID", 
          "alias" : "OBJECTID", 
          "sqlType" : "sqlTypeOther", 
          "nullable" : false, 
          "editable" : false, 
          "domain" : null, 
          "defaultValue" : null
        }, 
        {
          "name" : "STATE_NAME", 
          "type" : "esriFieldTypeString", 
          "alias" : "STATE_NAME", 
          "sqlType" : "sqlTypeOther", 
          "length" : 20, 
          "nullable" : true, 
          "editable" : true, 
          "domain" : null, 
          "defaultValue" : null
        }, 
        {
          "name" : "Name_1", 
          "type" : "esriFieldTypeString", 
          "alias" : "Name_1", 
          "sqlType" : "sqlTypeOther", 
          "length" : 255, 
          "nullable" : true, 
          "editable" : true, 
          "domain" : null, 
          "defaultValue" : null
        }, 
        {
          "name" : "PRS_DEM_16", 
          "type" : "esriFieldTypeDouble", 
          "alias" : "PRS_DEM_16", 
          "sqlType" : "sqlTypeOther", 
          "nullable" : true, 
          "editable" : true, 
          "domain" : null, 
          "defaultValue" : null
        }, 
        {
          "name" : "PRS_REP_16", 
          "type" : "esriFieldTypeDouble", 
          "alias" : "PRS_REP_16", 
          "sqlType" : "sqlTypeOther", 
          "nullable" : true, 
          "editable" : true, 
          "domain" : null, 
          "defaultValue" : null
        }, 
        {
          "name" : "PRS_OTH_16", 
          "type" : "esriFieldTypeDouble", 
          "alias" : "PRS_OTH_16", 
          "sqlType" : "sqlTypeOther", 
          "nullable" : true, 
          "editable" : true, 
          "domain" : null, 
          "defaultValue" : null
        }, 
        {
          "name" : "GlobalID", 
          "type" : "esriFieldTypeGlobalID", 
          "alias" : "GlobalID", 
          "sqlType" : "sqlTypeOther", 
          "length" : 38, 
          "nullable" : false, 
          "editable" : false, 
          "domain" : null, 
          "defaultValue" : "NEWID() WITH VALUES"
        }
      ], 
      "indexes" : [
        {
          "name" : "PK__ELECTION__F4B70D85DCFF79B7", 
          "fields" : "OBJECTID", 
          "isAscending" : true, 
          "isUnique" : true, 
          "description" : "clustered, unique, primary key", 
          "indexType" : "Attribute"
        }, 
        {
          "name" : "user_875.ELECTION_2016_DEMO_ELECTION_2016_RESULTS_Shape_sidx", 
          "fields" : "Shape", 
          "isAscending" : false, 
          "isUnique" : false, 
          "description" : "Shape Index", 
          "indexType" : "Spatial"
        }, 
        {
          "name" : "PRS_DEM_16_Index", 
          "fields" : "PRS_DEM_16", 
          "isAscending" : true, 
          "isUnique" : false, 
          "description" : "PRS_DEM_16_Index", 
          "indexType" : "Attribute"
        }, 
        {
          "name" : "GlobalID_Index", 
          "fields" : "GlobalID", 
          "isAscending" : false, 
          "isUnique" : true, 
          "description" : "", 
          "indexType" : "Attribute"
        }
      ], 
      "dateFieldsTimeReference" : {
        "timeZone" : "UTC", 
        "timeZoneIANA" : "Etc/UTC", 
        "respectsDaylightSaving" : false
      }, 
      "preferredTimeReference" : null, 
      "types" : [
        {
          "id" : "Euan (Hair party)", 
          "name" : "Euan (Hair party)", 
          "domains" : 
          {
          }, 
          "templates" : [
            {
              "name" : "Euan (Hair party)", 
              "description" : "", 
              "drawingTool" : "esriFeatureEditToolNone", 
              "prototype" : {
                "attributes" : {
                  "null" : "Euan (Hair party)", 
                  "STATE_NAME" : null, 
                  "ST_ABBREV" : null, 
                  "FIPS" : null, 
                  "Name_1" : null, 
                  "PRS_DEM_16" : null, 
                  "PRS_REP_16" : null, 
                  "PRS_OTH_16" : null
                }
              }
            }
          ]
        }, 
        {
          "id" : "Jim (Bald party)", 
          "name" : "Jim (Bald party)", 
          "domains" : 
          {
          }, 
          "templates" : [
            {
              "name" : "Jim (Bald party)", 
              "description" : "", 
              "drawingTool" : "esriFeatureEditToolNone", 
              "prototype" : {
                "attributes" : {
                  "null" : "Jim (Bald party)", 
                  "STATE_NAME" : null, 
                  "ST_ABBREV" : null, 
                  "FIPS" : null, 
                  "Name_1" : null, 
                  "PRS_DEM_16" : null, 
                  "PRS_REP_16" : null, 
                  "PRS_OTH_16" : null
                }
              }
            }
          ]
        }
      ], 
      "templates" : [], 
      "supportedQueryFormats" : "JSON, geoJSON, PBF", 
      "supportedAppendFormats" : "sqlite,geoPackage,shapefile,filegdb,featureCollection,geojson,csv,excel,jsonl,featureService,pbf", 
      "supportedAppendSourceFilterFormats" : "sqlite,geoPackage,shapefile,filegdb,featureService", 
      "supportedExportFormats" : "csv,shapefile,sqlite,geoPackage,filegdb,featureCollection,geojson,kml,excel,parquet", 
      "supportedConvertFileFormats" : "JSON,PBF,Parquet", 
      "supportedConvertContentFormats" : "LayerEditCollection,FeatureCollection", 
      "supportedSpatialRelationships" : [
        "esriSpatialRelIntersects", 
        "esriSpatialRelContains", 
        "esriSpatialRelCrosses", 
        "esriSpatialRelEnvelopeIntersects", 
        "esriSpatialRelIndexIntersects", 
        "esriSpatialRelOverlaps", 
        "esriSpatialRelTouches", 
        "esriSpatialRelWithin", 
        "esriSpatialRelDisjoint", 
        "esriSpatialRelRelation"
      ], 
      "guidFormat" : "", 
      "supportsContingentValues" : true, 
      "supportsEditingContingentValues" : true, 
      "supportedContingentValuesFormats" : "JSON, PBF", 
      "supportsFieldGroups" : true, 
      "supportedSyncDataOptions" : 260, 
      "hasStaticData" : false, 
      "maxRecordCount" : 2000, 
      "standardMaxRecordCount" : 16000, 
      "maxIdsCount" : 1000000, 
      "standardMaxRecordCountNoGeometry" : 32000, 
      "tileMaxRecordCount" : 8000, 
      "maxRecordCountFactor" : 1, 
      "capabilities" : "Query"
    }
  ], 
  "tables" : []
}