- Data Central
- 2020 Decennial Census
Select an Area
2020 Decennial Census
Detail
Diversity Index *
2020 | 2010 | Change |
---|---|---|
17 | 12 | 5 |
* 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 | 66,497 | 70,400 | -5.5% | |||
Race | White | 60,831 | 91.5% | 66,206 | 94.0% | -8.1% |
Black | 2,117 | 3.2% | 2,834 | 4.0% | -25.3% | |
American Indian | 89 | 0.1% | 88 | 0.1% | 1.1% | |
Asian | 266 | 0.4% | 259 | 0.4% | 2.7% | |
Pacific Islander | 11 | 0.0% | 7 | 0.0% | 57.1% | |
Other | 337 | 0.5% | 109 | 0.2% | 209.2% | |
Two or More | 2,846 | 4.3% | 897 | 1.3% | 217.3% | |
Ethnicity | Hispanic or Latino | 824 | 1.2% | 429 | 0.6% | 92.1% |
Population by Race/Ethnicity: 18 Years and Over
2020 | 2010 | Change | ||||
---|---|---|---|---|---|---|
# | % | # | % | |||
Total | 53,782 | 56,545 | -4.9% | |||
Race | White | 49,564 | 92.2% | 53,313 | 94.3% | -7.0% |
Black | 1,860 | 3.5% | 2,485 | 4.4% | -25.2% | |
American Indian | 76 | 0.1% | 67 | 0.1% | 13.4% | |
Asian | 226 | 0.4% | 202 | 0.4% | 11.9% | |
Pacific Islander | 10 | 0.0% | 6 | 0.0% | 66.7% | |
Other | 236 | 0.4% | 66 | 0.1% | 257.6% | |
Two or More | 1,810 | 3.4% | 406 | 0.7% | 345.8% | |
Ethnicity | Hispanic or Latino | 545 | 1.0% | 298 | 0.5% | 82.9% |
Diversity Index *
2020 | 2010 | Change |
---|---|---|
17 | 12 | 5 |
* 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 | 31,618 | 32,452 | -2.6% | ||
Occupied | 27,333 | 86.4% | 28,679 | 88.4% | -4.7% |
Vacant | 4,285 | 13.6% | 3,773 | 11.6% | 13.6% |
Population in Group Quarters
2020 | |
---|---|
Total Population in Group Quarters | 3,757 |
Institutionalized Population | 3,525 |
Correctional Facilities for Adults | 2,771 |
Juvenile Facilities | 37 |
Nursing Facilities/Skilled-nursing Facilities | 717 |
Other Institutional Facilities | 0 |
Noninstitutionalized Population | 232 |
College/University Student Housing | 0 |
Military Quarters | 0 |
Other Noninstitutional Facilities | 232 |
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 Belmont County, Ohio
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-39 Ohio | 42 9 | 11,799,448 2.3% | 521,308 4.4% 47.0% | 8,954,135 75.9% -4.3% | 9,207,562 4.6% | 336,028 3.6% 53.7% | 7,218,892 78.4% -1.5% |
050-39013 Belmont County, Ohio | 17 5 | 66,497 -5.5% | 824 1.2% 92.1% | 60,536 91.0% -8.1% | 53,782 -4.9% | 545 1.0% 82.9% | 49,374 91.8% -7.0% |
140-39013010100 Census Tract 101, Belmont County, Ohio | 17 7 | 3,733 -12.5% | 44 1.2% 193.3% | 3,402 91.1% -16.1% | 3,049 -11.3% | 34 1.1% 209.1% | 2,803 91.9% -14.9% |
140-39013010200 Census Tract 102, Belmont County, Ohio | 21 8 | 3,516 -10.0% | 32 0.9% 88.2% | 3,124 88.9% -14.3% | 2,874 -9.1% | 17 0.6% 13.3% | 2,622 91.2% -12.0% |
140-39013010300 Census Tract 103, Belmont County, Ohio | 9 4 | 3,401 -0.7% | 15 0.4% 7.1% | 3,242 95.3% -2.9% | 2,736 -2.5% | 9 0.3% -10.0% | 2,635 96.3% -4.3% |
140-39013010600 Census Tract 106, Belmont County, Ohio | 11 6 | 3,540 -4.6% | 25 0.7% -16.7% | 3,342 94.4% -7.7% | 2,745 -4.7% | 13 0.5% -27.8% | 2,613 95.2% -7.2% |
140-39013010700 Census Tract 107, Belmont County, Ohio | 15 9 | 2,687 -0.3% | 32 1.2% 146.2% | 2,496 92.9% -4.1% | 2,109 -1.4% | 11 0.5% 22.2% | 1,990 94.4% -4.2% |
140-39013010802 Census Tract 108.02, Belmont County, Ohio | 8 3 | 2,162 -6.9% | 10 0.5% 233.3% | 2,075 96.0% -8.3% | 1,695 -4.8% | 4 0.2% 300.0% | 1,648 97.2% -6.0% |
140-39013010901 Census Tract 109.01, Belmont County, Ohio | 6 -2 | 1,733 4.7% | 10 0.6% 0.0% | 1,687 97.3% 6.4% | 1,329 1.3% | 5 0.4% -16.7% | 1,299 97.7% 2.0% |
140-39013010902 Census Tract 109.02, Belmont County, Ohio | 11 5 | 4,875 -5.2% | 39 0.8% 44.4% | 4,613 94.6% -7.5% | 3,796 -5.8% | 22 0.6% 37.5% | 3,614 95.2% -8.1% |
140-39013011000 Census Tract 110, Belmont County, Ohio | 9 5 | 4,770 -4.8% | 39 0.8% 290.0% | 4,563 95.7% -7.2% | 3,768 -3.2% | 31 0.8% 210.0% | 3,621 96.1% -5.5% |
140-39013011200 Census Tract 112, Belmont County, Ohio | 11 7 | 3,167 -9.3% | 55 1.7% 266.7% | 2,983 94.2% -12.9% | 2,596 -7.4% | 46 1.8% 411.1% | 2,462 94.8% -10.6% |
140-39013011300 Census Tract 113, Belmont County, Ohio | 10 7 | 3,696 -8.0% | 57 1.5% 200.0% | 3,525 95.4% -11.0% | 3,051 -8.0% | 33 1.1% 153.8% | 2,939 96.3% -10.1% |
140-39013011400 Census Tract 114, Belmont County, Ohio | 12 8 | 4,292 -4.7% | 29 0.7% 190.0% | 4,017 93.6% -8.9% | 3,491 -3.8% | 17 0.5% 325.0% | 3,291 94.3% -7.8% |
140-39013011500 Census Tract 115, Belmont County, Ohio | 22 12 | 1,435 -12.3% | 29 2.0% 81.2% | 1,287 89.7% -17.2% | 1,173 -9.8% | 14 1.2% 75.0% | 1,066 90.9% -14.9% |
140-39013011600 Census Tract 116, Belmont County, Ohio | 31 13 | 1,151 -7.9% | 23 2.0% 130.0% | 959 83.3% -15.1% | 909 -4.1% | 21 2.3% 250.0% | 763 83.9% -11.7% |
140-39013011700 Census Tract 117, Belmont County, Ohio | 32 9 | 1,285 -8.6% | 28 2.2% 250.0% | 1,064 82.8% -13.2% | 993 -4.2% | 21 2.1% 950.0% | 847 85.3% -8.4% |
140-39013011900 Census Tract 119, Belmont County, Ohio | 24 10 | 2,786 -9.3% | 38 1.4% 111.1% | 2,439 87.5% -14.1% | 2,206 -9.8% | 23 1.0% 130.0% | 1,970 89.3% -14.3% |
140-39013012000 Census Tract 120, Belmont County, Ohio | 29 11 | 2,459 -7.0% | 33 1.3% 65.0% | 2,077 84.5% -13.0% | 1,816 -7.7% | 18 1.0% 80.0% | 1,593 87.7% -13.1% |
140-39013012100 Census Tract 121, Belmont County, Ohio | 26 9 | 1,128 -11.7% | 15 1.3% 150.0% | 965 85.5% -16.9% | 949 -13.8% | 11 1.2% 120.0% | 835 88.0% -17.9% |
140-39013012201 Census Tract 122.01, Belmont County, Ohio | 11 6 | 1,810 -3.3% | 9 0.5% -52.6% | 1,718 94.9% -5.5% | 1,457 -1.9% | 5 0.3% -50.0% | 1,392 95.5% -4.4% |
140-39013012202 Census Tract 122.02, Belmont County, Ohio | 42 -6 | 4,469 1.2% | 95 2.1% 13.1% | 3,264 73.0% 17.4% | 4,161 2.7% | 85 2.0% 2.4% | 2,988 71.8% 23.0% |
140-39013012300 Census Tract 123, Belmont County, Ohio | 16 9 | 4,078 -0.6% | 75 1.8% 226.1% | 3,752 92.0% -5.1% | 3,389 -1.4% | 48 1.4% 242.9% | 3,166 93.4% -5.2% |
140-39013012400 Census Tract 124, Belmont County, Ohio | 18 4 | 4,324 -5.6% | 92 2.1% 119.0% | 3,942 91.2% -7.2% | 3,490 -2.8% | 57 1.6% 103.6% | 3,217 92.2% -4.6% |
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-39013function 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_140_39013010100,"properties":{ "geot__geoid":"39013010100","geot__namelsad":"Census Tract 101, Belmont County, Ohio","geot__sumlevel":"140","geop__pmk":"2010-140-39013010100","geot__pmk":"2020-140-39013010100","pmk":"140-39013010100","total_ypc":-12.5, } }, {"type":"Feature","geometry": G2020_140_39013010200,"properties":{ "geot__geoid":"39013010200","geot__namelsad":"Census Tract 102, Belmont County, Ohio","geot__sumlevel":"140","geop__pmk":"2010-140-39013010200","geot__pmk":"2020-140-39013010200","pmk":"140-39013010200","total_ypc":-10.0, } }, {"type":"Feature","geometry": G2020_140_39013010300,"properties":{ "geot__geoid":"39013010300","geot__namelsad":"Census Tract 103, Belmont County, Ohio","geot__sumlevel":"140","geop__pmk":"2010-140-39013010300","geot__pmk":"2020-140-39013010300","pmk":"140-39013010300","total_ypc":-0.7, } }, {"type":"Feature","geometry": G2020_140_39013010600,"properties":{ "geot__geoid":"39013010600","geot__namelsad":"Census Tract 106, Belmont County, Ohio","geot__sumlevel":"140","geop__pmk":"2010-140-39013010600","geot__pmk":"2020-140-39013010600","pmk":"140-39013010600","total_ypc":-4.6, } }, {"type":"Feature","geometry": G2020_140_39013010700,"properties":{ "geot__geoid":"39013010700","geot__namelsad":"Census Tract 107, Belmont County, Ohio","geot__sumlevel":"140","geop__pmk":"2010-140-39013010700","geot__pmk":"2020-140-39013010700","pmk":"140-39013010700","total_ypc":-0.3, } }, {"type":"Feature","geometry": G2020_140_39013010802,"properties":{ "geot__geoid":"39013010802","geot__namelsad":"Census Tract 108.02, Belmont County, Ohio","geot__sumlevel":"140","geop__pmk":"2010-140-39013010802","geot__pmk":"2020-140-39013010802","pmk":"140-39013010802","total_ypc":-6.9, } }, {"type":"Feature","geometry": G2020_140_39013010901,"properties":{ "geot__geoid":"39013010901","geot__namelsad":"Census Tract 109.01, Belmont County, Ohio","geot__sumlevel":"140","geop__pmk":"null","geot__pmk":"2020-140-39013010901","pmk":"140-39013010901","total_ypc":4.7, } }, {"type":"Feature","geometry": G2020_140_39013010902,"properties":{ "geot__geoid":"39013010902","geot__namelsad":"Census Tract 109.02, Belmont County, Ohio","geot__sumlevel":"140","geop__pmk":"null","geot__pmk":"2020-140-39013010902","pmk":"140-39013010902","total_ypc":-5.2, } }, {"type":"Feature","geometry": G2020_140_39013011000,"properties":{ "geot__geoid":"39013011000","geot__namelsad":"Census Tract 110, Belmont County, Ohio","geot__sumlevel":"140","geop__pmk":"2010-140-39013011000","geot__pmk":"2020-140-39013011000","pmk":"140-39013011000","total_ypc":-4.8, } }, {"type":"Feature","geometry": G2020_140_39013011200,"properties":{ "geot__geoid":"39013011200","geot__namelsad":"Census Tract 112, Belmont County, Ohio","geot__sumlevel":"140","geop__pmk":"2010-140-39013011200","geot__pmk":"2020-140-39013011200","pmk":"140-39013011200","total_ypc":-9.3, } }, {"type":"Feature","geometry": G2020_140_39013011300,"properties":{ "geot__geoid":"39013011300","geot__namelsad":"Census Tract 113, Belmont County, Ohio","geot__sumlevel":"140","geop__pmk":"2010-140-39013011300","geot__pmk":"2020-140-39013011300","pmk":"140-39013011300","total_ypc":-8.0, } }, {"type":"Feature","geometry": G2020_140_39013011400,"properties":{ "geot__geoid":"39013011400","geot__namelsad":"Census Tract 114, Belmont County, Ohio","geot__sumlevel":"140","geop__pmk":"2010-140-39013011400","geot__pmk":"2020-140-39013011400","pmk":"140-39013011400","total_ypc":-4.7, } }, {"type":"Feature","geometry": G2020_140_39013011500,"properties":{ "geot__geoid":"39013011500","geot__namelsad":"Census Tract 115, Belmont County, Ohio","geot__sumlevel":"140","geop__pmk":"2010-140-39013011500","geot__pmk":"2020-140-39013011500","pmk":"140-39013011500","total_ypc":-12.3, } }, {"type":"Feature","geometry": G2020_140_39013011600,"properties":{ "geot__geoid":"39013011600","geot__namelsad":"Census Tract 116, Belmont County, Ohio","geot__sumlevel":"140","geop__pmk":"2010-140-39013011600","geot__pmk":"2020-140-39013011600","pmk":"140-39013011600","total_ypc":-7.9, } }, {"type":"Feature","geometry": G2020_140_39013011700,"properties":{ "geot__geoid":"39013011700","geot__namelsad":"Census Tract 117, Belmont County, Ohio","geot__sumlevel":"140","geop__pmk":"2010-140-39013011700","geot__pmk":"2020-140-39013011700","pmk":"140-39013011700","total_ypc":-8.6, } }, {"type":"Feature","geometry": G2020_140_39013011900,"properties":{ "geot__geoid":"39013011900","geot__namelsad":"Census Tract 119, Belmont County, Ohio","geot__sumlevel":"140","geop__pmk":"2010-140-39013011900","geot__pmk":"2020-140-39013011900","pmk":"140-39013011900","total_ypc":-9.3, } }, {"type":"Feature","geometry": G2020_140_39013012000,"properties":{ "geot__geoid":"39013012000","geot__namelsad":"Census Tract 120, Belmont County, Ohio","geot__sumlevel":"140","geop__pmk":"2010-140-39013012000","geot__pmk":"2020-140-39013012000","pmk":"140-39013012000","total_ypc":-7.0, } }, {"type":"Feature","geometry": G2020_140_39013012100,"properties":{ "geot__geoid":"39013012100","geot__namelsad":"Census Tract 121, Belmont County, Ohio","geot__sumlevel":"140","geop__pmk":"2010-140-39013012100","geot__pmk":"2020-140-39013012100","pmk":"140-39013012100","total_ypc":-11.7, } }, {"type":"Feature","geometry": G2020_140_39013012201,"properties":{ "geot__geoid":"39013012201","geot__namelsad":"Census Tract 122.01, Belmont County, Ohio","geot__sumlevel":"140","geop__pmk":"null","geot__pmk":"2020-140-39013012201","pmk":"140-39013012201","total_ypc":-3.3, } }, {"type":"Feature","geometry": G2020_140_39013012202,"properties":{ "geot__geoid":"39013012202","geot__namelsad":"Census Tract 122.02, Belmont County, Ohio","geot__sumlevel":"140","geop__pmk":"null","geot__pmk":"2020-140-39013012202","pmk":"140-39013012202","total_ypc":1.2, } }, {"type":"Feature","geometry": G2020_140_39013012300,"properties":{ "geot__geoid":"39013012300","geot__namelsad":"Census Tract 123, Belmont County, Ohio","geot__sumlevel":"140","geop__pmk":"2010-140-39013012300","geot__pmk":"2020-140-39013012300","pmk":"140-39013012300","total_ypc":-0.6, } }, {"type":"Feature","geometry": G2020_140_39013012400,"properties":{ "geot__geoid":"39013012400","geot__namelsad":"Census Tract 124, Belmont County, Ohio","geot__sumlevel":"140","geop__pmk":"2010-140-39013012400","geot__pmk":"2020-140-39013012400","pmk":"140-39013012400","total_ypc":-5.6, } }, ]};var pJSON = {"type":"FeatureCollection", "features":[ {"type":"Feature","geometry": G2020_060_3901316602,"properties":{ "geot__geoid":"3901316602","geot__namelsad":"Colerain township, Belmont County, Ohio","geot__sumlevel":"060","geop__pmk":"2010-060-3901316602","geot__pmk":"2020-060-3901316602","pmk":"060-3901316602","total_ypc":-2.4, } }, {"type":"Feature","geometry": G2020_060_3901327566,"properties":{ "geot__geoid":"3901327566","geot__namelsad":"Flushing township, Belmont County, Ohio","geot__sumlevel":"060","geop__pmk":"2010-060-3901327566","geot__pmk":"2020-060-3901327566","pmk":"060-3901327566","total_ypc":-4.2, } }, {"type":"Feature","geometry": G2020_060_3901330968,"properties":{ "geot__geoid":"3901330968","geot__namelsad":"Goshen township, Belmont County, Ohio","geot__sumlevel":"060","geop__pmk":"2010-060-3901330968","geot__pmk":"2020-060-3901330968","pmk":"060-3901330968","total_ypc":-3.8, } }, {"type":"Feature","geometry": G2020_060_3901340600,"properties":{ "geot__geoid":"3901340600","geot__namelsad":"Kirkwood township, Belmont County, Ohio","geot__sumlevel":"060","geop__pmk":"2010-060-3901340600","geot__pmk":"2020-060-3901340600","pmk":"060-3901340600","total_ypc":3.0, } }, {"type":"Feature","geometry": G2020_060_3901348580,"properties":{ "geot__geoid":"3901348580","geot__namelsad":"Mead township, Belmont County, Ohio","geot__sumlevel":"060","geop__pmk":"2010-060-3901348580","geot__pmk":"2020-060-3901348580","pmk":"060-3901348580","total_ypc":-9.0, } }, {"type":"Feature","geometry": G2020_060_3901361378,"properties":{ "geot__geoid":"3901361378","geot__namelsad":"Pease township, Belmont County, Ohio","geot__sumlevel":"060","geop__pmk":"2010-060-3901361378","geot__pmk":"2020-060-3901361378","pmk":"060-3901361378","total_ypc":-10.2, } }, {"type":"Feature","geometry": G2020_060_3901364962,"properties":{ "geot__geoid":"3901364962","geot__namelsad":"Pultney township, Belmont County, Ohio","geot__sumlevel":"060","geop__pmk":"2010-060-3901364962","geot__pmk":"2020-060-3901364962","pmk":"060-3901364962","total_ypc":-7.2, } }, {"type":"Feature","geometry": G2020_060_3901366628,"properties":{ "geot__geoid":"3901366628","geot__namelsad":"Richland township, Belmont County, Ohio","geot__sumlevel":"060","geop__pmk":"2010-060-3901366628","geot__pmk":"2020-060-3901366628","pmk":"060-3901366628","total_ypc":-2.0, } }, {"type":"Feature","geometry": G2020_060_3901372736,"properties":{ "geot__geoid":"3901372736","geot__namelsad":"Smith township, Belmont County, Ohio","geot__sumlevel":"060","geop__pmk":"2010-060-3901372736","geot__pmk":"2020-060-3901372736","pmk":"060-3901372736","total_ypc":-7.1, } }, {"type":"Feature","geometry": G2020_060_3901372970,"properties":{ "geot__geoid":"3901372970","geot__namelsad":"Somerset township, Belmont County, Ohio","geot__sumlevel":"060","geop__pmk":"2010-060-3901372970","geot__pmk":"2020-060-3901372970","pmk":"060-3901372970","total_ypc":-0.2, } }, {"type":"Feature","geometry": G2020_060_3901378218,"properties":{ "geot__geoid":"3901378218","geot__namelsad":"Union township, Belmont County, Ohio","geot__sumlevel":"060","geop__pmk":"2010-060-3901378218","geot__pmk":"2020-060-3901378218","pmk":"060-3901378218","total_ypc":-0.9, } }, {"type":"Feature","geometry": G2020_060_3901380864,"properties":{ "geot__geoid":"3901380864","geot__namelsad":"Warren township, Belmont County, Ohio","geot__sumlevel":"060","geop__pmk":"2010-060-3901380864","geot__pmk":"2020-060-3901380864","pmk":"060-3901380864","total_ypc":-3.9, } }, {"type":"Feature","geometry": G2020_060_3901381088,"properties":{ "geot__geoid":"3901381088","geot__namelsad":"Washington township, Belmont County, Ohio","geot__sumlevel":"060","geop__pmk":"2010-060-3901381088","geot__pmk":"2020-060-3901381088","pmk":"060-3901381088","total_ypc":-2.3, } }, {"type":"Feature","geometry": G2020_060_3901382068,"properties":{ "geot__geoid":"3901382068","geot__namelsad":"Wayne township, Belmont County, Ohio","geot__sumlevel":"060","geop__pmk":"2010-060-3901382068","geot__pmk":"2020-060-3901382068","pmk":"060-3901382068","total_ypc":-0.8, } }, {"type":"Feature","geometry": G2020_060_3901384602,"properties":{ "geot__geoid":"3901384602","geot__namelsad":"Wheeling township, Belmont County, Ohio","geot__sumlevel":"060","geop__pmk":"2010-060-3901384602","geot__pmk":"2020-060-3901384602","pmk":"060-3901384602","total_ypc":-5.1, } }, {"type":"Feature","geometry": G2020_060_3901386996,"properties":{ "geot__geoid":"3901386996","geot__namelsad":"York township, Belmont County, Ohio","geot__sumlevel":"060","geop__pmk":"2010-060-3901386996","geot__pmk":"2020-060-3901386996","pmk":"060-3901386996","total_ypc":-8.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_39013) }, '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_39013); 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-39013)map.fitBounds(bounds, { padding: 120 });map.addControl(new mapboxgl.NavigationControl(), 'top-left');