- Data Central
- 2020 Decennial Census
Select an Area
2020 Decennial Census
Detail
Diversity Index *
2020 | 2010 | Change |
---|---|---|
12 | 4 | 8 |
* The USA TODAY diversity index shows on a scale of 0 to 100 how likely it is two people from an area would have a different race or ethnicity. A score of 0 would mean everyone had the same race and ethnicity; a score of 100 would mean everyone in an area had a distinctly different combination of race and ethnicity. Nearly everywhere is some place in the middle. The index was invented in 1991 by Phil Meyer of the University of North Carolina and Shawn McIntosh, who was then with USA TODAY. This score differs from the Census Bureau's version of the diversity index because of differences in how the bureau's formula counts race and Hispanic origin.
Population by Race/Ethnicity
2020 | 2010 | Change | ||||
---|---|---|---|---|---|---|
# | % | # | % | |||
Total | 1,032 | 1,022 | 1.0% | |||
Race | White | 977 | 94.7% | 1,008 | 98.6% | -3.1% |
Black | 5 | 0.5% | 4 | 0.4% | 25.0% | |
American Indian | 3 | 0.3% | 2 | 0.2% | 50.0% | |
Asian | 3 | 0.3% | 3 | 0.3% | 0.0% | |
Pacific Islander | 0 | 0.0% | 0 | 0.0% | ||
Other | 5 | 0.5% | 0 | 0.0% | ||
Two or More | 39 | 3.8% | 5 | 0.5% | 680.0% | |
Ethnicity | Hispanic or Latino | 14 | 1.4% | 6 | 0.6% | 133.3% |
Population by Race/Ethnicity: 18 Years and Over
2020 | 2010 | Change | ||||
---|---|---|---|---|---|---|
# | % | # | % | |||
Total | 820 | 800 | 2.5% | |||
Race | White | 784 | 95.6% | 787 | 98.4% | -0.4% |
Black | 1 | 0.1% | 3 | 0.4% | -66.7% | |
American Indian | 0 | 0.0% | 2 | 0.2% | -100.0% | |
Asian | 3 | 0.4% | 3 | 0.4% | 0.0% | |
Pacific Islander | 0 | 0.0% | 0 | 0.0% | ||
Other | 5 | 0.6% | 0 | 0.0% | ||
Two or More | 27 | 3.3% | 5 | 0.6% | 440.0% | |
Ethnicity | Hispanic or Latino | 7 | 0.9% | 6 | 0.8% | 16.7% |
Diversity Index *
2020 | 2010 | Change |
---|---|---|
12 | 4 | 8 |
* The USA TODAY diversity index shows on a scale of 0 to 100 how likely it is two people from an area would have a different race or ethnicity. A score of 0 would mean everyone had the same race and ethnicity; a score of 100 would mean everyone in an area had a distinctly different combination of race and ethnicity. Nearly everywhere is some place in the middle. The index was invented in 1991 by Phil Meyer of the University of North Carolina and Shawn McIntosh, who was then with USA TODAY. This score differs from the Census Bureau's version of the diversity index because of differences in how the bureau's formula counts race and Hispanic origin.
Housing Units
2020 | 2010 | Change | |||
---|---|---|---|---|---|
# | % | # | % | ||
Total Housing Units | 594 | 588 | 1.0% | ||
Occupied | 451 | 75.9% | 397 | 67.5% | 13.6% |
Vacant | 143 | 24.1% | 191 | 32.5% | -25.1% |
Population in Group Quarters
2020 | |
---|---|
Total Population in Group Quarters | 0 |
Institutionalized Population | 0 |
Correctional Facilities for Adults | 0 |
Juvenile Facilities | 0 |
Nursing Facilities/Skilled-nursing Facilities | 0 |
Other Institutional Facilities | 0 |
Noninstitutionalized Population | 0 |
College/University Student Housing | 0 |
Military Quarters | 0 |
Other Noninstitutional Facilities | 0 |
Map
Total Population Change
Less than -3%
-3% to 0%
0% to 3%
3% to 6%
6% to 9%
9% to 12%
12% to 15%
15% to 18%
More than 18%
N/A
2020 Boundary
2010 Boundary
1:500,000 scale
Other Areas in Covington township, Tioga County, Pennsylvania
Total Population | Age 18 and Over | ||||||
Total Population | Age 18 and Over | ||||||
Area | Diversity Index | Total Population | Hispanic | Not Hispanic, White | Total Population | Hispanic | Not Hispanic, White |
---|---|---|---|---|---|---|---|
010 United States | 67 12 | 331,449,281 7.4% | 62,080,044 18.7% 23.0% | 191,697,647 57.8% -2.6% | 258,343,281 8.8% | 43,322,792 16.8% 19.9% | 157,118,573 60.8% 0.0% |
040-42 Pennsylvania | 47 11 | 13,002,700 2.4% | 1,049,615 8.1% 45.8% | 9,553,417 73.5% -5.4% | 10,353,548 4.5% | 704,258 6.8% 53.4% | 7,884,010 76.1% -2.8% |
050-42117 Tioga County, Pennsylvania | 14 7 | 41,045 -2.2% | 640 1.6% 46.5% | 38,257 93.2% -5.7% | 32,720 -2.0% | 426 1.3% 52.7% | 30,760 94.0% -5.1% |
060-4211707152 Bloss township, Tioga County, Pennsylvania | 7 7 | 343 -2.8% | 331 96.5% -6.2% | 274 -4.9% | 265 96.7% -8.0% | ||
060-4211707160 Blossburg borough, Tioga County, Pennsylvania | 18 13 | 1,533 -0.3% | 40 2.6% 100.0% | 1,400 91.3% -6.7% | 1,174 1.7% | 29 2.5% 222.2% | 1,078 91.8% -4.7% |
060-4211709072 Brookfield township, Tioga County, Pennsylvania | 8 2 | 371 -11.9% | 1 0.3% -90.9% | 356 96.0% -12.7% | 294 -14.5% | 1 0.3% -88.9% | 283 96.3% -15.3% |
060-4211712728 Charleston township, Tioga County, Pennsylvania | 14 8 | 3,565 6.1% | 76 2.1% 81.0% | 3,322 93.2% 1.6% | 2,793 5.2% | 45 1.6% 114.3% | 2,649 94.8% 1.6% |
060-4211712880 Chatham township, Tioga County, Pennsylvania | 14 6 | 610 3.7% | 8 1.3% -20.0% | 569 93.3% 0.4% | 494 1.0% | 5 1.0% -28.6% | 466 94.3% -1.5% |
060-4211714528 Clymer township, Tioga County, Pennsylvania | 9 8 | 623 7.2% | 6 1.0% 500.0% | 596 95.7% 3.1% | 485 6.6% | 3 0.6% 200.0% | 467 96.3% 3.3% |
060-4211716680 Covington township, Tioga County, Pennsylvania | 12 8 | 1,032 1.0% | 14 1.4% 133.3% | 969 93.9% -3.5% | 820 2.5% | 7 0.9% 16.7% | 779 95.0% -0.5% |
060-4211718552 Deerfield township, Tioga County, Pennsylvania | 12 5 | 544 -17.8% | 12 2.2% 71.4% | 511 93.9% -20.0% | 464 -9.6% | 10 2.2% 100.0% | 440 94.8% -12.2% |
060-4211718760 Delmar township, Tioga County, Pennsylvania | 10 4 | 2,793 -2.2% | 30 1.1% 3.4% | 2,655 95.1% -4.1% | 2,247 0.2% | 18 0.8% -5.3% | 2,161 96.2% -1.4% |
060-4211720232 Duncan township, Tioga County, Pennsylvania | 10 6 | 189 -9.1% | 178 94.2% -13.2% | 160 -5.9% | 149 93.1% -11.3% | ||
060-4211723056 Elk township, Tioga County, Pennsylvania | 23 23 | 48 -2.0% | 2 4.2% None% | 42 87.5% -14.3% | 42 -4.5% | 1 2.4% None% | 40 95.2% -9.1% |
060-4211723152 Elkland borough, Tioga County, Pennsylvania | 16 10 | 1,827 0.3% | 27 1.5% 58.8% | 1,681 92.0% -5.1% | 1,406 0.0% | 17 1.2% 70.0% | 1,321 94.0% -3.9% |
060-4211725296 Farmington township, Tioga County, Pennsylvania | 7 3 | 658 3.3% | 6 0.9% 50.0% | 634 96.4% 1.4% | 523 0.6% | 4 0.8% 33.3% | 510 97.5% -0.6% |
060-4211728264 Gaines township, Tioga County, Pennsylvania | 7 4 | 608 12.2% | 2 0.3% -33.3% | 586 96.4% 9.7% | 517 10.7% | 1 0.2% -66.7% | 503 97.3% 9.3% |
060-4211732192 Hamilton township, Tioga County, Pennsylvania | 10 6 | 531 6.4% | 8 1.5% 166.7% | 507 95.5% 3.5% | 389 0.5% | 7 1.8% 133.3% | 368 94.6% -3.4% |
060-4211737472 Jackson township, Tioga County, Pennsylvania | 12 8 | 1,881 -0.3% | 29 1.5% 163.6% | 1,775 94.4% -4.0% | 1,510 1.4% | 13 0.9% 85.7% | 1,437 95.2% -1.8% |
060-4211740360 Knoxville borough, Tioga County, Pennsylvania | 18 15 | 680 8.1% | 13 1.9% None% | 619 91.0% -0.3% | 516 11.9% | 6 1.2% None% | 476 92.2% 4.2% |
060-4211741960 Lawrence township, Tioga County, Pennsylvania | 12 7 | 1,614 -6.1% | 11 0.7% 37.5% | 1,513 93.7% -10.0% | 1,282 -6.6% | 7 0.5% 40.0% | 1,221 95.2% -9.3% |
060-4211742016 Lawrenceville borough, Tioga County, Pennsylvania | 15 9 | 691 18.9% | 9 1.3% 50.0% | 644 93.2% 14.0% | 508 13.4% | 4 0.8% -20.0% | 480 94.5% 9.3% |
060-4211743128 Liberty borough, Tioga County, Pennsylvania | 15 10 | 234 -6.0% | 1 0.4% None% | 217 92.7% -10.7% | 169 3.7% | 158 93.5% -0.6% | |
060-4211743136 Liberty township, Tioga County, Pennsylvania | 7 | 1,033 -0.9% | 9 0.9% 50.0% | 993 96.1% -1.6% | 803 3.2% | 9 1.1% 350.0% | 771 96.0% 0.9% |
060-4211747080 Mansfield borough, Tioga County, Pennsylvania | 33 11 | 2,839 -21.7% | 126 4.4% 13.5% | 2,368 83.4% -25.9% | 2,478 -23.6% | 111 4.5% 29.1% | 2,077 83.8% -27.6% |
060-4211748968 Middlebury township, Tioga County, Pennsylvania | 8 6 | 1,312 2.1% | 8 0.6% 14.3% | 1,262 96.2% -0.8% | 1,026 2.6% | 5 0.5% 0.0% | 989 96.4% -0.1% |
060-4211751096 Morris township, Tioga County, Pennsylvania | 19 14 | 569 -6.1% | 15 2.6% 25.0% | 520 91.4% -12.2% | 485 -1.6% | 13 2.7% 160.0% | 449 92.6% -7.8% |
060-4211752960 Nelson township, Tioga County, Pennsylvania | 18 13 | 547 -4.2% | 9 1.6% 200.0% | 497 90.9% -10.5% | 420 -7.9% | 3 0.7% 50.0% | 389 92.6% -13.0% |
060-4211757224 Osceola township, Tioga County, Pennsylvania | 11 8 | 591 -10.3% | 16 2.7% 1500.0% | 563 95.3% -13.1% | 462 -9.9% | 11 2.4% None% | 441 95.5% -13.0% |
060-4211762960 Putnam township, Tioga County, Pennsylvania | 10 8 | 400 -5.9% | 4 1.0% 0.0% | 379 94.8% -9.8% | 298 -5.1% | 1 0.3% -50.0% | 284 95.3% -8.7% |
060-4211764624 Richmond township, Tioga County, Pennsylvania | 13 6 | 2,169 -9.5% | 27 1.2% 22.7% | 2,025 93.4% -12.5% | 1,732 -10.4% | 15 0.9% 25.0% | 1,634 94.3% -13.1% |
060-4211766232 Roseville borough, Tioga County, Pennsylvania | 14 4 | 178 -5.8% | 4 2.2% 300.0% | 166 93.3% -7.3% | 139 -6.1% | 2 1.4% 100.0% | 133 95.7% -5.7% |
060-4211766912 Rutland township, Tioga County, Pennsylvania | 14 10 | 779 -3.2% | 7 0.9% 75.0% | 723 92.8% -8.5% | 626 0.8% | 5 0.8% 25.0% | 585 93.5% -4.3% |
060-4211770344 Shippen township, Tioga County, Pennsylvania | 13 6 | 500 -5.1% | 11 2.2% 37.5% | 466 93.2% -8.3% | 384 -5.4% | 7 1.8% 133.3% | 361 94.0% -8.8% |
060-4211775104 Sullivan township, Tioga County, Pennsylvania | 11 6 | 1,466 0.9% | 21 1.4% 61.5% | 1,390 94.8% -1.8% | 1,168 6.8% | 11 0.9% 120.0% | 1,121 96.0% 4.6% |
060-4211776808 Tioga borough, Tioga County, Pennsylvania | 10 6 | 606 -9.0% | 8 1.3% 700.0% | 580 95.7% -11.2% | 464 -7.2% | 1 0.2% 0.0% | 449 96.8% -9.5% |
060-4211776824 Tioga township, Tioga County, Pennsylvania | 14 7 | 938 -5.3% | 5 0.5% -54.5% | 875 93.3% -8.5% | 762 -4.3% | 2 0.3% -66.7% | 720 94.5% -7.2% |
060-4211778416 Union township, Tioga County, Pennsylvania | 7 4 | 946 -5.4% | 3 0.3% -40.0% | 909 96.1% -7.6% | 736 -7.5% | 3 0.4% -25.0% | 707 96.1% -9.9% |
060-4211780936 Ward township, Tioga County, Pennsylvania | 11 3 | 228 37.3% | 215 94.3% 35.2% | 184 26.9% | 174 94.6% 22.5% | ||
060-4211782160 Wellsboro borough, Tioga County, Pennsylvania | 16 7 | 3,469 6.3% | 55 1.6% 52.8% | 3,204 92.4% 2.9% | 2,780 5.1% | 38 1.4% 90.0% | 2,586 93.0% 1.4% |
060-4211782968 Westfield borough, Tioga County, Pennsylvania | 9 3 | 1,112 4.5% | 9 0.8% 12.5% | 1,067 96.0% 2.9% | 890 8.4% | 7 0.8% 133.3% | 856 96.2% 6.1% |
060-4211782976 Westfield township, Tioga County, Pennsylvania | 8 6 | 988 -5.6% | 8 0.8% 100.0% | 950 96.2% -8.4% | 816 -0.9% | 4 0.5% 0.0% | 783 96.0% -3.7% |
Status of sex offenders in Florida
Source: U.S. Census Bureau
* Because tract and legislative district boundaries have changed in some cases, USA TODAY estimated 2020 tract and legislative district population counts based on their new boundaries for consistency.
Total Population Change
'+feature.properties.total_ypc+'%
'; popupContent += '
More
'; return popupContent;}// thisgeo = 2020-060-4211716680function Gon2Line(val){ if (val['type'] == 'Polygon') { return {"type":"FeatureCollection", "features":[{"type":"Feature", "geometry":{ type: "LineString", coordinates: val['coordinates'][0]}, "properties":{}} ]}; } else { var rd = {"type":"FeatureCollection", "features":[]}; for (let i = 0; i < val['coordinates'].length; i++){ rd["features"].push({"type":"Feature", "id":i, "geometry":{ type: "MultiLineString", coordinates: val['coordinates'][i]}, "properties":{"id":i}}) } return rd; }}mapboxgl.accessToken = 'pk.eyJ1IjoieXB5dW4iLCJhIjoiY2oxcW4ybWhxMDBkMjJxcGVhbDV5cnpzYyJ9.oFQSnOc57xCR7A51OR6-3w';var map = new mapboxgl.Map({ container: 'uscntymap', // container id style: 'mapbox://styles/ypyun/cj83a8ga5abkq2sqpivw3nrzg', //'mapbox://styles/mapbox/streets-v11', // stylesheet location center: [-84.5125, 39.1015], // starting position [lng, lat] zoom: 9, // starting zoom attributionControl: false,});map.addControl(new mapboxgl.AttributionControl({ compact: false, customAttribution:[] }));var stopvar = [[-3,'#FF0014'],[0,'#FF3C14'],[3,'#FF7814'],[6,'#FFB414'],[9,'#C5ED11'],[12,'#8BEB0E'],[15,'#51E80B'],[18,'#18E609'] ];//var G2020_010 = [[[[-125.0011, 24.9493],[-66.9326, 49.5904]]]];var sJSON = {"type":"FeatureCollection", "features":[ {"type":"Feature","geometry": G2020_060_4211707152,"properties":{ "geot__geoid":"4211707152","geot__namelsad":"Bloss township, Tioga County, Pennsylvania","geot__sumlevel":"060","geop__pmk":"2010-060-4211707152","geot__pmk":"2020-060-4211707152","pmk":"060-4211707152","total_ypc":-2.8, } }, {"type":"Feature","geometry": G2020_060_4211707160,"properties":{ "geot__geoid":"4211707160","geot__namelsad":"Blossburg borough, Tioga County, Pennsylvania","geot__sumlevel":"060","geop__pmk":"2010-060-4211707160","geot__pmk":"2020-060-4211707160","pmk":"060-4211707160","total_ypc":-0.3, } }, {"type":"Feature","geometry": G2020_060_4211709072,"properties":{ "geot__geoid":"4211709072","geot__namelsad":"Brookfield township, Tioga County, Pennsylvania","geot__sumlevel":"060","geop__pmk":"2010-060-4211709072","geot__pmk":"2020-060-4211709072","pmk":"060-4211709072","total_ypc":-11.9, } }, {"type":"Feature","geometry": G2020_060_4211712728,"properties":{ "geot__geoid":"4211712728","geot__namelsad":"Charleston township, Tioga County, Pennsylvania","geot__sumlevel":"060","geop__pmk":"2010-060-4211712728","geot__pmk":"2020-060-4211712728","pmk":"060-4211712728","total_ypc":6.1, } }, {"type":"Feature","geometry": G2020_060_4211712880,"properties":{ "geot__geoid":"4211712880","geot__namelsad":"Chatham township, Tioga County, Pennsylvania","geot__sumlevel":"060","geop__pmk":"2010-060-4211712880","geot__pmk":"2020-060-4211712880","pmk":"060-4211712880","total_ypc":3.7, } }, {"type":"Feature","geometry": G2020_060_4211714528,"properties":{ "geot__geoid":"4211714528","geot__namelsad":"Clymer township, Tioga County, Pennsylvania","geot__sumlevel":"060","geop__pmk":"2010-060-4211714528","geot__pmk":"2020-060-4211714528","pmk":"060-4211714528","total_ypc":7.2, } }, {"type":"Feature","geometry": G2020_060_4211716680,"properties":{ "geot__geoid":"4211716680","geot__namelsad":"Covington township, Tioga County, Pennsylvania","geot__sumlevel":"060","geop__pmk":"2010-060-4211716680","geot__pmk":"2020-060-4211716680","pmk":"060-4211716680","total_ypc":1.0, } }, {"type":"Feature","geometry": G2020_060_4211718552,"properties":{ "geot__geoid":"4211718552","geot__namelsad":"Deerfield township, Tioga County, Pennsylvania","geot__sumlevel":"060","geop__pmk":"2010-060-4211718552","geot__pmk":"2020-060-4211718552","pmk":"060-4211718552","total_ypc":-17.8, } }, {"type":"Feature","geometry": G2020_060_4211718760,"properties":{ "geot__geoid":"4211718760","geot__namelsad":"Delmar township, Tioga County, Pennsylvania","geot__sumlevel":"060","geop__pmk":"2010-060-4211718760","geot__pmk":"2020-060-4211718760","pmk":"060-4211718760","total_ypc":-2.2, } }, {"type":"Feature","geometry": G2020_060_4211720232,"properties":{ "geot__geoid":"4211720232","geot__namelsad":"Duncan township, Tioga County, Pennsylvania","geot__sumlevel":"060","geop__pmk":"2010-060-4211720232","geot__pmk":"2020-060-4211720232","pmk":"060-4211720232","total_ypc":-9.1, } }, {"type":"Feature","geometry": G2020_060_4211723056,"properties":{ "geot__geoid":"4211723056","geot__namelsad":"Elk township, Tioga County, Pennsylvania","geot__sumlevel":"060","geop__pmk":"2010-060-4211723056","geot__pmk":"2020-060-4211723056","pmk":"060-4211723056","total_ypc":-2.0, } }, {"type":"Feature","geometry": G2020_060_4211723152,"properties":{ "geot__geoid":"4211723152","geot__namelsad":"Elkland borough, Tioga County, Pennsylvania","geot__sumlevel":"060","geop__pmk":"2010-060-4211723152","geot__pmk":"2020-060-4211723152","pmk":"060-4211723152","total_ypc":0.3, } }, {"type":"Feature","geometry": G2020_060_4211725296,"properties":{ "geot__geoid":"4211725296","geot__namelsad":"Farmington township, Tioga County, Pennsylvania","geot__sumlevel":"060","geop__pmk":"2010-060-4211725296","geot__pmk":"2020-060-4211725296","pmk":"060-4211725296","total_ypc":3.3, } }, {"type":"Feature","geometry": G2020_060_4211728264,"properties":{ "geot__geoid":"4211728264","geot__namelsad":"Gaines township, Tioga County, Pennsylvania","geot__sumlevel":"060","geop__pmk":"2010-060-4211728264","geot__pmk":"2020-060-4211728264","pmk":"060-4211728264","total_ypc":12.2, } }, {"type":"Feature","geometry": G2020_060_4211732192,"properties":{ "geot__geoid":"4211732192","geot__namelsad":"Hamilton township, Tioga County, Pennsylvania","geot__sumlevel":"060","geop__pmk":"2010-060-4211732192","geot__pmk":"2020-060-4211732192","pmk":"060-4211732192","total_ypc":6.4, } }, {"type":"Feature","geometry": G2020_060_4211737472,"properties":{ "geot__geoid":"4211737472","geot__namelsad":"Jackson township, Tioga County, Pennsylvania","geot__sumlevel":"060","geop__pmk":"2010-060-4211737472","geot__pmk":"2020-060-4211737472","pmk":"060-4211737472","total_ypc":-0.3, } }, {"type":"Feature","geometry": G2020_060_4211740360,"properties":{ "geot__geoid":"4211740360","geot__namelsad":"Knoxville borough, Tioga County, Pennsylvania","geot__sumlevel":"060","geop__pmk":"2010-060-4211740360","geot__pmk":"2020-060-4211740360","pmk":"060-4211740360","total_ypc":8.1, } }, {"type":"Feature","geometry": G2020_060_4211741960,"properties":{ "geot__geoid":"4211741960","geot__namelsad":"Lawrence township, Tioga County, Pennsylvania","geot__sumlevel":"060","geop__pmk":"2010-060-4211741960","geot__pmk":"2020-060-4211741960","pmk":"060-4211741960","total_ypc":-6.1, } }, {"type":"Feature","geometry": G2020_060_4211742016,"properties":{ "geot__geoid":"4211742016","geot__namelsad":"Lawrenceville borough, Tioga County, Pennsylvania","geot__sumlevel":"060","geop__pmk":"2010-060-4211742016","geot__pmk":"2020-060-4211742016","pmk":"060-4211742016","total_ypc":18.9, } }, {"type":"Feature","geometry": G2020_060_4211743128,"properties":{ "geot__geoid":"4211743128","geot__namelsad":"Liberty borough, Tioga County, Pennsylvania","geot__sumlevel":"060","geop__pmk":"2010-060-4211743128","geot__pmk":"2020-060-4211743128","pmk":"060-4211743128","total_ypc":-6.0, } }, {"type":"Feature","geometry": G2020_060_4211743136,"properties":{ "geot__geoid":"4211743136","geot__namelsad":"Liberty township, Tioga County, Pennsylvania","geot__sumlevel":"060","geop__pmk":"2010-060-4211743136","geot__pmk":"2020-060-4211743136","pmk":"060-4211743136","total_ypc":-0.9, } }, {"type":"Feature","geometry": G2020_060_4211747080,"properties":{ "geot__geoid":"4211747080","geot__namelsad":"Mansfield borough, Tioga County, Pennsylvania","geot__sumlevel":"060","geop__pmk":"2010-060-4211747080","geot__pmk":"2020-060-4211747080","pmk":"060-4211747080","total_ypc":-21.7, } }, {"type":"Feature","geometry": G2020_060_4211748968,"properties":{ "geot__geoid":"4211748968","geot__namelsad":"Middlebury township, Tioga County, Pennsylvania","geot__sumlevel":"060","geop__pmk":"2010-060-4211748968","geot__pmk":"2020-060-4211748968","pmk":"060-4211748968","total_ypc":2.1, } }, {"type":"Feature","geometry": G2020_060_4211751096,"properties":{ "geot__geoid":"4211751096","geot__namelsad":"Morris township, Tioga County, Pennsylvania","geot__sumlevel":"060","geop__pmk":"2010-060-4211751096","geot__pmk":"2020-060-4211751096","pmk":"060-4211751096","total_ypc":-6.1, } }, {"type":"Feature","geometry": G2020_060_4211752960,"properties":{ "geot__geoid":"4211752960","geot__namelsad":"Nelson township, Tioga County, Pennsylvania","geot__sumlevel":"060","geop__pmk":"2010-060-4211752960","geot__pmk":"2020-060-4211752960","pmk":"060-4211752960","total_ypc":-4.2, } }, {"type":"Feature","geometry": G2020_060_4211757224,"properties":{ "geot__geoid":"4211757224","geot__namelsad":"Osceola township, Tioga County, Pennsylvania","geot__sumlevel":"060","geop__pmk":"2010-060-4211757224","geot__pmk":"2020-060-4211757224","pmk":"060-4211757224","total_ypc":-10.3, } }, {"type":"Feature","geometry": G2020_060_4211762960,"properties":{ "geot__geoid":"4211762960","geot__namelsad":"Putnam township, Tioga County, Pennsylvania","geot__sumlevel":"060","geop__pmk":"2010-060-4211762960","geot__pmk":"2020-060-4211762960","pmk":"060-4211762960","total_ypc":-5.9, } }, {"type":"Feature","geometry": G2020_060_4211764624,"properties":{ "geot__geoid":"4211764624","geot__namelsad":"Richmond township, Tioga County, Pennsylvania","geot__sumlevel":"060","geop__pmk":"2010-060-4211764624","geot__pmk":"2020-060-4211764624","pmk":"060-4211764624","total_ypc":-9.5, } }, {"type":"Feature","geometry": G2020_060_4211766232,"properties":{ "geot__geoid":"4211766232","geot__namelsad":"Roseville borough, Tioga County, Pennsylvania","geot__sumlevel":"060","geop__pmk":"2010-060-4211766232","geot__pmk":"2020-060-4211766232","pmk":"060-4211766232","total_ypc":-5.8, } }, {"type":"Feature","geometry": G2020_060_4211766912,"properties":{ "geot__geoid":"4211766912","geot__namelsad":"Rutland township, Tioga County, Pennsylvania","geot__sumlevel":"060","geop__pmk":"2010-060-4211766912","geot__pmk":"2020-060-4211766912","pmk":"060-4211766912","total_ypc":-3.2, } }, {"type":"Feature","geometry": G2020_060_4211770344,"properties":{ "geot__geoid":"4211770344","geot__namelsad":"Shippen township, Tioga County, Pennsylvania","geot__sumlevel":"060","geop__pmk":"2010-060-4211770344","geot__pmk":"2020-060-4211770344","pmk":"060-4211770344","total_ypc":-5.1, } }, {"type":"Feature","geometry": G2020_060_4211775104,"properties":{ "geot__geoid":"4211775104","geot__namelsad":"Sullivan township, Tioga County, Pennsylvania","geot__sumlevel":"060","geop__pmk":"2010-060-4211775104","geot__pmk":"2020-060-4211775104","pmk":"060-4211775104","total_ypc":0.9, } }, {"type":"Feature","geometry": G2020_060_4211776808,"properties":{ "geot__geoid":"4211776808","geot__namelsad":"Tioga borough, Tioga County, Pennsylvania","geot__sumlevel":"060","geop__pmk":"2010-060-4211776808","geot__pmk":"2020-060-4211776808","pmk":"060-4211776808","total_ypc":-9.0, } }, {"type":"Feature","geometry": G2020_060_4211776824,"properties":{ "geot__geoid":"4211776824","geot__namelsad":"Tioga township, Tioga County, Pennsylvania","geot__sumlevel":"060","geop__pmk":"2010-060-4211776824","geot__pmk":"2020-060-4211776824","pmk":"060-4211776824","total_ypc":-5.3, } }, {"type":"Feature","geometry": G2020_060_4211778416,"properties":{ "geot__geoid":"4211778416","geot__namelsad":"Union township, Tioga County, Pennsylvania","geot__sumlevel":"060","geop__pmk":"2010-060-4211778416","geot__pmk":"2020-060-4211778416","pmk":"060-4211778416","total_ypc":-5.4, } }, {"type":"Feature","geometry": G2020_060_4211780936,"properties":{ "geot__geoid":"4211780936","geot__namelsad":"Ward township, Tioga County, Pennsylvania","geot__sumlevel":"060","geop__pmk":"2010-060-4211780936","geot__pmk":"2020-060-4211780936","pmk":"060-4211780936","total_ypc":37.3, } }, {"type":"Feature","geometry": G2020_060_4211782160,"properties":{ "geot__geoid":"4211782160","geot__namelsad":"Wellsboro borough, Tioga County, Pennsylvania","geot__sumlevel":"060","geop__pmk":"2010-060-4211782160","geot__pmk":"2020-060-4211782160","pmk":"060-4211782160","total_ypc":6.3, } }, {"type":"Feature","geometry": G2020_060_4211782968,"properties":{ "geot__geoid":"4211782968","geot__namelsad":"Westfield borough, Tioga County, Pennsylvania","geot__sumlevel":"060","geop__pmk":"2010-060-4211782968","geot__pmk":"2020-060-4211782968","pmk":"060-4211782968","total_ypc":4.5, } }, {"type":"Feature","geometry": G2020_060_4211782976,"properties":{ "geot__geoid":"4211782976","geot__namelsad":"Westfield township, Tioga County, Pennsylvania","geot__sumlevel":"060","geop__pmk":"2010-060-4211782976","geot__pmk":"2020-060-4211782976","pmk":"060-4211782976","total_ypc":-5.6, } }, ]};// aaaa map.on('load', function () { var layers = map.getStyle().layers; var firstSymbolId; for (var i = 0; i < layers.length; i++) { if (layers[i].type === 'symbol') { firstSymbolId = layers[i].id; break; } } //map.addSource("CensusSL",{ "type": "geojson", "data":'/media/jsons/census/d/010/010.json' }); "source": "CensusSL", /"filter": ["any",[">=", "total_ypc", 0]], map.addLayer({"id": "census_main_layer", "type": "fill", "source": { "type": "geojson", "data":sJSON }, 'layout': {'visibility': "visible"}, "paint": {'fill-color': {property: 'total_ypc', stops: stopvar},'fill-opacity':0.8, 'fill-outline-color': '#666666',}}, firstSymbolId); map.on('click', 'census_main_layer', function (e) {new mapboxgl.Popup({ offset: 14 }).setLngLat(e.lngLat).setHTML(onCensusAllFeature(e.features[0])).addTo(map);}); map.on('mouseenter', 'census_main_layer', function () {map.getCanvas().style.cursor = 'pointer';}); map.on('mouseleave', 'census_main_layer', function () {map.getCanvas().style.cursor = '';}); if (typeof G2010_060_4211716680 !== 'undefined') { map.addLayer({'id': 'areaOldBoundary', 'type': 'line', 'source': { "type": "geojson", "data":Gon2Line(G2010_060_4211716680) }, 'layout': { 'line-join': 'round', 'line-cap': 'round' }, 'paint': { 'line-color': '#500b78', 'line-width': 4 } }, firstSymbolId); } map.addLayer({'id': 'areaBoundary', 'type': 'line', 'source': { "type": "geojson", "data":Gon2Line(G2020_060_4211716680) }, 'layout': { 'line-join': 'round', 'line-cap': 'round' }, 'paint': { 'line-color': '#288499', 'line-width': 4 } }, firstSymbolId); }); function getBoundary(ggs){ if (ggs['type'] == 'Polygon'){ return [ggs['coordinates']] } else { return ggs['coordinates'] }}var BounceLine = getBoundary(G2020_060_4211716680); var bounds = new mapboxgl.LngLatBounds();BounceLine.forEach(function(Tpolygon) { Tpolygon.forEach(function(Tline){ Tline.forEach(function(Tpoint){bounds.extend(Tpoint); }) }) });//plvb: dcg object (2020-060-4211716680)map.fitBounds(bounds, { padding: 120 });map.addControl(new mapboxgl.NavigationControl(), 'top-left');