- Your life in data
- 2020 Decennial Census
Select an Area
2020 Decennial Census
Detail
Diversity Index *
2020 | 2010 | Change |
---|---|---|
69 | 49 | 20 |
* 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 | 7,556 | 7,451 | 1.4% | |||
Race | White | 4,361 | 57.7% | 5,550 | 74.5% | -21.4% |
Black | 1,090 | 14.4% | 915 | 12.3% | 19.1% | |
American Indian | 142 | 1.9% | 42 | 0.6% | 238.1% | |
Asian | 237 | 3.1% | 253 | 3.4% | -6.3% | |
Pacific Islander | 2 | 0.0% | 3 | 0.0% | -33.3% | |
Other | 922 | 12.2% | 414 | 5.6% | 122.7% | |
Two or More | 802 | 10.6% | 274 | 3.7% | 192.7% | |
Ethnicity | Hispanic or Latino | 1,608 | 21.3% | 863 | 11.6% | 86.3% |
Population by Race/Ethnicity: 18 Years and Over
2020 | 2010 | Change | ||||
---|---|---|---|---|---|---|
# | % | # | % | |||
Total | 5,773 | 5,785 | -0.2% | |||
Race | White | 3,722 | 64.5% | 4,624 | 79.9% | -19.5% |
Black | 717 | 12.4% | 557 | 9.6% | 28.7% | |
American Indian | 88 | 1.5% | 28 | 0.5% | 214.3% | |
Asian | 198 | 3.4% | 196 | 3.4% | 1.0% | |
Pacific Islander | 2 | 0.0% | 3 | 0.1% | -33.3% | |
Other | 555 | 9.6% | 256 | 4.4% | 116.8% | |
Two or More | 491 | 8.5% | 121 | 2.1% | 305.8% | |
Ethnicity | Hispanic or Latino | 976 | 16.9% | 505 | 8.7% | 93.3% |
Diversity Index *
2020 | 2010 | Change |
---|---|---|
69 | 49 | 20 |
* 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 | 3,463 | 3,435 | 0.8% | ||
Occupied | 3,166 | 91.4% | 3,190 | 92.9% | -0.8% |
Vacant | 297 | 8.6% | 245 | 7.1% | 21.2% |
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 Urbana township, Champaign County, Illinois
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-17 Illinois | 66 11 | 12,812,508 -0.1% | 2,337,410 18.2% 15.3% | 7,472,751 58.3% -8.5% | 9,999,469 3.1% | 1,620,312 16.2% 24.3% | 6,123,548 61.2% -5.9% |
050-17019 Champaign County, Illinois | 61 14 | 205,865 2.4% | 16,666 8.1% 57.1% | 125,280 60.9% -12.1% | 166,418 2.7% | 11,970 7.2% 57.6% | 105,263 63.3% -11.4% |
060-1701903246 Ayers township, Champaign County, Illinois | 17 11 | 421 -7.1% | 10 2.4% 66.7% | 389 92.4% -11.2% | 337 -1.5% | 8 2.4% 33.3% | 315 93.5% -4.0% |
060-1701908914 Brown township, Champaign County, Illinois | 13 6 | 2,107 5.6% | 31 1.5% -20.5% | 1,974 93.7% 2.3% | 1,533 5.3% | 17 1.1% -32.0% | 1,450 94.6% 2.4% |
060-1701912398 Champaign township, Champaign County, Illinois | 51 13 | 11,264 4.0% | 451 4.0% 35.4% | 7,750 68.8% -7.3% | 8,972 4.9% | 293 3.3% 33.8% | 6,492 72.4% -5.5% |
060-1701912411 Champaign City township, Champaign County, Illinois | 68 14 | 88,302 8.9% | 7,717 8.7% 51.0% | 45,409 51.4% -13.6% | 73,479 9.6% | 5,832 7.9% 52.2% | 40,174 54.7% -12.9% |
060-1701915482 Colfax township, Champaign County, Illinois | 26 15 | 219 -17.7% | 5 2.3% 66.7% | 191 87.2% -23.9% | 174 -9.8% | 4 2.3% 300.0% | 156 89.7% -16.1% |
060-1701915976 Compromise township, Champaign County, Illinois | 15 10 | 1,323 -9.6% | 25 1.9% 56.2% | 1,231 93.0% -13.9% | 1,049 -6.6% | 17 1.6% 88.9% | 992 94.6% -10.2% |
060-1701916080 Condit township, Champaign County, Illinois | 14 8 | 486 -2.8% | 12 2.5% 300.0% | 456 93.8% -6.2% | 380 -2.8% | 5 1.3% 150.0% | 361 95.0% -5.7% |
060-1701917588 Crittenden township, Champaign County, Illinois | 9 2 | 337 3.7% | 2 0.6% -66.7% | 314 93.2% 0.0% | 269 11.6% | 2 0.7% -66.7% | 256 95.2% 10.3% |
060-1701918121 Cunningham township, Champaign County, Illinois | 70 10 | 38,336 -7.1% | 3,268 8.5% 50.9% | 18,848 49.2% -20.8% | 33,137 -8.0% | 2,727 8.2% 51.2% | 17,000 51.3% -20.6% |
060-1701921566 East Bend township, Champaign County, Illinois | 16 11 | 623 6.7% | 8 1.3% 700.0% | 573 92.0% 1.4% | 473 3.5% | 2 0.4% 100.0% | 444 93.9% -0.7% |
060-1701933422 Harwood township, Champaign County, Illinois | 33 19 | 610 -2.1% | 82 13.4% 256.5% | 510 83.6% -11.9% | 503 2.2% | 57 11.3% 280.0% | 432 85.9% -7.5% |
060-1701934189 Hensley township, Champaign County, Illinois | 59 8 | 1,033 -19.2% | 96 9.3% 146.2% | 646 62.5% -22.3% | 791 -17.8% | 61 7.7% 190.5% | 550 69.5% -20.7% |
060-1701939688 Kerr township, Champaign County, Illinois | 21 15 | 183 12.3% | 5 2.7% 400.0% | 164 89.6% 3.8% | 134 10.7% | 3 2.2% 200.0% | 120 89.6% 3.4% |
060-1701945187 Ludlow township, Champaign County, Illinois | 60 15 | 4,077 -4.7% | 612 15.0% 140.9% | 2,492 61.1% -19.7% | 3,150 -2.6% | 395 12.5% 156.5% | 2,085 66.2% -17.6% |
060-1701946149 Mahomet township, Champaign County, Illinois | 23 11 | 13,697 8.5% | 457 3.3% 78.5% | 12,179 88.9% 2.7% | 9,751 8.0% | 249 2.6% 81.8% | 8,854 90.8% 3.0% |
060-1701952376 Newcomb township, Champaign County, Illinois | 15 10 | 1,377 6.6% | 28 2.0% 154.5% | 1,284 93.2% 2.1% | 1,026 6.1% | 13 1.3% 62.5% | 967 94.2% 2.1% |
060-1701955288 Ogden township, Champaign County, Illinois | 8 4 | 1,531 -8.9% | 16 1.0% 33.3% | 1,466 95.8% -10.6% | 1,169 -8.5% | 8 0.7% 0.0% | 1,124 96.2% -9.9% |
060-1701959286 Pesotum township, Champaign County, Illinois | 10 | 882 4.4% | 12 1.4% -7.7% | 839 95.1% 4.1% | 675 2.7% | 9 1.3% 80.0% | 647 95.9% 1.9% |
060-1701959546 Philo township, Champaign County, Illinois | 12 7 | 1,897 -2.9% | 21 1.1% 250.0% | 1,781 93.9% -6.7% | 1,456 3.0% | 11 0.8% 120.0% | 1,396 95.9% 0.6% |
060-1701962796 Rantoul township, Champaign County, Illinois | 66 12 | 10,705 -5.0% | 1,689 15.8% 47.8% | 5,937 55.5% -18.2% | 7,809 -3.1% | 975 12.5% 51.4% | 4,890 62.6% -15.2% |
060-1701962952 Raymond township, Champaign County, Illinois | 8 2 | 354 -15.3% | 1 0.3% -66.7% | 340 96.0% -16.3% | 289 -6.5% | 1 0.3% -50.0% | 281 97.2% -7.3% |
060-1701966547 Sadorus township, Champaign County, Illinois | 21 13 | 948 -2.0% | 25 2.6% 212.5% | 855 90.2% -8.0% | 731 -5.3% | 12 1.6% 200.0% | 676 92.5% -10.8% |
060-1701966963 St. Joseph township, Champaign County, Illinois | 15 7 | 5,597 -4.7% | 131 2.3% 12.9% | 5,187 92.7% -8.2% | 4,081 -2.8% | 64 1.6% -5.9% | 3,860 94.6% -5.4% |
060-1701968289 Scott township, Champaign County, Illinois | 24 9 | 999 -20.6% | 27 2.7% 35.0% | 873 87.4% -25.1% | 800 -18.5% | 12 1.5% 9.1% | 723 90.4% -21.2% |
060-1701969888 Sidney township, Champaign County, Illinois | 16 10 | 1,709 -1.4% | 34 2.0% 78.9% | 1,573 92.0% -6.8% | 1,298 2.8% | 16 1.2% 77.8% | 1,216 93.7% -2.3% |
060-1701970382 Somer township, Champaign County, Illinois | 44 10 | 988 -22.1% | 46 4.7% 24.3% | 742 75.1% -27.2% | 792 -24.2% | 32 4.0% 18.5% | 627 79.2% -28.2% |
060-1701970863 South Homer township, Champaign County, Illinois | 16 10 | 1,492 -6.8% | 31 2.1% 93.8% | 1,386 92.9% -10.8% | 1,196 -0.3% | 19 1.6% 137.5% | 1,122 93.8% -4.6% |
060-1701972273 Stanton township, Champaign County, Illinois | 13 9 | 514 1.8% | 10 1.9% 900.0% | 483 94.0% -2.8% | 390 0.0% | 5 1.3% 400.0% | 372 95.4% -2.9% |
060-1701975627 Tolono township, Champaign County, Illinois | 31 16 | 6,298 19.5% | 206 3.3% 148.2% | 5,258 83.5% 8.2% | 4,801 18.8% | 145 3.0% 150.0% | 4,080 85.0% 8.9% |
060-1701977018 Urbana township, Champaign County, Illinois | 69 20 | 7,556 1.4% | 1,608 21.3% 86.3% | 4,150 54.9% -19.9% | 5,773 -0.2% | 976 16.9% 93.3% | 3,601 62.4% -18.3% |
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-1701977018function 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: [-77.3165, 38.8236], // 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_1701903246,"properties":{ "geot__geoid":"1701903246","geot__namelsad":"Ayers township, Champaign County, Illinois","geot__sumlevel":"060","geop__pmk":"2010-060-1701903246","geot__pmk":"2020-060-1701903246","pmk":"060-1701903246","total_ypc":-7.1, } }, {"type":"Feature","geometry": G2020_060_1701908914,"properties":{ "geot__geoid":"1701908914","geot__namelsad":"Brown township, Champaign County, Illinois","geot__sumlevel":"060","geop__pmk":"2010-060-1701908914","geot__pmk":"2020-060-1701908914","pmk":"060-1701908914","total_ypc":5.6, } }, {"type":"Feature","geometry": G2020_060_1701912398,"properties":{ "geot__geoid":"1701912398","geot__namelsad":"Champaign township, Champaign County, Illinois","geot__sumlevel":"060","geop__pmk":"2010-060-1701912398","geot__pmk":"2020-060-1701912398","pmk":"060-1701912398","total_ypc":4.0, } }, {"type":"Feature","geometry": G2020_060_1701912411,"properties":{ "geot__geoid":"1701912411","geot__namelsad":"Champaign City township, Champaign County, Illinois","geot__sumlevel":"060","geop__pmk":"2010-060-1701912411","geot__pmk":"2020-060-1701912411","pmk":"060-1701912411","total_ypc":8.9, } }, {"type":"Feature","geometry": G2020_060_1701915482,"properties":{ "geot__geoid":"1701915482","geot__namelsad":"Colfax township, Champaign County, Illinois","geot__sumlevel":"060","geop__pmk":"2010-060-1701915482","geot__pmk":"2020-060-1701915482","pmk":"060-1701915482","total_ypc":-17.7, } }, {"type":"Feature","geometry": G2020_060_1701915976,"properties":{ "geot__geoid":"1701915976","geot__namelsad":"Compromise township, Champaign County, Illinois","geot__sumlevel":"060","geop__pmk":"2010-060-1701915976","geot__pmk":"2020-060-1701915976","pmk":"060-1701915976","total_ypc":-9.6, } }, {"type":"Feature","geometry": G2020_060_1701916080,"properties":{ "geot__geoid":"1701916080","geot__namelsad":"Condit township, Champaign County, Illinois","geot__sumlevel":"060","geop__pmk":"2010-060-1701916080","geot__pmk":"2020-060-1701916080","pmk":"060-1701916080","total_ypc":-2.8, } }, {"type":"Feature","geometry": G2020_060_1701917588,"properties":{ "geot__geoid":"1701917588","geot__namelsad":"Crittenden township, Champaign County, Illinois","geot__sumlevel":"060","geop__pmk":"2010-060-1701917588","geot__pmk":"2020-060-1701917588","pmk":"060-1701917588","total_ypc":3.7, } }, {"type":"Feature","geometry": G2020_060_1701918121,"properties":{ "geot__geoid":"1701918121","geot__namelsad":"Cunningham township, Champaign County, Illinois","geot__sumlevel":"060","geop__pmk":"2010-060-1701918121","geot__pmk":"2020-060-1701918121","pmk":"060-1701918121","total_ypc":-7.1, } }, {"type":"Feature","geometry": G2020_060_1701921566,"properties":{ "geot__geoid":"1701921566","geot__namelsad":"East Bend township, Champaign County, Illinois","geot__sumlevel":"060","geop__pmk":"2010-060-1701921566","geot__pmk":"2020-060-1701921566","pmk":"060-1701921566","total_ypc":6.7, } }, {"type":"Feature","geometry": G2020_060_1701933422,"properties":{ "geot__geoid":"1701933422","geot__namelsad":"Harwood township, Champaign County, Illinois","geot__sumlevel":"060","geop__pmk":"2010-060-1701933422","geot__pmk":"2020-060-1701933422","pmk":"060-1701933422","total_ypc":-2.1, } }, {"type":"Feature","geometry": G2020_060_1701934189,"properties":{ "geot__geoid":"1701934189","geot__namelsad":"Hensley township, Champaign County, Illinois","geot__sumlevel":"060","geop__pmk":"2010-060-1701934189","geot__pmk":"2020-060-1701934189","pmk":"060-1701934189","total_ypc":-19.2, } }, {"type":"Feature","geometry": G2020_060_1701939688,"properties":{ "geot__geoid":"1701939688","geot__namelsad":"Kerr township, Champaign County, Illinois","geot__sumlevel":"060","geop__pmk":"2010-060-1701939688","geot__pmk":"2020-060-1701939688","pmk":"060-1701939688","total_ypc":12.3, } }, {"type":"Feature","geometry": G2020_060_1701945187,"properties":{ "geot__geoid":"1701945187","geot__namelsad":"Ludlow township, Champaign County, Illinois","geot__sumlevel":"060","geop__pmk":"2010-060-1701945187","geot__pmk":"2020-060-1701945187","pmk":"060-1701945187","total_ypc":-4.7, } }, {"type":"Feature","geometry": G2020_060_1701946149,"properties":{ "geot__geoid":"1701946149","geot__namelsad":"Mahomet township, Champaign County, Illinois","geot__sumlevel":"060","geop__pmk":"2010-060-1701946149","geot__pmk":"2020-060-1701946149","pmk":"060-1701946149","total_ypc":8.5, } }, {"type":"Feature","geometry": G2020_060_1701952376,"properties":{ "geot__geoid":"1701952376","geot__namelsad":"Newcomb township, Champaign County, Illinois","geot__sumlevel":"060","geop__pmk":"2010-060-1701952376","geot__pmk":"2020-060-1701952376","pmk":"060-1701952376","total_ypc":6.6, } }, {"type":"Feature","geometry": G2020_060_1701955288,"properties":{ "geot__geoid":"1701955288","geot__namelsad":"Ogden township, Champaign County, Illinois","geot__sumlevel":"060","geop__pmk":"2010-060-1701955288","geot__pmk":"2020-060-1701955288","pmk":"060-1701955288","total_ypc":-8.9, } }, {"type":"Feature","geometry": G2020_060_1701959286,"properties":{ "geot__geoid":"1701959286","geot__namelsad":"Pesotum township, Champaign County, Illinois","geot__sumlevel":"060","geop__pmk":"2010-060-1701959286","geot__pmk":"2020-060-1701959286","pmk":"060-1701959286","total_ypc":4.4, } }, {"type":"Feature","geometry": G2020_060_1701959546,"properties":{ "geot__geoid":"1701959546","geot__namelsad":"Philo township, Champaign County, Illinois","geot__sumlevel":"060","geop__pmk":"2010-060-1701959546","geot__pmk":"2020-060-1701959546","pmk":"060-1701959546","total_ypc":-2.9, } }, {"type":"Feature","geometry": G2020_060_1701962796,"properties":{ "geot__geoid":"1701962796","geot__namelsad":"Rantoul township, Champaign County, Illinois","geot__sumlevel":"060","geop__pmk":"2010-060-1701962796","geot__pmk":"2020-060-1701962796","pmk":"060-1701962796","total_ypc":-5.0, } }, {"type":"Feature","geometry": G2020_060_1701962952,"properties":{ "geot__geoid":"1701962952","geot__namelsad":"Raymond township, Champaign County, Illinois","geot__sumlevel":"060","geop__pmk":"2010-060-1701962952","geot__pmk":"2020-060-1701962952","pmk":"060-1701962952","total_ypc":-15.3, } }, {"type":"Feature","geometry": G2020_060_1701966547,"properties":{ "geot__geoid":"1701966547","geot__namelsad":"Sadorus township, Champaign County, Illinois","geot__sumlevel":"060","geop__pmk":"2010-060-1701966547","geot__pmk":"2020-060-1701966547","pmk":"060-1701966547","total_ypc":-2.0, } }, {"type":"Feature","geometry": G2020_060_1701966963,"properties":{ "geot__geoid":"1701966963","geot__namelsad":"St. Joseph township, Champaign County, Illinois","geot__sumlevel":"060","geop__pmk":"2010-060-1701966963","geot__pmk":"2020-060-1701966963","pmk":"060-1701966963","total_ypc":-4.7, } }, {"type":"Feature","geometry": G2020_060_1701968289,"properties":{ "geot__geoid":"1701968289","geot__namelsad":"Scott township, Champaign County, Illinois","geot__sumlevel":"060","geop__pmk":"2010-060-1701968289","geot__pmk":"2020-060-1701968289","pmk":"060-1701968289","total_ypc":-20.6, } }, {"type":"Feature","geometry": G2020_060_1701969888,"properties":{ "geot__geoid":"1701969888","geot__namelsad":"Sidney township, Champaign County, Illinois","geot__sumlevel":"060","geop__pmk":"2010-060-1701969888","geot__pmk":"2020-060-1701969888","pmk":"060-1701969888","total_ypc":-1.4, } }, {"type":"Feature","geometry": G2020_060_1701970382,"properties":{ "geot__geoid":"1701970382","geot__namelsad":"Somer township, Champaign County, Illinois","geot__sumlevel":"060","geop__pmk":"2010-060-1701970382","geot__pmk":"2020-060-1701970382","pmk":"060-1701970382","total_ypc":-22.1, } }, {"type":"Feature","geometry": G2020_060_1701970863,"properties":{ "geot__geoid":"1701970863","geot__namelsad":"South Homer township, Champaign County, Illinois","geot__sumlevel":"060","geop__pmk":"2010-060-1701970863","geot__pmk":"2020-060-1701970863","pmk":"060-1701970863","total_ypc":-6.8, } }, {"type":"Feature","geometry": G2020_060_1701972273,"properties":{ "geot__geoid":"1701972273","geot__namelsad":"Stanton township, Champaign County, Illinois","geot__sumlevel":"060","geop__pmk":"2010-060-1701972273","geot__pmk":"2020-060-1701972273","pmk":"060-1701972273","total_ypc":1.8, } }, {"type":"Feature","geometry": G2020_060_1701975627,"properties":{ "geot__geoid":"1701975627","geot__namelsad":"Tolono township, Champaign County, Illinois","geot__sumlevel":"060","geop__pmk":"2010-060-1701975627","geot__pmk":"2020-060-1701975627","pmk":"060-1701975627","total_ypc":19.5, } }, {"type":"Feature","geometry": G2020_060_1701977018,"properties":{ "geot__geoid":"1701977018","geot__namelsad":"Urbana township, Champaign County, Illinois","geot__sumlevel":"060","geop__pmk":"2010-060-1701977018","geot__pmk":"2020-060-1701977018","pmk":"060-1701977018","total_ypc":1.4, } }, ]};// 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_1701977018 !== 'undefined') { map.addLayer({'id': 'areaOldBoundary', 'type': 'line', 'source': { "type": "geojson", "data":Gon2Line(G2010_060_1701977018) }, '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_1701977018) }, '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_1701977018); 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-1701977018)map.fitBounds(bounds, { padding: 120 });map.addControl(new mapboxgl.NavigationControl(), 'top-left');