- Data Central
- 2020 Decennial Census
Select an Area
2020 Decennial Census
Detail
Diversity Index *
2020 | 2010 | Change |
---|---|---|
42 | 33 | 9 |
* 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 | 112,417 | 111,467 | 0.9% | |||
Race | White | 88,106 | 78.4% | 93,787 | 84.1% | -6.1% |
Black | 12,090 | 10.8% | 12,001 | 10.8% | 0.7% | |
American Indian | 431 | 0.4% | 306 | 0.3% | 40.8% | |
Asian | 754 | 0.7% | 583 | 0.5% | 29.3% | |
Pacific Islander | 25 | 0.0% | 21 | 0.0% | 19.0% | |
Other | 3,421 | 3.0% | 2,226 | 2.0% | 53.7% | |
Two or More | 7,590 | 6.8% | 2,543 | 2.3% | 198.5% | |
Ethnicity | Hispanic or Latino | 7,985 | 7.1% | 6,093 | 5.5% | 31.1% |
Population by Race/Ethnicity: 18 Years and Over
2020 | 2010 | Change | ||||
---|---|---|---|---|---|---|
# | % | # | % | |||
Total | 88,485 | 86,085 | 2.8% | |||
Race | White | 71,499 | 80.8% | 74,056 | 86.0% | -3.5% |
Black | 9,047 | 10.2% | 8,844 | 10.3% | 2.3% | |
American Indian | 332 | 0.4% | 230 | 0.3% | 44.3% | |
Asian | 633 | 0.7% | 460 | 0.5% | 37.6% | |
Pacific Islander | 21 | 0.0% | 13 | 0.0% | 61.5% | |
Other | 2,396 | 2.7% | 1,454 | 1.7% | 64.8% | |
Two or More | 4,557 | 5.2% | 1,028 | 1.2% | 343.3% | |
Ethnicity | Hispanic or Latino | 5,084 | 5.7% | 3,714 | 4.3% | 36.9% |
Diversity Index *
2020 | 2010 | Change |
---|---|---|
42 | 33 | 9 |
* 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 | 49,780 | 48,448 | 2.7% | ||
Occupied | 43,799 | 88.0% | 42,331 | 87.4% | 3.5% |
Vacant | 5,981 | 12.0% | 6,117 | 12.6% | -2.2% |
Population in Group Quarters
2020 | |
---|---|
Total Population in Group Quarters | 6,376 |
Institutionalized Population | 6,192 |
Correctional Facilities for Adults | 5,483 |
Juvenile Facilities | 38 |
Nursing Facilities/Skilled-nursing Facilities | 671 |
Other Institutional Facilities | 0 |
Noninstitutionalized Population | 184 |
College/University Student Housing | 34 |
Military Quarters | 0 |
Other Noninstitutional Facilities | 150 |
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
1:500,000 scale
Other Areas in LaPorte County, Indiana
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-18 Indiana | 44 11 | 6,785,528 4.7% | 554,191 8.2% 42.2% | 5,121,004 75.5% -3.1% | 5,192,579 6.5% | 350,929 6.8% 49.2% | 4,065,650 78.3% -0.8% |
050-18091 LaPorte County, Indiana | 42 9 | 112,417 0.9% | 7,985 7.1% 31.1% | 85,957 76.5% -5.2% | 88,485 2.8% | 5,084 5.7% 36.9% | 70,261 79.4% -2.6% |
140-18091040100 Census Tract 401, LaPorte County, Indiana | 61 3 | 4,032 3.4% | 267 6.6% 24.8% | 1,853 46.0% 2.7% | 3,531 2.9% | 212 6.0% 17.8% | 1,701 48.2% 3.8% |
140-18091040300 Census Tract 403, LaPorte County, Indiana | 65 14 | 2,576 -3.8% | 304 11.8% 31.6% | 1,451 56.3% -18.9% | 1,913 -1.2% | 204 10.7% 34.2% | 1,203 62.9% -13.8% |
140-18091040400 Census Tract 404, LaPorte County, Indiana | 48 17 | 3,158 0.5% | 280 8.9% 52.2% | 2,324 73.6% -11.2% | 2,482 1.0% | 179 7.2% 64.2% | 1,917 77.2% -10.0% |
140-18091040500 Census Tract 405, LaPorte County, Indiana | 43 12 | 3,493 1.7% | 259 7.4% 61.9% | 2,651 75.9% -6.6% | 2,952 2.6% | 169 5.7% 61.0% | 2,350 79.6% -4.2% |
140-18091040600 Census Tract 406, LaPorte County, Indiana | 55 10 | 4,941 1.8% | 297 6.0% 35.6% | 3,200 64.8% -7.1% | 3,853 5.2% | 176 4.6% 47.9% | 2,751 71.4% -2.5% |
140-18091040700 Census Tract 407, LaPorte County, Indiana | 59 10 | 1,532 -0.2% | 156 10.2% 24.8% | 966 63.1% -8.5% | 1,124 5.0% | 87 7.7% 29.9% | 774 68.9% -4.9% |
140-18091040800 Census Tract 408, LaPorte County, Indiana | 53 10 | 2,968 -0.7% | 243 8.2% 14.6% | 1,989 67.0% -11.0% | 2,135 -3.4% | 153 7.2% 30.8% | 1,533 71.8% -13.3% |
140-18091040900 Census Tract 409, LaPorte County, Indiana | 60 7 | 2,604 -6.3% | 173 6.6% 36.2% | 715 27.5% -3.6% | 1,807 -6.7% | 88 4.9% 22.2% | 559 30.9% -5.9% |
140-18091041100 Census Tract 411, LaPorte County, Indiana | 29 10 | 2,286 4.9% | 73 3.2% 108.6% | 1,932 84.5% -1.4% | 2,054 10.0% | 59 2.9% 126.9% | 1,778 86.6% 4.4% |
140-18091041200 Census Tract 412, LaPorte County, Indiana | 19 11 | 1,024 -3.3% | 27 2.6% 68.8% | 936 91.4% -7.9% | 943 2.9% | 16 1.7% 45.5% | 876 92.9% -0.8% |
140-18091041300 Census Tract 413, LaPorte County, Indiana | 52 3 | 2,752 4.8% | 138 5.0% 20.0% | 1,834 66.6% 4.2% | 1,995 11.0% | 77 3.9% 48.1% | 1,434 71.9% 8.7% |
140-18091041400 Census Tract 414, LaPorte County, Indiana | 64 8 | 4,688 20.6% | 381 8.1% 40.6% | 2,303 49.1% 0.4% | 3,481 21.9% | 247 7.1% 40.3% | 1,928 55.4% 3.2% |
140-18091041500 Census Tract 415, LaPorte County, Indiana | 25 12 | 4,907 -2.0% | 242 4.9% 112.3% | 4,319 88.0% -7.7% | 3,989 2.3% | 126 3.2% 93.8% | 3,615 90.6% -2.4% |
140-18091041600 Census Tract 416, LaPorte County, Indiana | 29 14 | 6,262 -1.1% | 286 4.6% 70.2% | 5,324 85.0% -9.1% | 5,079 1.6% | 170 3.3% 54.5% | 4,444 87.5% -5.3% |
140-18091041700 Census Tract 417, LaPorte County, Indiana | 23 12 | 3,411 0.5% | 147 4.3% 172.2% | 3,053 89.5% -4.8% | 2,731 3.4% | 98 3.6% 180.0% | 2,464 90.2% -2.3% |
140-18091041800 Census Tract 418, LaPorte County, Indiana | 27 7 | 5,933 -2.0% | 414 7.0% -21.1% | 5,208 87.8% -3.6% | 4,532 0.5% | 261 5.8% -8.1% | 4,061 89.6% -2.5% |
140-18091041900 Census Tract 419, LaPorte County, Indiana | 20 12 | 5,305 -1.6% | 224 4.2% 79.2% | 4,815 90.8% -6.9% | 4,163 1.3% | 116 2.8% 73.1% | 3,868 92.9% -2.9% |
140-18091042000 Census Tract 420, LaPorte County, Indiana | 32 7 | 2,548 1.2% | 214 8.4% 12.0% | 2,132 83.7% -2.0% | 1,980 4.5% | 136 6.9% 28.3% | 1,692 85.5% -0.1% |
140-18091042100 Census Tract 421, LaPorte County, Indiana | 48 17 | 6,455 1.0% | 1,156 17.9% 35.4% | 4,773 73.9% -10.1% | 4,773 0.8% | 701 14.7% 40.5% | 3,748 78.5% -8.5% |
140-18091042200 Census Tract 422, LaPorte County, Indiana | 30 15 | 3,385 5.3% | 234 6.9% 74.6% | 2,879 85.1% -3.0% | 2,689 6.3% | 154 5.7% 105.3% | 2,360 87.8% -1.0% |
140-18091042300 Census Tract 423, LaPorte County, Indiana | 52 7 | 2,297 -1.8% | 361 15.7% 14.6% | 1,593 69.4% -7.2% | 1,829 -0.9% | 243 13.3% 21.5% | 1,322 72.3% -4.9% |
140-18091042401 Census Tract 424.01, LaPorte County, Indiana | 36 7 | 2,910 -2.7% | 315 10.8% -8.2% | 2,359 81.1% -6.5% | 2,175 -2.1% | 206 9.5% 9.6% | 1,828 84.0% -6.9% |
140-18091042402 Census Tract 424.02, LaPorte County, Indiana | 32 12 | 4,890 10.1% | 337 6.9% 40.4% | 4,051 82.8% 1.8% | 3,782 8.9% | 223 5.9% 81.3% | 3,223 85.2% -0.3% |
140-18091042500 Census Tract 425, LaPorte County, Indiana | 24 11 | 5,433 7.4% | 318 5.9% 80.7% | 4,783 88.0% 0.9% | 4,177 8.5% | 203 4.9% 95.2% | 3,753 89.8% 2.3% |
140-18091042601 Census Tract 426.01, LaPorte County, Indiana | 27 12 | 5,010 -6.2% | 291 5.8% 13.2% | 4,367 87.2% -11.9% | 3,958 -1.9% | 178 4.5% 10.6% | 3,519 88.9% -6.9% |
140-18091042602 Census Tract 426.02, LaPorte County, Indiana | 54 -3 | 3,110 -8.6% | 210 6.8% -14.6% | 1,839 59.1% 9.3% | 3,056 -8.7% | 196 6.4% -19.0% | 1,804 59.0% 10.0% |
140-18091042700 Census Tract 427, LaPorte County, Indiana | 26 9 | 5,249 -2.1% | 241 4.6% 22.3% | 4,571 87.1% -6.9% | 4,020 2.8% | 166 4.1% 62.7% | 3,525 87.7% -3.7% |
140-18091042800 Census Tract 428, LaPorte County, Indiana | 15 6 | 3,056 1.7% | 82 2.7% 22.4% | 2,851 93.3% -0.8% | 2,349 5.1% | 41 1.7% 5.1% | 2,217 94.4% 2.6% |
140-18091042900 Census Tract 429, LaPorte County, Indiana | 18 10 | 3,810 1.3% | 151 4.0% 109.7% | 3,483 91.4% -3.8% | 2,970 1.6% | 84 2.8% 75.0% | 2,761 93.0% -2.6% |
140-18091043000 Census Tract 430, LaPorte County, Indiana | 60 5 | 2,392 -0.6% | 164 6.9% 54.7% | 1,403 58.7% 1.8% | 1,963 2.8% | 115 5.9% 43.8% | 1,253 63.8% 5.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-050-18091function 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: [-74.0657, 40.7293], // 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_140_18091040100,"properties":{ "geot__geoid":"18091040100","geot__namelsad":"Census Tract 401, LaPorte County, Indiana","geot__sumlevel":"140","geop__pmk":"2010-140-18091040100","geot__pmk":"2020-140-18091040100","pmk":"140-18091040100","total_ypc":3.4, } }, {"type":"Feature","geometry": G2020_140_18091040300,"properties":{ "geot__geoid":"18091040300","geot__namelsad":"Census Tract 403, LaPorte County, Indiana","geot__sumlevel":"140","geop__pmk":"2010-140-18091040300","geot__pmk":"2020-140-18091040300","pmk":"140-18091040300","total_ypc":-3.8, } }, {"type":"Feature","geometry": G2020_140_18091040400,"properties":{ "geot__geoid":"18091040400","geot__namelsad":"Census Tract 404, LaPorte County, Indiana","geot__sumlevel":"140","geop__pmk":"2010-140-18091040400","geot__pmk":"2020-140-18091040400","pmk":"140-18091040400","total_ypc":0.5, } }, {"type":"Feature","geometry": G2020_140_18091040500,"properties":{ "geot__geoid":"18091040500","geot__namelsad":"Census Tract 405, LaPorte County, Indiana","geot__sumlevel":"140","geop__pmk":"2010-140-18091040500","geot__pmk":"2020-140-18091040500","pmk":"140-18091040500","total_ypc":1.7, } }, {"type":"Feature","geometry": G2020_140_18091040600,"properties":{ "geot__geoid":"18091040600","geot__namelsad":"Census Tract 406, LaPorte County, Indiana","geot__sumlevel":"140","geop__pmk":"2010-140-18091040600","geot__pmk":"2020-140-18091040600","pmk":"140-18091040600","total_ypc":1.8, } }, {"type":"Feature","geometry": G2020_140_18091040700,"properties":{ "geot__geoid":"18091040700","geot__namelsad":"Census Tract 407, LaPorte County, Indiana","geot__sumlevel":"140","geop__pmk":"2010-140-18091040700","geot__pmk":"2020-140-18091040700","pmk":"140-18091040700","total_ypc":-0.2, } }, {"type":"Feature","geometry": G2020_140_18091040800,"properties":{ "geot__geoid":"18091040800","geot__namelsad":"Census Tract 408, LaPorte County, Indiana","geot__sumlevel":"140","geop__pmk":"2010-140-18091040800","geot__pmk":"2020-140-18091040800","pmk":"140-18091040800","total_ypc":-0.7, } }, {"type":"Feature","geometry": G2020_140_18091040900,"properties":{ "geot__geoid":"18091040900","geot__namelsad":"Census Tract 409, LaPorte County, Indiana","geot__sumlevel":"140","geop__pmk":"2010-140-18091040900","geot__pmk":"2020-140-18091040900","pmk":"140-18091040900","total_ypc":-6.3, } }, {"type":"Feature","geometry": G2020_140_18091041100,"properties":{ "geot__geoid":"18091041100","geot__namelsad":"Census Tract 411, LaPorte County, Indiana","geot__sumlevel":"140","geop__pmk":"2010-140-18091041100","geot__pmk":"2020-140-18091041100","pmk":"140-18091041100","total_ypc":4.9, } }, {"type":"Feature","geometry": G2020_140_18091041200,"properties":{ "geot__geoid":"18091041200","geot__namelsad":"Census Tract 412, LaPorte County, Indiana","geot__sumlevel":"140","geop__pmk":"2010-140-18091041200","geot__pmk":"2020-140-18091041200","pmk":"140-18091041200","total_ypc":-3.3, } }, {"type":"Feature","geometry": G2020_140_18091041300,"properties":{ "geot__geoid":"18091041300","geot__namelsad":"Census Tract 413, LaPorte County, Indiana","geot__sumlevel":"140","geop__pmk":"2010-140-18091041300","geot__pmk":"2020-140-18091041300","pmk":"140-18091041300","total_ypc":4.8, } }, {"type":"Feature","geometry": G2020_140_18091041400,"properties":{ "geot__geoid":"18091041400","geot__namelsad":"Census Tract 414, LaPorte County, Indiana","geot__sumlevel":"140","geop__pmk":"2010-140-18091041400","geot__pmk":"2020-140-18091041400","pmk":"140-18091041400","total_ypc":20.6, } }, {"type":"Feature","geometry": G2020_140_18091041500,"properties":{ "geot__geoid":"18091041500","geot__namelsad":"Census Tract 415, LaPorte County, Indiana","geot__sumlevel":"140","geop__pmk":"2010-140-18091041500","geot__pmk":"2020-140-18091041500","pmk":"140-18091041500","total_ypc":-2.0, } }, {"type":"Feature","geometry": G2020_140_18091041600,"properties":{ "geot__geoid":"18091041600","geot__namelsad":"Census Tract 416, LaPorte County, Indiana","geot__sumlevel":"140","geop__pmk":"2010-140-18091041600","geot__pmk":"2020-140-18091041600","pmk":"140-18091041600","total_ypc":-1.1, } }, {"type":"Feature","geometry": G2020_140_18091041700,"properties":{ "geot__geoid":"18091041700","geot__namelsad":"Census Tract 417, LaPorte County, Indiana","geot__sumlevel":"140","geop__pmk":"2010-140-18091041700","geot__pmk":"2020-140-18091041700","pmk":"140-18091041700","total_ypc":0.5, } }, {"type":"Feature","geometry": G2020_140_18091041800,"properties":{ "geot__geoid":"18091041800","geot__namelsad":"Census Tract 418, LaPorte County, Indiana","geot__sumlevel":"140","geop__pmk":"2010-140-18091041800","geot__pmk":"2020-140-18091041800","pmk":"140-18091041800","total_ypc":-2.0, } }, {"type":"Feature","geometry": G2020_140_18091041900,"properties":{ "geot__geoid":"18091041900","geot__namelsad":"Census Tract 419, LaPorte County, Indiana","geot__sumlevel":"140","geop__pmk":"2010-140-18091041900","geot__pmk":"2020-140-18091041900","pmk":"140-18091041900","total_ypc":-1.6, } }, {"type":"Feature","geometry": G2020_140_18091042000,"properties":{ "geot__geoid":"18091042000","geot__namelsad":"Census Tract 420, LaPorte County, Indiana","geot__sumlevel":"140","geop__pmk":"2010-140-18091042000","geot__pmk":"2020-140-18091042000","pmk":"140-18091042000","total_ypc":1.2, } }, {"type":"Feature","geometry": G2020_140_18091042100,"properties":{ "geot__geoid":"18091042100","geot__namelsad":"Census Tract 421, LaPorte County, Indiana","geot__sumlevel":"140","geop__pmk":"2010-140-18091042100","geot__pmk":"2020-140-18091042100","pmk":"140-18091042100","total_ypc":1.0, } }, {"type":"Feature","geometry": G2020_140_18091042200,"properties":{ "geot__geoid":"18091042200","geot__namelsad":"Census Tract 422, LaPorte County, Indiana","geot__sumlevel":"140","geop__pmk":"2010-140-18091042200","geot__pmk":"2020-140-18091042200","pmk":"140-18091042200","total_ypc":5.3, } }, {"type":"Feature","geometry": G2020_140_18091042300,"properties":{ "geot__geoid":"18091042300","geot__namelsad":"Census Tract 423, LaPorte County, Indiana","geot__sumlevel":"140","geop__pmk":"2010-140-18091042300","geot__pmk":"2020-140-18091042300","pmk":"140-18091042300","total_ypc":-1.8, } }, {"type":"Feature","geometry": G2020_140_18091042401,"properties":{ "geot__geoid":"18091042401","geot__namelsad":"Census Tract 424.01, LaPorte County, Indiana","geot__sumlevel":"140","geop__pmk":"null","geot__pmk":"2020-140-18091042401","pmk":"140-18091042401","total_ypc":-2.7, } }, {"type":"Feature","geometry": G2020_140_18091042402,"properties":{ "geot__geoid":"18091042402","geot__namelsad":"Census Tract 424.02, LaPorte County, Indiana","geot__sumlevel":"140","geop__pmk":"null","geot__pmk":"2020-140-18091042402","pmk":"140-18091042402","total_ypc":10.1, } }, {"type":"Feature","geometry": G2020_140_18091042500,"properties":{ "geot__geoid":"18091042500","geot__namelsad":"Census Tract 425, LaPorte County, Indiana","geot__sumlevel":"140","geop__pmk":"2010-140-18091042500","geot__pmk":"2020-140-18091042500","pmk":"140-18091042500","total_ypc":7.4, } }, {"type":"Feature","geometry": G2020_140_18091042601,"properties":{ "geot__geoid":"18091042601","geot__namelsad":"Census Tract 426.01, LaPorte County, Indiana","geot__sumlevel":"140","geop__pmk":"null","geot__pmk":"2020-140-18091042601","pmk":"140-18091042601","total_ypc":-6.2, } }, {"type":"Feature","geometry": G2020_140_18091042602,"properties":{ "geot__geoid":"18091042602","geot__namelsad":"Census Tract 426.02, LaPorte County, Indiana","geot__sumlevel":"140","geop__pmk":"null","geot__pmk":"2020-140-18091042602","pmk":"140-18091042602","total_ypc":-8.6, } }, {"type":"Feature","geometry": G2020_140_18091042700,"properties":{ "geot__geoid":"18091042700","geot__namelsad":"Census Tract 427, LaPorte County, Indiana","geot__sumlevel":"140","geop__pmk":"2010-140-18091042700","geot__pmk":"2020-140-18091042700","pmk":"140-18091042700","total_ypc":-2.1, } }, {"type":"Feature","geometry": G2020_140_18091042800,"properties":{ "geot__geoid":"18091042800","geot__namelsad":"Census Tract 428, LaPorte County, Indiana","geot__sumlevel":"140","geop__pmk":"2010-140-18091042800","geot__pmk":"2020-140-18091042800","pmk":"140-18091042800","total_ypc":1.7, } }, {"type":"Feature","geometry": G2020_140_18091042900,"properties":{ "geot__geoid":"18091042900","geot__namelsad":"Census Tract 429, LaPorte County, Indiana","geot__sumlevel":"140","geop__pmk":"2010-140-18091042900","geot__pmk":"2020-140-18091042900","pmk":"140-18091042900","total_ypc":1.3, } }, {"type":"Feature","geometry": G2020_140_18091043000,"properties":{ "geot__geoid":"18091043000","geot__namelsad":"Census Tract 430, LaPorte County, Indiana","geot__sumlevel":"140","geop__pmk":"2010-140-18091043000","geot__pmk":"2020-140-18091043000","pmk":"140-18091043000","total_ypc":-0.6, } }, ]};var pJSON = {"type":"FeatureCollection", "features":[ {"type":"Feature","geometry": G2020_060_1809110720,"properties":{ "geot__geoid":"1809110720","geot__namelsad":"Cass township, LaPorte County, Indiana","geot__sumlevel":"060","geop__pmk":"2010-060-1809110720","geot__pmk":"2020-060-1809110720","pmk":"060-1809110720","total_ypc":-0.4, } }, {"type":"Feature","geometry": G2020_060_1809111494,"properties":{ "geot__geoid":"1809111494","geot__namelsad":"Center township, LaPorte County, Indiana","geot__sumlevel":"060","geop__pmk":"2010-060-1809111494","geot__pmk":"2020-060-1809111494","pmk":"060-1809111494","total_ypc":0.8, } }, {"type":"Feature","geometry": G2020_060_1809113744,"properties":{ "geot__geoid":"1809113744","geot__namelsad":"Clinton township, LaPorte County, Indiana","geot__sumlevel":"060","geop__pmk":"2010-060-1809113744","geot__pmk":"2020-060-1809113744","pmk":"060-1809113744","total_ypc":2.9, } }, {"type":"Feature","geometry": G2020_060_1809115040,"properties":{ "geot__geoid":"1809115040","geot__namelsad":"Coolspring township, LaPorte County, Indiana","geot__sumlevel":"060","geop__pmk":"2010-060-1809115040","geot__pmk":"2020-060-1809115040","pmk":"060-1809115040","total_ypc":6.6, } }, {"type":"Feature","geometry": G2020_060_1809117974,"properties":{ "geot__geoid":"1809117974","geot__namelsad":"Dewey township, LaPorte County, Indiana","geot__sumlevel":"060","geop__pmk":"2010-060-1809117974","geot__pmk":"2020-060-1809117974","pmk":"060-1809117974","total_ypc":7.0, } }, {"type":"Feature","geometry": G2020_060_1809126224,"properties":{ "geot__geoid":"1809126224","geot__namelsad":"Galena township, LaPorte County, Indiana","geot__sumlevel":"060","geop__pmk":"2010-060-1809126224","geot__pmk":"2020-060-1809126224","pmk":"060-1809126224","total_ypc":4.3, } }, {"type":"Feature","geometry": G2020_060_1809131198,"properties":{ "geot__geoid":"1809131198","geot__namelsad":"Hanna township, LaPorte County, Indiana","geot__sumlevel":"060","geop__pmk":"2010-060-1809131198","geot__pmk":"2020-060-1809131198","pmk":"060-1809131198","total_ypc":1.1, } }, {"type":"Feature","geometry": G2020_060_1809135068,"properties":{ "geot__geoid":"1809135068","geot__namelsad":"Hudson township, LaPorte County, Indiana","geot__sumlevel":"060","geop__pmk":"2010-060-1809135068","geot__pmk":"2020-060-1809135068","pmk":"060-1809135068","total_ypc":-2.7, } }, {"type":"Feature","geometry": G2020_060_1809138736,"properties":{ "geot__geoid":"1809138736","geot__namelsad":"Johnson township, LaPorte County, Indiana","geot__sumlevel":"060","geop__pmk":"2010-060-1809138736","geot__pmk":"2020-060-1809138736","pmk":"060-1809138736","total_ypc":4.5, } }, {"type":"Feature","geometry": G2020_060_1809139186,"properties":{ "geot__geoid":"1809139186","geot__namelsad":"Kankakee township, LaPorte County, Indiana","geot__sumlevel":"060","geop__pmk":"2010-060-1809139186","geot__pmk":"2020-060-1809139186","pmk":"060-1809139186","total_ypc":-1.9, } }, {"type":"Feature","geometry": G2020_060_1809143812,"properties":{ "geot__geoid":"1809143812","geot__namelsad":"Lincoln township, LaPorte County, Indiana","geot__sumlevel":"060","geop__pmk":"2010-060-1809143812","geot__pmk":"2020-060-1809143812","pmk":"060-1809143812","total_ypc":2.9, } }, {"type":"Feature","geometry": G2020_060_1809148780,"properties":{ "geot__geoid":"1809148780","geot__namelsad":"Michigan township, LaPorte County, Indiana","geot__sumlevel":"060","geop__pmk":"2010-060-1809148780","geot__pmk":"2020-060-1809148780","pmk":"060-1809148780","total_ypc":0.0, } }, {"type":"Feature","geometry": G2020_060_1809152830,"properties":{ "geot__geoid":"1809152830","geot__namelsad":"New Durham township, LaPorte County, Indiana","geot__sumlevel":"060","geop__pmk":"2010-060-1809152830","geot__pmk":"2020-060-1809152830","pmk":"060-1809152830","total_ypc":-6.5, } }, {"type":"Feature","geometry": G2020_060_1809154090,"properties":{ "geot__geoid":"1809154090","geot__namelsad":"Noble township, LaPorte County, Indiana","geot__sumlevel":"060","geop__pmk":"2010-060-1809154090","geot__pmk":"2020-060-1809154090","pmk":"060-1809154090","total_ypc":-1.6, } }, {"type":"Feature","geometry": G2020_060_1809160408,"properties":{ "geot__geoid":"1809160408","geot__namelsad":"Pleasant township, LaPorte County, Indiana","geot__sumlevel":"060","geop__pmk":"2010-060-1809160408","geot__pmk":"2020-060-1809160408","pmk":"060-1809160408","total_ypc":3.6, } }, {"type":"Feature","geometry": G2020_060_1809161596,"properties":{ "geot__geoid":"1809161596","geot__namelsad":"Prairie township, LaPorte County, Indiana","geot__sumlevel":"060","geop__pmk":"2010-060-1809161596","geot__pmk":"2020-060-1809161596","pmk":"060-1809161596","total_ypc":-3.3, } }, {"type":"Feature","geometry": G2020_060_1809168346,"properties":{ "geot__geoid":"1809168346","geot__namelsad":"Scipio township, LaPorte County, Indiana","geot__sumlevel":"060","geop__pmk":"2010-060-1809168346","geot__pmk":"2020-060-1809168346","pmk":"060-1809168346","total_ypc":14.2, } }, {"type":"Feature","geometry": G2020_060_1809172170,"properties":{ "geot__geoid":"1809172170","geot__namelsad":"Springfield township, LaPorte County, Indiana","geot__sumlevel":"060","geop__pmk":"2010-060-1809172170","geot__pmk":"2020-060-1809172170","pmk":"060-1809172170","total_ypc":-6.8, } }, {"type":"Feature","geometry": G2020_060_1809177408,"properties":{ "geot__geoid":"1809177408","geot__namelsad":"Union township, LaPorte County, Indiana","geot__sumlevel":"060","geop__pmk":"2010-060-1809177408","geot__pmk":"2020-060-1809177408","pmk":"060-1809177408","total_ypc":-2.9, } }, {"type":"Feature","geometry": G2020_060_1809180774,"properties":{ "geot__geoid":"1809180774","geot__namelsad":"Washington township, LaPorte County, Indiana","geot__sumlevel":"060","geop__pmk":"2010-060-1809180774","geot__pmk":"2020-060-1809180774","pmk":"060-1809180774","total_ypc":-10.8, } }, {"type":"Feature","geometry": G2020_060_1809184554,"properties":{ "geot__geoid":"1809184554","geot__namelsad":"Wills township, LaPorte County, Indiana","geot__sumlevel":"060","geop__pmk":"2010-060-1809184554","geot__pmk":"2020-060-1809184554","pmk":"060-1809184554","total_ypc":-0.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 = '';}); map.addLayer({"id": "census_cousub_layer", "type": "fill", "source": { "type": "geojson", "data":pJSON }, 'layout': {'visibility': "none"}, "paint": {'fill-color': {property: 'total_ypc', stops: stopvar},'fill-opacity':0.8, 'fill-outline-color': '#666666',}}, firstSymbolId); map.on('click', 'census_cousub_layer', function (e) {new mapboxgl.Popup({ offset: 14 }).setLngLat(e.lngLat).setHTML(onCensusAllFeature(e.features[0])).addTo(map);}); map.on('mouseenter', 'census_cousub_layer', function () {map.getCanvas().style.cursor = 'pointer';}); map.on('mouseleave', 'census_cousub_layer', function () {map.getCanvas().style.cursor = '';}); map.addLayer({'id': 'areaBoundary', 'type': 'line', 'source': { "type": "geojson", "data":Gon2Line(G2020_050_18091) }, 'layout': { 'line-join': 'round', 'line-cap': 'round' }, 'paint': { 'line-color': '#288499', 'line-width': 4 } }, firstSymbolId); }); var toggleableLayerIds = [['census_main_layer','Tract'],['census_cousub_layer','City/Town'] ]; for (var i = 0; i < toggleableLayerIds.length; i++) { var id = toggleableLayerIds[i][0]; if (id === 'census_main_layer'){ var otrid = 'census_cousub_layer';} else {var otrid = 'census_main_layer';} var idstr = toggleableLayerIds[i][1]; var link = document.createElement('a'); link.href = '#'; if(i == 0){link.className = 'active';}else{link.className = 'notactive';} link.tgid = id; link.oid = otrid; link.textContent = idstr; link.setAttribute("id",id+'_id') link.onclick = function (e) { var clickedLayer = this.tgid; var anotherLayer = this.oid; e.preventDefault(); e.stopPropagation(); var visibility = map.getLayoutProperty(clickedLayer, 'visibility'); $('.active').each(function() {$(this).removeClass().addClass( "notactive" ); });// $('#ue_county_id').removeClass().addClass( "notactive" );// $('#ue_state_id').removeClass().addClass( "notactive" ); this.className = 'active'; for (tli of toggleableLayerIds) {if(tli[0] != this.tgid){map.setLayoutProperty(tli[0], 'visibility', 'none')}} map.setLayoutProperty(clickedLayer, 'visibility', 'visible');// map.setLayoutProperty(anotherLayer, 'visibility', 'none'); }; var layers = document.getElementById('mapmenu'); layers.appendChild(link);}function getBoundary(ggs){ if (ggs['type'] == 'Polygon'){ return [ggs['coordinates']] } else { return ggs['coordinates'] }}var BounceLine = getBoundary(G2020_050_18091); var bounds = new mapboxgl.LngLatBounds();BounceLine.forEach(function(Tpolygon) { Tpolygon.forEach(function(Tline){ Tline.forEach(function(Tpoint){bounds.extend(Tpoint); }) }) });//plvb: dcg object (2020-050-18091)map.fitBounds(bounds, { padding: 120 });map.addControl(new mapboxgl.NavigationControl(), 'top-left');