- Your life in data
- 2020 Decennial Census
Select an Area
2020 Decennial Census
Detail
Diversity Index *
2020 | 2010 | Change |
---|---|---|
44 | 24 | 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 | 4,487 | 4,385 | 2.3% | |||
Race | White | 3,680 | 82.0% | 4,076 | 93.0% | -9.7% |
Black | 38 | 0.8% | 42 | 1.0% | -9.5% | |
American Indian | 32 | 0.7% | 28 | 0.6% | 14.3% | |
Asian | 5 | 0.1% | 2 | 0.0% | 150.0% | |
Pacific Islander | 0 | 0.0% | 3 | 0.1% | -100.0% | |
Other | 300 | 6.7% | 176 | 4.0% | 70.5% | |
Two or More | 432 | 9.6% | 58 | 1.3% | 644.8% | |
Ethnicity | Hispanic or Latino | 756 | 16.8% | 479 | 10.9% | 57.8% |
Population by Race/Ethnicity: 18 Years and Over
2020 | 2010 | Change | ||||
---|---|---|---|---|---|---|
# | % | # | % | |||
Total | 3,522 | 3,323 | 6.0% | |||
Race | White | 2,961 | 84.1% | 3,127 | 94.1% | -5.3% |
Black | 30 | 0.9% | 30 | 0.9% | 0.0% | |
American Indian | 28 | 0.8% | 23 | 0.7% | 21.7% | |
Asian | 5 | 0.1% | 2 | 0.1% | 150.0% | |
Pacific Islander | 0 | 0.0% | 3 | 0.1% | -100.0% | |
Other | 195 | 5.5% | 103 | 3.1% | 89.3% | |
Two or More | 303 | 8.6% | 35 | 1.1% | 765.7% | |
Ethnicity | Hispanic or Latino | 499 | 14.2% | 291 | 8.8% | 71.5% |
Diversity Index *
2020 | 2010 | Change |
---|---|---|
44 | 24 | 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 | 2,008 | 2,012 | -0.2% | ||
Occupied | 1,740 | 86.7% | 1,660 | 82.5% | 4.8% |
Vacant | 268 | 13.3% | 352 | 17.5% | -23.9% |
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
1:500,000 scale
Other Areas in Census Tract 9507, Henderson County, Texas
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-48 Texas | 81 15 | 29,145,505 15.9% | 11,441,717 39.3% 20.9% | 11,584,597 39.7% 1.6% | 21,866,700 19.6% | 7,907,319 36.2% 28.8% | 9,437,993 43.2% 4.0% |
050-48213 Henderson County, Texas | 47 13 | 82,150 4.6% | 11,242 13.7% 32.4% | 61,854 75.3% -2.6% | 64,930 7.0% | 7,234 11.1% 42.9% | 50,809 78.3% -0.3% |
140-48213950101 Census Tract 9501.01, Henderson County, Texas | 37 11 | 3,754 18.1% | 229 6.1% 92.4% | 3,026 80.6% 10.9% | 3,000 23.4% | 149 5.0% 98.7% | 2,440 81.3% 15.5% |
140-48213950102 Census Tract 9501.02, Henderson County, Texas | 34 14 | 3,811 10.0% | 298 7.8% 65.6% | 3,179 83.4% 2.2% | 3,054 12.3% | 193 6.3% 77.1% | 2,608 85.4% 4.4% |
140-48213950201 Census Tract 9502.01, Henderson County, Texas | 46 8 | 2,274 4.8% | 387 17.0% 20.6% | 1,697 74.6% 1.1% | 1,739 12.1% | 264 15.2% 34.7% | 1,328 76.4% 6.9% |
140-48213950202 Census Tract 9502.02, Henderson County, Texas | 34 13 | 3,441 11.7% | 366 10.6% 64.9% | 2,862 83.2% 4.3% | 2,709 16.1% | 245 9.0% 96.0% | 2,296 84.8% 7.7% |
140-48213950301 Census Tract 9503.01, Henderson County, Texas | 45 19 | 3,208 1.6% | 490 15.3% 40.8% | 2,486 77.5% -8.9% | 2,478 1.6% | 289 11.7% 52.9% | 2,010 81.1% -8.3% |
140-48213950302 Census Tract 9503.02, Henderson County, Texas | 53 20 | 2,314 -2.4% | 382 16.5% 34.5% | 1,645 71.1% -13.6% | 1,825 -2.1% | 248 13.6% 45.9% | 1,379 75.6% -11.9% |
140-48213950303 Census Tract 9503.03, Henderson County, Texas | 46 13 | 2,418 2.7% | 303 12.5% 3.1% | 1,860 76.9% -2.2% | 2,005 6.0% | 203 10.1% 19.4% | 1,595 79.6% 0.0% |
140-48213950400 Census Tract 9504, Henderson County, Texas | 50 20 | 4,215 -1.3% | 712 16.9% 43.8% | 3,114 73.9% -12.4% | 3,251 -0.3% | 446 13.7% 46.7% | 2,529 77.8% -9.5% |
140-48213950500 Census Tract 9505, Henderson County, Texas | 26 11 | 2,893 16.8% | 219 7.6% 67.2% | 2,553 88.2% 11.5% | 2,186 20.1% | 124 5.7% 67.6% | 1,961 89.7% 14.7% |
140-48213950601 Census Tract 9506.01, Henderson County, Texas | 34 12 | 3,505 1.8% | 376 10.7% 31.5% | 2,926 83.5% -4.1% | 2,827 5.0% | 239 8.5% 46.6% | 2,416 85.5% -1.4% |
140-48213950603 Census Tract 9506.03, Henderson County, Texas | 38 21 | 2,389 10.8% | 271 11.3% 150.9% | 1,977 82.8% 0.7% | 1,932 13.1% | 176 9.1% 183.9% | 1,649 85.4% 3.0% |
140-48213950604 Census Tract 9506.04, Henderson County, Texas | 37 11 | 3,350 34.3% | 270 8.1% 40.6% | 2,723 81.3% 26.9% | 2,472 35.0% | 172 7.0% 56.4% | 2,049 82.9% 26.7% |
140-48213950700 Census Tract 9507, Henderson County, Texas | 44 20 | 4,487 2.3% | 756 16.8% 57.8% | 3,460 77.1% -8.9% | 3,522 6.0% | 499 14.2% 71.5% | 2,809 79.8% -4.9% |
140-48213950801 Census Tract 9508.01, Henderson County, Texas | 34 18 | 2,391 -2.9% | 203 8.5% 78.1% | 2,016 84.3% -10.7% | 2,016 -1.0% | 149 7.4% 96.1% | 1,727 85.7% -8.9% |
140-48213950802 Census Tract 9508.02, Henderson County, Texas | 29 14 | 2,397 3.9% | 169 7.1% 57.9% | 2,086 87.0% -2.3% | 2,020 0.0% | 96 4.8% 20.0% | 1,819 90.0% -3.8% |
140-48213950902 Census Tract 9509.02, Henderson County, Texas | 41 12 | 2,058 -1.3% | 154 7.5% 94.9% | 1,626 79.0% -6.7% | 1,665 -0.1% | 92 5.5% 80.4% | 1,383 83.1% -3.3% |
140-48213950903 Census Tract 9509.03, Henderson County, Texas | 33 14 | 2,354 1.9% | 156 6.6% 14.7% | 1,970 83.7% -5.0% | 1,999 2.9% | 111 5.6% 42.3% | 1,704 85.2% -4.4% |
140-48213950904 Census Tract 9509.04, Henderson County, Texas | 31 10 | 2,962 -0.1% | 202 6.8% 19.5% | 2,540 85.8% -3.8% | 2,442 2.7% | 138 5.7% 35.3% | 2,143 87.8% -1.2% |
140-48213950905 Census Tract 9509.05, Henderson County, Texas | 39 19 | 2,566 12.2% | 332 12.9% 73.8% | 2,084 81.2% 2.2% | 2,060 12.6% | 230 11.2% 72.9% | 1,721 83.5% 4.0% |
140-48213951000 Census Tract 9510, Henderson County, Texas | 70 14 | 1,917 -4.8% | 406 21.2% 15.3% | 1,009 52.6% -17.8% | 1,449 -1.6% | 267 18.4% 28.4% | 811 56.0% -15.0% |
140-48213951101 Census Tract 9511.01, Henderson County, Texas | 29 10 | 1,554 0.2% | 130 8.4% 30.0% | 1,331 85.6% -5.1% | 1,179 2.0% | 83 7.0% 31.7% | 1,026 87.0% -3.5% |
140-48213951102 Census Tract 9511.02, Henderson County, Texas | 29 9 | 2,639 3.6% | 189 7.2% 19.6% | 2,267 85.9% -0.7% | 2,149 4.4% | 127 5.9% 35.1% | 1,856 86.4% -1.5% |
140-48213951201 Census Tract 9512.01, Henderson County, Texas | 72 10 | 3,538 -1.2% | 1,070 30.2% 17.2% | 1,793 50.7% -8.7% | 2,676 4.0% | 679 25.4% 29.1% | 1,486 55.5% -5.3% |
140-48213951202 Census Tract 9512.02, Henderson County, Texas | 86 9 | 2,821 -1.0% | 1,532 54.3% -1.9% | 459 16.3% 9.3% | 1,951 3.8% | 969 49.7% 6.5% | 369 18.9% 7.9% |
140-48213951300 Census Tract 9513, Henderson County, Texas | 61 15 | 5,993 5.7% | 1,167 19.5% 43.4% | 3,788 63.2% -6.1% | 4,795 7.0% | 769 16.0% 48.5% | 3,249 67.8% -3.5% |
140-48213951401 Census Tract 9514.01, Henderson County, Texas | 49 6 | 2,421 -7.1% | 127 5.2% 15.5% | 1,681 69.4% -11.6% | 1,955 -2.9% | 73 3.7% 10.6% | 1,400 71.6% -6.0% |
140-48213951402 Census Tract 9514.02, Henderson County, Texas | 28 6 | 2,421 12.1% | 147 6.1% 51.5% | 2,086 86.2% 9.5% | 1,911 15.7% | 94 4.9% 88.0% | 1,672 87.5% 12.0% |
140-48213951403 Census Tract 9514.03, Henderson County, Texas | 40 17 | 2,059 -3.8% | 199 9.7% 54.3% | 1,610 78.2% -13.8% | 1,663 -0.5% | 110 6.6% 54.9% | 1,374 82.6% -8.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-140-48213950700function 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_140_48213950101,"properties":{ "geot__geoid":"48213950101","geot__namelsad":"Census Tract 9501.01, Henderson County, Texas","geot__sumlevel":"140","geop__pmk":"null","geot__pmk":"2020-140-48213950101","pmk":"140-48213950101","total_ypc":18.1, } }, {"type":"Feature","geometry": G2020_140_48213950102,"properties":{ "geot__geoid":"48213950102","geot__namelsad":"Census Tract 9501.02, Henderson County, Texas","geot__sumlevel":"140","geop__pmk":"null","geot__pmk":"2020-140-48213950102","pmk":"140-48213950102","total_ypc":10.0, } }, {"type":"Feature","geometry": G2020_140_48213950201,"properties":{ "geot__geoid":"48213950201","geot__namelsad":"Census Tract 9502.01, Henderson County, Texas","geot__sumlevel":"140","geop__pmk":"null","geot__pmk":"2020-140-48213950201","pmk":"140-48213950201","total_ypc":4.8, } }, {"type":"Feature","geometry": G2020_140_48213950202,"properties":{ "geot__geoid":"48213950202","geot__namelsad":"Census Tract 9502.02, Henderson County, Texas","geot__sumlevel":"140","geop__pmk":"null","geot__pmk":"2020-140-48213950202","pmk":"140-48213950202","total_ypc":11.7, } }, {"type":"Feature","geometry": G2020_140_48213950301,"properties":{ "geot__geoid":"48213950301","geot__namelsad":"Census Tract 9503.01, Henderson County, Texas","geot__sumlevel":"140","geop__pmk":"null","geot__pmk":"2020-140-48213950301","pmk":"140-48213950301","total_ypc":1.6, } }, {"type":"Feature","geometry": G2020_140_48213950302,"properties":{ "geot__geoid":"48213950302","geot__namelsad":"Census Tract 9503.02, Henderson County, Texas","geot__sumlevel":"140","geop__pmk":"null","geot__pmk":"2020-140-48213950302","pmk":"140-48213950302","total_ypc":-2.4, } }, {"type":"Feature","geometry": G2020_140_48213950303,"properties":{ "geot__geoid":"48213950303","geot__namelsad":"Census Tract 9503.03, Henderson County, Texas","geot__sumlevel":"140","geop__pmk":"null","geot__pmk":"2020-140-48213950303","pmk":"140-48213950303","total_ypc":2.7, } }, {"type":"Feature","geometry": G2020_140_48213950400,"properties":{ "geot__geoid":"48213950400","geot__namelsad":"Census Tract 9504, Henderson County, Texas","geot__sumlevel":"140","geop__pmk":"2010-140-48213950400","geot__pmk":"2020-140-48213950400","pmk":"140-48213950400","total_ypc":-1.3, } }, {"type":"Feature","geometry": G2020_140_48213950500,"properties":{ "geot__geoid":"48213950500","geot__namelsad":"Census Tract 9505, Henderson County, Texas","geot__sumlevel":"140","geop__pmk":"2010-140-48213950500","geot__pmk":"2020-140-48213950500","pmk":"140-48213950500","total_ypc":16.8, } }, {"type":"Feature","geometry": G2020_140_48213950601,"properties":{ "geot__geoid":"48213950601","geot__namelsad":"Census Tract 9506.01, Henderson County, Texas","geot__sumlevel":"140","geop__pmk":"2010-140-48213950601","geot__pmk":"2020-140-48213950601","pmk":"140-48213950601","total_ypc":1.8, } }, {"type":"Feature","geometry": G2020_140_48213950603,"properties":{ "geot__geoid":"48213950603","geot__namelsad":"Census Tract 9506.03, Henderson County, Texas","geot__sumlevel":"140","geop__pmk":"null","geot__pmk":"2020-140-48213950603","pmk":"140-48213950603","total_ypc":10.8, } }, {"type":"Feature","geometry": G2020_140_48213950604,"properties":{ "geot__geoid":"48213950604","geot__namelsad":"Census Tract 9506.04, Henderson County, Texas","geot__sumlevel":"140","geop__pmk":"null","geot__pmk":"2020-140-48213950604","pmk":"140-48213950604","total_ypc":34.3, } }, {"type":"Feature","geometry": G2020_140_48213950700,"properties":{ "geot__geoid":"48213950700","geot__namelsad":"Census Tract 9507, Henderson County, Texas","geot__sumlevel":"140","geop__pmk":"2010-140-48213950700","geot__pmk":"2020-140-48213950700","pmk":"140-48213950700","total_ypc":2.3, } }, {"type":"Feature","geometry": G2020_140_48213950801,"properties":{ "geot__geoid":"48213950801","geot__namelsad":"Census Tract 9508.01, Henderson County, Texas","geot__sumlevel":"140","geop__pmk":"null","geot__pmk":"2020-140-48213950801","pmk":"140-48213950801","total_ypc":-2.9, } }, {"type":"Feature","geometry": G2020_140_48213950802,"properties":{ "geot__geoid":"48213950802","geot__namelsad":"Census Tract 9508.02, Henderson County, Texas","geot__sumlevel":"140","geop__pmk":"null","geot__pmk":"2020-140-48213950802","pmk":"140-48213950802","total_ypc":3.9, } }, {"type":"Feature","geometry": G2020_140_48213950902,"properties":{ "geot__geoid":"48213950902","geot__namelsad":"Census Tract 9509.02, Henderson County, Texas","geot__sumlevel":"140","geop__pmk":"2010-140-48213950902","geot__pmk":"2020-140-48213950902","pmk":"140-48213950902","total_ypc":-1.3, } }, {"type":"Feature","geometry": G2020_140_48213950903,"properties":{ "geot__geoid":"48213950903","geot__namelsad":"Census Tract 9509.03, Henderson County, Texas","geot__sumlevel":"140","geop__pmk":"2010-140-48213950903","geot__pmk":"2020-140-48213950903","pmk":"140-48213950903","total_ypc":1.9, } }, {"type":"Feature","geometry": G2020_140_48213950904,"properties":{ "geot__geoid":"48213950904","geot__namelsad":"Census Tract 9509.04, Henderson County, Texas","geot__sumlevel":"140","geop__pmk":"null","geot__pmk":"2020-140-48213950904","pmk":"140-48213950904","total_ypc":-0.1, } }, {"type":"Feature","geometry": G2020_140_48213950905,"properties":{ "geot__geoid":"48213950905","geot__namelsad":"Census Tract 9509.05, Henderson County, Texas","geot__sumlevel":"140","geop__pmk":"null","geot__pmk":"2020-140-48213950905","pmk":"140-48213950905","total_ypc":12.2, } }, {"type":"Feature","geometry": G2020_140_48213951000,"properties":{ "geot__geoid":"48213951000","geot__namelsad":"Census Tract 9510, Henderson County, Texas","geot__sumlevel":"140","geop__pmk":"2010-140-48213951000","geot__pmk":"2020-140-48213951000","pmk":"140-48213951000","total_ypc":-4.8, } }, {"type":"Feature","geometry": G2020_140_48213951101,"properties":{ "geot__geoid":"48213951101","geot__namelsad":"Census Tract 9511.01, Henderson County, Texas","geot__sumlevel":"140","geop__pmk":"null","geot__pmk":"2020-140-48213951101","pmk":"140-48213951101","total_ypc":0.2, } }, {"type":"Feature","geometry": G2020_140_48213951102,"properties":{ "geot__geoid":"48213951102","geot__namelsad":"Census Tract 9511.02, Henderson County, Texas","geot__sumlevel":"140","geop__pmk":"null","geot__pmk":"2020-140-48213951102","pmk":"140-48213951102","total_ypc":3.6, } }, {"type":"Feature","geometry": G2020_140_48213951201,"properties":{ "geot__geoid":"48213951201","geot__namelsad":"Census Tract 9512.01, Henderson County, Texas","geot__sumlevel":"140","geop__pmk":"null","geot__pmk":"2020-140-48213951201","pmk":"140-48213951201","total_ypc":-1.2, } }, {"type":"Feature","geometry": G2020_140_48213951202,"properties":{ "geot__geoid":"48213951202","geot__namelsad":"Census Tract 9512.02, Henderson County, Texas","geot__sumlevel":"140","geop__pmk":"null","geot__pmk":"2020-140-48213951202","pmk":"140-48213951202","total_ypc":-1.0, } }, {"type":"Feature","geometry": G2020_140_48213951300,"properties":{ "geot__geoid":"48213951300","geot__namelsad":"Census Tract 9513, Henderson County, Texas","geot__sumlevel":"140","geop__pmk":"2010-140-48213951300","geot__pmk":"2020-140-48213951300","pmk":"140-48213951300","total_ypc":5.7, } }, {"type":"Feature","geometry": G2020_140_48213951401,"properties":{ "geot__geoid":"48213951401","geot__namelsad":"Census Tract 9514.01, Henderson County, Texas","geot__sumlevel":"140","geop__pmk":"null","geot__pmk":"2020-140-48213951401","pmk":"140-48213951401","total_ypc":-7.1, } }, {"type":"Feature","geometry": G2020_140_48213951402,"properties":{ "geot__geoid":"48213951402","geot__namelsad":"Census Tract 9514.02, Henderson County, Texas","geot__sumlevel":"140","geop__pmk":"null","geot__pmk":"2020-140-48213951402","pmk":"140-48213951402","total_ypc":12.1, } }, {"type":"Feature","geometry": G2020_140_48213951403,"properties":{ "geot__geoid":"48213951403","geot__namelsad":"Census Tract 9514.03, Henderson County, Texas","geot__sumlevel":"140","geop__pmk":"null","geot__pmk":"2020-140-48213951403","pmk":"140-48213951403","total_ypc":-3.8, } }, ]};// 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': 'areaBoundary', 'type': 'line', 'source': { "type": "geojson", "data":Gon2Line(G2020_140_48213950700) }, '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_140_48213950700); var bounds = new mapboxgl.LngLatBounds();BounceLine.forEach(function(Tpolygon) { Tpolygon.forEach(function(Tline){ Tline.forEach(function(Tpoint){bounds.extend(Tpoint); }) }) });//plvb: dcg object (2020-140-48213950700)map.fitBounds(bounds, { padding: 120 });map.addControl(new mapboxgl.NavigationControl(), 'top-left');