- Data Central
- 2020 Decennial Census
Select an Area
2020 Decennial Census
Detail
Diversity Index *
2020 | 2010 | Change |
---|---|---|
13 | 4 | 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 | 777 | 801 | -3.0% | |||
Race | White | 729 | 93.8% | 789 | 98.5% | -7.6% |
Black | 4 | 0.5% | 0 | 0.0% | ||
American Indian | 2 | 0.3% | 2 | 0.2% | 0.0% | |
Asian | 1 | 0.1% | 7 | 0.9% | -85.7% | |
Pacific Islander | 0 | 0.0% | 0 | 0.0% | ||
Other | 3 | 0.4% | 0 | 0.0% | ||
Two or More | 38 | 4.9% | 3 | 0.4% | 1166.7% | |
Ethnicity | Hispanic or Latino | 9 | 1.2% | 3 | 0.4% | 200.0% |
Population by Race/Ethnicity: 18 Years and Over
2020 | 2010 | Change | ||||
---|---|---|---|---|---|---|
# | % | # | % | |||
Total | 587 | 604 | -2.8% | |||
Race | White | 562 | 95.7% | 596 | 98.7% | -5.7% |
Black | 0 | 0.0% | 0 | 0.0% | ||
American Indian | 2 | 0.3% | 2 | 0.3% | 0.0% | |
Asian | 1 | 0.2% | 3 | 0.5% | -66.7% | |
Pacific Islander | 0 | 0.0% | 0 | 0.0% | ||
Other | 0 | 0.0% | 0 | 0.0% | ||
Two or More | 22 | 3.7% | 3 | 0.5% | 633.3% | |
Ethnicity | Hispanic or Latino | 2 | 0.3% | 2 | 0.3% | 0.0% |
Diversity Index *
2020 | 2010 | Change |
---|---|---|
13 | 4 | 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 | 435 | 502 | -13.3% | ||
Occupied | 317 | 72.9% | 327 | 65.1% | -3.1% |
Vacant | 118 | 27.1% | 175 | 34.9% | -32.6% |
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 Greenwood town, Steuben County, New York
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-36 New York | 71 9 | 20,201,249 4.2% | 3,948,032 19.5% 15.5% | 10,598,907 52.5% -6.2% | 16,088,135 6.9% | 2,925,886 18.2% 19.7% | 8,761,517 54.5% -3.7% |
050-36101 Steuben County, New York | 19 8 | 93,584 -5.5% | 1,718 1.8% 25.3% | 84,338 90.1% -9.8% | 73,447 -3.1% | 1,112 1.5% 29.0% | 67,114 91.4% -7.0% |
060-3610100287 Addison town, Steuben County, New York | 15 6 | 2,397 -7.6% | 38 1.6% -2.6% | 2,225 92.8% -10.2% | 1,742 -8.0% | 25 1.4% 31.6% | 1,624 93.2% -11.2% |
060-3610103342 Avoca town, Steuben County, New York | 17 9 | 1,990 -12.1% | 44 2.2% 0.0% | 1,829 91.9% -15.8% | 1,588 -8.3% | 29 1.8% 3.6% | 1,474 92.8% -11.9% |
060-3610104770 Bath town, Steuben County, New York | 16 4 | 11,424 -7.7% | 176 1.5% 15.0% | 10,481 91.7% -10.0% | 9,097 -6.4% | 106 1.2% 12.8% | 8,429 92.7% -8.3% |
060-3610107740 Bradford town, Steuben County, New York | 12 8 | 806 -5.7% | 6 0.7% 20.0% | 758 94.0% -9.3% | 626 -2.0% | 4 0.6% -20.0% | 592 94.6% -5.7% |
060-3610111880 Cameron town, Steuben County, New York | 14 7 | 899 -4.9% | 14 1.6% 27.3% | 833 92.7% -8.7% | 673 -5.6% | 8 1.2% -20.0% | 634 94.2% -8.2% |
060-3610111946 Campbell town, Steuben County, New York | 11 4 | 3,160 -7.2% | 26 0.8% -31.6% | 2,985 94.5% -9.1% | 2,569 -2.5% | 20 0.8% 11.1% | 2,432 94.7% -5.2% |
060-3610112265 Canisteo town, Steuben County, New York | 15 10 | 3,295 -2.8% | 51 1.5% 59.4% | 3,055 92.7% -8.0% | 2,514 -1.8% | 30 1.2% 76.5% | 2,361 93.9% -6.0% |
060-3610112991 Caton town, Steuben County, New York | 13 8 | 2,049 -6.0% | 15 0.7% 15.4% | 1,911 93.3% -10.0% | 1,650 -1.7% | 11 0.7% 10.0% | 1,548 93.8% -5.6% |
060-3610116738 Cohocton town, Steuben County, New York | 13 6 | 2,269 -11.4% | 52 2.3% 62.5% | 2,129 93.8% -14.3% | 1,817 -6.4% | 41 2.3% 78.3% | 1,698 93.5% -10.1% |
060-3610118256 Corning city, Steuben County, New York | 28 9 | 10,551 -5.7% | 345 3.3% 27.3% | 9,017 85.5% -10.8% | 8,425 -2.3% | 230 2.7% 47.4% | 7,340 87.1% -7.6% |
060-3610118267 Corning town, Steuben County, New York | 22 9 | 5,983 -4.6% | 108 1.8% 50.0% | 5,279 88.2% -9.7% | 4,762 -2.1% | 70 1.5% 62.8% | 4,289 90.1% -6.5% |
060-3610119675 Dansville town, Steuben County, New York | 13 5 | 1,835 -0.4% | 27 1.5% -25.0% | 1,715 93.5% -2.9% | 1,461 2.0% | 20 1.4% -25.9% | 1,375 94.1% -0.6% |
060-3610124647 Erwin town, Steuben County, New York | 35 11 | 8,095 0.7% | 138 1.7% 20.0% | 6,484 80.1% -7.1% | 6,350 3.2% | 103 1.6% 22.6% | 5,239 82.5% -3.9% |
060-3610127551 Fremont town, Steuben County, New York | 18 10 | 894 -11.3% | 21 2.3% -16.0% | 818 91.5% -15.0% | 725 -9.6% | 9 1.2% -57.1% | 675 93.1% -11.6% |
060-3610130741 Greenwood town, Steuben County, New York | 13 9 | 777 -3.0% | 9 1.2% 200.0% | 729 93.8% -7.4% | 587 -2.8% | 2 0.3% 0.0% | 562 95.7% -5.5% |
060-3610132567 Hartsville town, Steuben County, New York | 13 10 | 558 -8.4% | 8 1.4% 166.7% | 525 94.1% -12.6% | 443 -8.1% | 3 0.7% 200.0% | 420 94.8% -11.8% |
060-3610135661 Hornby town, Steuben County, New York | 19 9 | 1,684 -1.3% | 28 1.7% 3.7% | 1,520 90.3% -7.1% | 1,297 0.4% | 15 1.2% 0.0% | 1,187 91.5% -5.1% |
060-3610135672 Hornell city, Steuben County, New York | 28 13 | 8,263 -3.5% | 257 3.1% 46.9% | 7,073 85.6% -10.7% | 6,336 -1.0% | 153 2.4% 59.4% | 5,604 88.4% -6.9% |
060-3610135683 Hornellsville town, Steuben County, New York | 16 11 | 4,034 -2.8% | 63 1.6% 110.0% | 3,713 92.0% -8.3% | 3,313 0.5% | 51 1.5% 200.0% | 3,079 92.9% -4.8% |
060-3610135837 Howard town, Steuben County, New York | 13 7 | 1,389 -5.3% | 23 1.7% -11.5% | 1,303 93.8% -8.3% | 1,074 -5.5% | 9 0.8% -59.1% | 1,020 95.0% -7.2% |
060-3610138319 Jasper town, Steuben County, New York | 5 2 | 1,418 -0.4% | 12 0.8% -7.7% | 1,380 97.3% -1.6% | 936 0.9% | 7 0.7% 16.7% | 915 97.8% 0.0% |
060-3610142576 Lindley town, Steuben County, New York | 13 9 | 1,813 -7.8% | 31 1.7% 342.9% | 1,686 93.0% -12.7% | 1,416 -4.8% | 20 1.4% 233.3% | 1,327 93.7% -9.2% |
060-3610159718 Prattsburgh town, Steuben County, New York | 19 11 | 1,983 -4.9% | 44 2.2% 69.2% | 1,794 90.5% -10.4% | 1,542 -4.5% | 32 2.1% 77.8% | 1,407 91.2% -9.6% |
060-3610159982 Pulteney town, Steuben County, New York | 12 8 | 1,258 -2.1% | 21 1.7% 31.2% | 1,187 94.4% -5.6% | 1,011 -4.0% | 11 1.1% 22.2% | 965 95.5% -7.0% |
060-3610160653 Rathbone town, Steuben County, New York | 7 1 | 1,093 -2.9% | 12 1.1% 71.4% | 1,060 97.0% -3.2% | 790 1.0% | 8 1.0% 100.0% | 766 97.0% 0.4% |
060-3610173836 Thurston town, Steuben County, New York | 12 6 | 1,253 -7.2% | 13 1.0% -27.8% | 1,171 93.5% -10.6% | 987 -4.0% | 9 0.9% -25.0% | 926 93.8% -8.0% |
060-3610175440 Troupsburg town, Steuben County, New York | 4 -1 | 1,017 -21.2% | 7 0.7% -36.4% | 988 97.1% -21.6% | 737 -10.8% | 6 0.8% -33.3% | 714 96.9% -11.6% |
060-3610175737 Tuscarora town, Steuben County, New York | 7 2 | 1,390 -5.6% | 7 0.5% -30.0% | 1,338 96.3% -6.9% | 1,031 -5.5% | 5 0.5% -37.5% | 992 96.2% -6.6% |
060-3610176496 Urbana town, Steuben County, New York | 13 6 | 2,122 -9.4% | 26 1.2% -31.6% | 1,978 93.2% -12.2% | 1,796 -6.7% | 22 1.2% -12.0% | 1,693 94.3% -9.1% |
060-3610178861 Wayland town, Steuben County, New York | 15 8 | 3,732 -9.0% | 53 1.4% 51.4% | 3,447 92.4% -13.0% | 2,940 -7.2% | 28 1.0% 0.0% | 2,765 94.0% -10.1% |
060-3610178883 Wayne town, Steuben County, New York | 14 11 | 1,009 -3.1% | 13 1.3% 116.7% | 939 93.1% -8.7% | 859 -3.2% | 2 0.2% -33.3% | 812 94.5% -7.6% |
060-3610181105 West Union town, Steuben County, New York | 6 5 | 343 9.9% | 333 97.1% 7.4% | 265 4.3% | 259 97.7% 2.8% | ||
060-3610181457 Wheeler town, Steuben County, New York | 15 7 | 1,136 -9.8% | 16 1.4% 60.0% | 1,057 93.0% -12.5% | 859 -7.1% | 11 1.3% 83.3% | 802 93.4% -9.7% |
060-3610182843 Woodhull town, Steuben County, New York | 8 3 | 1,665 -3.1% | 14 0.8% -36.4% | 1,598 96.0% -4.8% | 1,229 -0.4% | 12 1.0% -33.3% | 1,189 96.7% -1.4% |
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-3610130741function 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: [-82.3985, 34.8514], // 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_3610100287,"properties":{ "geot__geoid":"3610100287","geot__namelsad":"Addison town, Steuben County, New York","geot__sumlevel":"060","geop__pmk":"2010-060-3610100287","geot__pmk":"2020-060-3610100287","pmk":"060-3610100287","total_ypc":-7.6, } }, {"type":"Feature","geometry": G2020_060_3610103342,"properties":{ "geot__geoid":"3610103342","geot__namelsad":"Avoca town, Steuben County, New York","geot__sumlevel":"060","geop__pmk":"2010-060-3610103342","geot__pmk":"2020-060-3610103342","pmk":"060-3610103342","total_ypc":-12.1, } }, {"type":"Feature","geometry": G2020_060_3610104770,"properties":{ "geot__geoid":"3610104770","geot__namelsad":"Bath town, Steuben County, New York","geot__sumlevel":"060","geop__pmk":"2010-060-3610104770","geot__pmk":"2020-060-3610104770","pmk":"060-3610104770","total_ypc":-7.7, } }, {"type":"Feature","geometry": G2020_060_3610107740,"properties":{ "geot__geoid":"3610107740","geot__namelsad":"Bradford town, Steuben County, New York","geot__sumlevel":"060","geop__pmk":"2010-060-3610107740","geot__pmk":"2020-060-3610107740","pmk":"060-3610107740","total_ypc":-5.7, } }, {"type":"Feature","geometry": G2020_060_3610111880,"properties":{ "geot__geoid":"3610111880","geot__namelsad":"Cameron town, Steuben County, New York","geot__sumlevel":"060","geop__pmk":"2010-060-3610111880","geot__pmk":"2020-060-3610111880","pmk":"060-3610111880","total_ypc":-4.9, } }, {"type":"Feature","geometry": G2020_060_3610111946,"properties":{ "geot__geoid":"3610111946","geot__namelsad":"Campbell town, Steuben County, New York","geot__sumlevel":"060","geop__pmk":"2010-060-3610111946","geot__pmk":"2020-060-3610111946","pmk":"060-3610111946","total_ypc":-7.2, } }, {"type":"Feature","geometry": G2020_060_3610112265,"properties":{ "geot__geoid":"3610112265","geot__namelsad":"Canisteo town, Steuben County, New York","geot__sumlevel":"060","geop__pmk":"2010-060-3610112265","geot__pmk":"2020-060-3610112265","pmk":"060-3610112265","total_ypc":-2.8, } }, {"type":"Feature","geometry": G2020_060_3610112991,"properties":{ "geot__geoid":"3610112991","geot__namelsad":"Caton town, Steuben County, New York","geot__sumlevel":"060","geop__pmk":"2010-060-3610112991","geot__pmk":"2020-060-3610112991","pmk":"060-3610112991","total_ypc":-6.0, } }, {"type":"Feature","geometry": G2020_060_3610116738,"properties":{ "geot__geoid":"3610116738","geot__namelsad":"Cohocton town, Steuben County, New York","geot__sumlevel":"060","geop__pmk":"2010-060-3610116738","geot__pmk":"2020-060-3610116738","pmk":"060-3610116738","total_ypc":-11.4, } }, {"type":"Feature","geometry": G2020_060_3610118256,"properties":{ "geot__geoid":"3610118256","geot__namelsad":"Corning city, Steuben County, New York","geot__sumlevel":"060","geop__pmk":"2010-060-3610118256","geot__pmk":"2020-060-3610118256","pmk":"060-3610118256","total_ypc":-5.7, } }, {"type":"Feature","geometry": G2020_060_3610118267,"properties":{ "geot__geoid":"3610118267","geot__namelsad":"Corning town, Steuben County, New York","geot__sumlevel":"060","geop__pmk":"2010-060-3610118267","geot__pmk":"2020-060-3610118267","pmk":"060-3610118267","total_ypc":-4.6, } }, {"type":"Feature","geometry": G2020_060_3610119675,"properties":{ "geot__geoid":"3610119675","geot__namelsad":"Dansville town, Steuben County, New York","geot__sumlevel":"060","geop__pmk":"2010-060-3610119675","geot__pmk":"2020-060-3610119675","pmk":"060-3610119675","total_ypc":-0.4, } }, {"type":"Feature","geometry": G2020_060_3610124647,"properties":{ "geot__geoid":"3610124647","geot__namelsad":"Erwin town, Steuben County, New York","geot__sumlevel":"060","geop__pmk":"2010-060-3610124647","geot__pmk":"2020-060-3610124647","pmk":"060-3610124647","total_ypc":0.7, } }, {"type":"Feature","geometry": G2020_060_3610127551,"properties":{ "geot__geoid":"3610127551","geot__namelsad":"Fremont town, Steuben County, New York","geot__sumlevel":"060","geop__pmk":"2010-060-3610127551","geot__pmk":"2020-060-3610127551","pmk":"060-3610127551","total_ypc":-11.3, } }, {"type":"Feature","geometry": G2020_060_3610130741,"properties":{ "geot__geoid":"3610130741","geot__namelsad":"Greenwood town, Steuben County, New York","geot__sumlevel":"060","geop__pmk":"2010-060-3610130741","geot__pmk":"2020-060-3610130741","pmk":"060-3610130741","total_ypc":-3.0, } }, {"type":"Feature","geometry": G2020_060_3610132567,"properties":{ "geot__geoid":"3610132567","geot__namelsad":"Hartsville town, Steuben County, New York","geot__sumlevel":"060","geop__pmk":"2010-060-3610132567","geot__pmk":"2020-060-3610132567","pmk":"060-3610132567","total_ypc":-8.4, } }, {"type":"Feature","geometry": G2020_060_3610135661,"properties":{ "geot__geoid":"3610135661","geot__namelsad":"Hornby town, Steuben County, New York","geot__sumlevel":"060","geop__pmk":"2010-060-3610135661","geot__pmk":"2020-060-3610135661","pmk":"060-3610135661","total_ypc":-1.3, } }, {"type":"Feature","geometry": G2020_060_3610135672,"properties":{ "geot__geoid":"3610135672","geot__namelsad":"Hornell city, Steuben County, New York","geot__sumlevel":"060","geop__pmk":"2010-060-3610135672","geot__pmk":"2020-060-3610135672","pmk":"060-3610135672","total_ypc":-3.5, } }, {"type":"Feature","geometry": G2020_060_3610135683,"properties":{ "geot__geoid":"3610135683","geot__namelsad":"Hornellsville town, Steuben County, New York","geot__sumlevel":"060","geop__pmk":"2010-060-3610135683","geot__pmk":"2020-060-3610135683","pmk":"060-3610135683","total_ypc":-2.8, } }, {"type":"Feature","geometry": G2020_060_3610135837,"properties":{ "geot__geoid":"3610135837","geot__namelsad":"Howard town, Steuben County, New York","geot__sumlevel":"060","geop__pmk":"2010-060-3610135837","geot__pmk":"2020-060-3610135837","pmk":"060-3610135837","total_ypc":-5.3, } }, {"type":"Feature","geometry": G2020_060_3610138319,"properties":{ "geot__geoid":"3610138319","geot__namelsad":"Jasper town, Steuben County, New York","geot__sumlevel":"060","geop__pmk":"2010-060-3610138319","geot__pmk":"2020-060-3610138319","pmk":"060-3610138319","total_ypc":-0.4, } }, {"type":"Feature","geometry": G2020_060_3610142576,"properties":{ "geot__geoid":"3610142576","geot__namelsad":"Lindley town, Steuben County, New York","geot__sumlevel":"060","geop__pmk":"2010-060-3610142576","geot__pmk":"2020-060-3610142576","pmk":"060-3610142576","total_ypc":-7.8, } }, {"type":"Feature","geometry": G2020_060_3610159718,"properties":{ "geot__geoid":"3610159718","geot__namelsad":"Prattsburgh town, Steuben County, New York","geot__sumlevel":"060","geop__pmk":"2010-060-3610159718","geot__pmk":"2020-060-3610159718","pmk":"060-3610159718","total_ypc":-4.9, } }, {"type":"Feature","geometry": G2020_060_3610159982,"properties":{ "geot__geoid":"3610159982","geot__namelsad":"Pulteney town, Steuben County, New York","geot__sumlevel":"060","geop__pmk":"2010-060-3610159982","geot__pmk":"2020-060-3610159982","pmk":"060-3610159982","total_ypc":-2.1, } }, {"type":"Feature","geometry": G2020_060_3610160653,"properties":{ "geot__geoid":"3610160653","geot__namelsad":"Rathbone town, Steuben County, New York","geot__sumlevel":"060","geop__pmk":"2010-060-3610160653","geot__pmk":"2020-060-3610160653","pmk":"060-3610160653","total_ypc":-2.9, } }, {"type":"Feature","geometry": G2020_060_3610173836,"properties":{ "geot__geoid":"3610173836","geot__namelsad":"Thurston town, Steuben County, New York","geot__sumlevel":"060","geop__pmk":"2010-060-3610173836","geot__pmk":"2020-060-3610173836","pmk":"060-3610173836","total_ypc":-7.2, } }, {"type":"Feature","geometry": G2020_060_3610175440,"properties":{ "geot__geoid":"3610175440","geot__namelsad":"Troupsburg town, Steuben County, New York","geot__sumlevel":"060","geop__pmk":"2010-060-3610175440","geot__pmk":"2020-060-3610175440","pmk":"060-3610175440","total_ypc":-21.2, } }, {"type":"Feature","geometry": G2020_060_3610175737,"properties":{ "geot__geoid":"3610175737","geot__namelsad":"Tuscarora town, Steuben County, New York","geot__sumlevel":"060","geop__pmk":"2010-060-3610175737","geot__pmk":"2020-060-3610175737","pmk":"060-3610175737","total_ypc":-5.6, } }, {"type":"Feature","geometry": G2020_060_3610176496,"properties":{ "geot__geoid":"3610176496","geot__namelsad":"Urbana town, Steuben County, New York","geot__sumlevel":"060","geop__pmk":"2010-060-3610176496","geot__pmk":"2020-060-3610176496","pmk":"060-3610176496","total_ypc":-9.4, } }, {"type":"Feature","geometry": G2020_060_3610178861,"properties":{ "geot__geoid":"3610178861","geot__namelsad":"Wayland town, Steuben County, New York","geot__sumlevel":"060","geop__pmk":"2010-060-3610178861","geot__pmk":"2020-060-3610178861","pmk":"060-3610178861","total_ypc":-9.0, } }, {"type":"Feature","geometry": G2020_060_3610178883,"properties":{ "geot__geoid":"3610178883","geot__namelsad":"Wayne town, Steuben County, New York","geot__sumlevel":"060","geop__pmk":"2010-060-3610178883","geot__pmk":"2020-060-3610178883","pmk":"060-3610178883","total_ypc":-3.1, } }, {"type":"Feature","geometry": G2020_060_3610181105,"properties":{ "geot__geoid":"3610181105","geot__namelsad":"West Union town, Steuben County, New York","geot__sumlevel":"060","geop__pmk":"2010-060-3610181105","geot__pmk":"2020-060-3610181105","pmk":"060-3610181105","total_ypc":9.9, } }, {"type":"Feature","geometry": G2020_060_3610181457,"properties":{ "geot__geoid":"3610181457","geot__namelsad":"Wheeler town, Steuben County, New York","geot__sumlevel":"060","geop__pmk":"2010-060-3610181457","geot__pmk":"2020-060-3610181457","pmk":"060-3610181457","total_ypc":-9.8, } }, {"type":"Feature","geometry": G2020_060_3610182843,"properties":{ "geot__geoid":"3610182843","geot__namelsad":"Woodhull town, Steuben County, New York","geot__sumlevel":"060","geop__pmk":"2010-060-3610182843","geot__pmk":"2020-060-3610182843","pmk":"060-3610182843","total_ypc":-3.1, } }, ]};// 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_3610130741 !== 'undefined') { map.addLayer({'id': 'areaOldBoundary', 'type': 'line', 'source': { "type": "geojson", "data":Gon2Line(G2010_060_3610130741) }, '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_3610130741) }, '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_3610130741); 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-3610130741)map.fitBounds(bounds, { padding: 120 });map.addControl(new mapboxgl.NavigationControl(), 'top-left');