ArcGIS REST Services Directory
Home
>
services
>
Election_2020_States (FeatureServer)
>
All Layers and Tables
|
API Reference
JSON
All Layers and Tables (Election_2020_States)
Layers:
Layer:
Pres_2020_StateData_final
(0)
Name:
Pres_2020_StateData_final
Display Field:
STATE_NAME
Type:
Feature Layer
Geometry Type:
esriGeometryPolygon
Description:
Copyright Text:
Min. Scale:
0
Max. Scale:
0
Default Visibility:
true
Max Record Count:
2000
Supported query Formats:
JSON, geoJSON, PBF
Use Standardized Queries:
True
Extent:
XMin: -19839092.3043
YMin: 2145729.6799
XMax: -7454985.1465
YMax: 11542624.916
Spatial Reference: 102100 (3857)
Drawing Info:
{"renderer":{"visualVariables":[{"type":"transparencyInfo","valueExpression":"$feature[\"PER_DEMOCRAT\"];\n$feature[\"PER_REPUBLICAN\"];\nvar fieldNames = [ \"PER_DEMOCRAT\", \"PER_REPUBLICAN\" ];\nvar numFields = 2;\nvar maxValueField = null;\nvar maxValue = -Infinity;\nvar value, i, totalValue = null;\nfor(i = 0; i < numFields; i++) {\nvalue = $feature[fieldNames[i]];\nif(value > 0) {\nif(value > maxValue) {\nmaxValue = value;\nmaxValueField = fieldNames[i];\n}\nelse if (value == maxValue) {\nmaxValueField = null;\n}\n}\nif(value != null && value >= 0) {\nif (totalValue == null) { totalValue = 0; }\ntotalValue = totalValue + value;\n}\n}\nvar strength = null;\nif (maxValueField != null && totalValue > 0) {\nstrength = (maxValue / totalValue) * 100;\n}\nreturn strength;","stops":[{"value":50,"transparency":85},{"value":66,"transparency":0}],"legendOptions":{"title":"Strength of predominance"}}],"authoringInfo":{"type":"predominance","fields":["PER_DEMOCRAT","PER_REPUBLICAN"],"visualVariables":[{"type":"transparencyInfo","minSliderValue":0,"maxSliderValue":100}]},"type":"uniqueValue","valueExpression":"$feature[\"PER_DEMOCRAT\"];\n$feature[\"PER_REPUBLICAN\"];\nvar fieldNames = [ \"PER_DEMOCRAT\", \"PER_REPUBLICAN\" ];\nvar numFields = 2;\nvar maxValueField = null;\nvar maxValue = -Infinity;\nvar value, i, totalValue = null;\nfor(i = 0; i < numFields; i++) {\nvalue = $feature[fieldNames[i]];\nif(value > 0) {\nif(value > maxValue) {\nmaxValue = value;\nmaxValueField = fieldNames[i];\n}\nelse if (value == maxValue) {\nmaxValueField = null;\n}\n}\n}\nreturn maxValueField;","valueExpressionTitle":"Predominant category","uniqueValueInfos":[{"value":"PER_DEMOCRAT","symbol":{"color":[237,81,81,255],"outline":{"color":[153,153,153,64],"width":0.74993750520789926,"type":"esriSLS","style":"esriSLSSolid"},"type":"esriSFS","style":"esriSFSSolid"},"label":"%DEM"},{"value":"PER_REPUBLICAN","symbol":{"color":[20,158,206,255],"outline":{"color":[153,153,153,64],"width":0.74993750520789926,"type":"esriSLS","style":"esriSLSSolid"},"type":"esriSFS","style":"esriSFSSolid"},"label":"%GOP"}]},"transparency":0}
HasZ:
false
HasM:
false
Has Attachments:
false
Has Geometry Properties:
true
HTML Popup Type:
esriServerHTMLPopupTypeAsHTMLText
Object ID Field:
OBJECTID
Unique ID Field:
Name : OBJECTID
IsSystemMaintained : True
Global ID Field:
Type ID Field:
Fields:
OBJECTID
(type: esriFieldTypeOID, alias: OBJECTID, SQL Type: sqlTypeOther, length: 0, nullable: false, editable: false)
STATE_NAME
(type: esriFieldTypeString, alias: State, SQL Type: sqlTypeOther, length: 25, nullable: true, editable: true)
STATE_ABBR
(type: esriFieldTypeString, alias: Abbreviation, SQL Type: sqlTypeOther, length: 2, nullable: true, editable: true)
TOTAL_VOTES
(type: esriFieldTypeDouble, alias: Total Votes, SQL Type: sqlTypeOther, nullable: true, editable: true)
DEMOCRAT
(type: esriFieldTypeDouble, alias: DEMOCRAT, SQL Type: sqlTypeOther, nullable: true, editable: true)
REPUBLICAN
(type: esriFieldTypeDouble, alias: REPUBLICAN, SQL Type: sqlTypeOther, nullable: true, editable: true)
OTHER
(type: esriFieldTypeDouble, alias: OTHER, SQL Type: sqlTypeOther, nullable: true, editable: true)
PER_DEMOCRAT
(type: esriFieldTypeDouble, alias: %DEM, SQL Type: sqlTypeOther, nullable: true, editable: true)
PER_REPUBLICAN
(type: esriFieldTypeDouble, alias: %GOP, SQL Type: sqlTypeOther, nullable: true, editable: true)
Shape__Area
(type: esriFieldTypeDouble, alias: Shape__Area, SQL Type: sqlTypeDouble, nullable: true, editable: false)
Shape__Length
(type: esriFieldTypeDouble, alias: Shape__Length, SQL Type: sqlTypeDouble, nullable: true, editable: false)
Templates:
Name: New Feature
Description:
Drawing Tool: esriFeatureEditToolNone
Prototype:
Attributes:
Is Data Versioned:
false
Has Contingent Values:
false
Supports Rollback On Failure Parameter:
true
Last Edit Date:
1/13/2025 7:25:39 PM
Schema Last Edit Date:
1/13/2025 7:25:39 PM
Data Last Edit Date:
9/13/2021 3:23:40 PM