- Data Central
- 2020 Decennial Census
Select an Area
2020 Decennial Census
Detail
Diversity Index *
2020 | 2010 | Change |
---|---|---|
21 | 11 | 10 |
* 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 | 8,835 | 8,332 | 6.0% | |||
Race | White | 8,141 | 92.1% | 8,061 | 96.7% | 1.0% |
Black | 82 | 0.9% | 49 | 0.6% | 67.3% | |
American Indian | 17 | 0.2% | 11 | 0.1% | 54.5% | |
Asian | 73 | 0.8% | 90 | 1.1% | -18.9% | |
Pacific Islander | 2 | 0.0% | 1 | 0.0% | 100.0% | |
Other | 97 | 1.1% | 38 | 0.5% | 155.3% | |
Two or More | 423 | 4.8% | 82 | 1.0% | 415.9% | |
Ethnicity | Hispanic or Latino | 407 | 4.6% | 230 | 2.8% | 77.0% |
Population by Race/Ethnicity: 18 Years and Over
2020 | 2010 | Change | ||||
---|---|---|---|---|---|---|
# | % | # | % | |||
Total | 7,659 | 6,988 | 9.6% | |||
Race | White | 7,176 | 93.7% | 6,793 | 97.2% | 5.6% |
Black | 63 | 0.8% | 40 | 0.6% | 57.5% | |
American Indian | 12 | 0.2% | 6 | 0.1% | 100.0% | |
Asian | 58 | 0.8% | 79 | 1.1% | -26.6% | |
Pacific Islander | 2 | 0.0% | 1 | 0.0% | 100.0% | |
Other | 57 | 0.7% | 27 | 0.4% | 111.1% | |
Two or More | 291 | 3.8% | 42 | 0.6% | 592.9% | |
Ethnicity | Hispanic or Latino | 285 | 3.7% | 162 | 2.3% | 75.9% |
Diversity Index *
2020 | 2010 | Change |
---|---|---|
21 | 11 | 10 |
* 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 | 4,715 | 4,291 | 9.9% | ||
Occupied | 3,979 | 84.4% | 3,483 | 81.2% | 14.2% |
Vacant | 736 | 15.6% | 808 | 18.8% | -8.9% |
Population in Group Quarters
2020 | |
---|---|
Total Population in Group Quarters | 1 |
Institutionalized Population | 0 |
Correctional Facilities for Adults | 0 |
Juvenile Facilities | 0 |
Nursing Facilities/Skilled-nursing Facilities | 0 |
Other Institutional Facilities | 0 |
Noninstitutionalized Population | 1 |
College/University Student Housing | 0 |
Military Quarters | 0 |
Other Noninstitutional Facilities | 1 |
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 Ocean township, Ocean County, New Jersey
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-34 New Jersey | 72 12 | 9,288,994 5.7% | 2,002,575 21.6% 28.8% | 4,816,381 51.9% -7.6% | 7,281,310 8.2% | 1,435,999 19.7% 31.3% | 3,966,396 54.5% -4.4% |
050-34029 Ocean County, New Jersey | 37 11 | 637,229 10.5% | 66,329 10.4% 38.8% | 520,578 81.7% 5.1% | 482,600 9.3% | 44,406 9.2% 42.2% | 401,838 83.3% 3.8% |
060-3402900000 County subdivisions not defined, Ocean County, New Jersey | |||||||
060-3402903050 Barnegat township, Ocean County, New Jersey | 40 16 | 24,296 16.0% | 2,460 10.1% 73.2% | 19,461 80.1% 6.8% | 19,798 19.6% | 1,637 8.3% 80.9% | 16,504 83.4% 11.6% |
060-3402903130 Barnegat Light borough, Ocean County, New Jersey | 15 9 | 640 11.5% | 21 3.3% 90.9% | 601 93.9% 8.3% | 596 12.0% | 21 3.5% 110.0% | 563 94.5% 8.9% |
060-3402903520 Bay Head borough, Ocean County, New Jersey | 17 12 | 930 -3.9% | 27 2.9% 170.0% | 865 93.0% -8.4% | 803 -1.8% | 23 2.9% 187.5% | 755 94.0% -5.9% |
060-3402903940 Beach Haven borough, Ocean County, New Jersey | 26 6 | 1,027 -12.2% | 102 9.9% -12.1% | 906 88.2% -12.9% | 927 -8.1% | 72 7.8% -22.6% | 843 90.9% -6.7% |
060-3402904180 Beachwood borough, Ocean County, New Jersey | 39 16 | 10,859 -1.7% | 1,290 11.9% 43.7% | 8,765 80.7% -9.4% | 8,320 1.1% | 812 9.8% 49.5% | 6,961 83.7% -5.9% |
060-3402905305 Berkeley township, Ocean County, New Jersey | 33 16 | 43,754 6.1% | 3,680 8.4% 81.5% | 37,056 84.7% -1.8% | 38,217 5.1% | 2,608 6.8% 81.0% | 33,400 87.4% -1.0% |
060-3402907420 Brick township, Ocean County, New Jersey | 40 18 | 73,620 -1.9% | 8,218 11.2% 55.0% | 59,338 80.6% -10.6% | 60,946 2.4% | 5,604 9.2% 59.7% | 51,005 83.7% -5.1% |
060-3402918670 Eagleswood township, Ocean County, New Jersey | 28 17 | 1,722 7.4% | 116 6.7% 114.8% | 1,519 88.2% 0.6% | 1,384 10.3% | 81 5.9% 125.0% | 1,250 90.3% 4.9% |
060-3402930390 Harvey Cedars borough, Ocean County, New Jersey | 8 4 | 391 16.0% | 6 1.5% 100.0% | 381 97.4% 15.1% | 351 17.8% | 6 1.7% 100.0% | 341 97.2% 16.4% |
060-3402934530 Island Heights borough, Ocean County, New Jersey | 21 9 | 1,650 -1.4% | 55 3.3% 37.5% | 1,487 90.1% -5.6% | 1,373 0.7% | 36 2.6% 28.6% | 1,266 92.2% -3.0% |
060-3402934680 Jackson township, Ocean County, New Jersey | 47 17 | 58,544 6.7% | 7,543 12.9% 75.6% | 44,395 75.8% -2.7% | 44,652 8.1% | 5,061 11.3% 84.5% | 34,656 77.6% -1.4% |
060-3402937380 Lacey township, Ocean County, New Jersey | 27 13 | 28,655 3.7% | 2,000 7.0% 52.7% | 25,091 87.6% -2.2% | 23,126 8.7% | 1,315 5.7% 64.6% | 20,723 89.6% 3.4% |
060-3402937770 Lakehurst borough, Ocean County, New Jersey | 62 13 | 2,636 -0.7% | 505 19.2% 45.5% | 1,680 63.7% -10.6% | 2,044 7.5% | 347 17.0% 70.9% | 1,390 68.0% -5.1% |
060-3402938550 Lakewood township, Ocean County, New Jersey | 35 -6 | 135,158 45.6% | 15,768 11.7% -1.8% | 111,388 82.4% 59.1% | 70,393 30.4% | 9,992 14.2% -4.2% | 55,021 78.2% 42.5% |
060-3402939390 Lavallette borough, Ocean County, New Jersey | 18 10 | 1,787 -4.7% | 60 3.4% 7.1% | 1,657 92.7% -7.9% | 1,642 -1.6% | 55 3.3% 44.7% | 1,534 93.4% -5.1% |
060-3402940560 Little Egg Harbor township, Ocean County, New Jersey | 30 12 | 20,784 3.6% | 1,541 7.4% 47.2% | 17,859 85.9% -2.3% | 17,275 8.1% | 1,038 6.0% 60.9% | 15,253 88.3% 2.8% |
060-3402941250 Long Beach township, Ocean County, New Jersey | 15 4 | 3,153 3.3% | 102 3.2% -19.0% | 2,953 93.7% 2.4% | 2,908 5.8% | 82 2.8% -6.8% | 2,745 94.4% 4.4% |
060-3402943140 Manchester township, Ocean County, New Jersey | 35 14 | 45,115 4.7% | 3,503 7.8% 69.9% | 37,442 83.0% -2.0% | 41,110 6.4% | 2,623 6.4% 73.6% | 35,066 85.3% 0.1% |
060-3402943380 Mantoloking borough, Ocean County, New Jersey | 21 11 | 331 11.8% | 15 4.5% 114.3% | 305 92.1% 9.3% | 296 4.2% | 12 4.1% 140.0% | 276 93.2% 1.5% |
060-3402954300 Ocean township, Ocean County, New Jersey | 21 10 | 8,835 6.0% | 407 4.6% 77.0% | 8,004 90.6% 1.6% | 7,659 9.6% | 285 3.7% 75.9% | 7,075 92.4% 6.2% |
060-3402954450 Ocean Gate borough, Ocean County, New Jersey | 34 17 | 1,932 -3.9% | 156 8.1% 21.9% | 1,623 84.0% -11.6% | 1,613 3.1% | 108 6.7% 74.2% | 1,388 86.1% -6.0% |
060-3402958590 Pine Beach borough, Ocean County, New Jersey | 27 15 | 2,139 0.6% | 133 6.2% 68.4% | 1,876 87.7% -6.0% | 1,733 5.0% | 68 3.9% 61.9% | 1,563 90.2% -0.8% |
060-3402959790 Plumsted township, Ocean County, New Jersey | 32 13 | 8,072 -4.1% | 677 8.4% 35.9% | 6,832 84.6% -10.0% | 6,512 4.8% | 472 7.2% 55.3% | 5,624 86.4% -1.1% |
060-3402959880 Point Pleasant borough, Ocean County, New Jersey | 25 11 | 18,941 3.0% | 1,327 7.0% 41.9% | 16,892 89.2% -1.4% | 15,053 5.1% | 876 5.8% 40.6% | 13,714 91.1% 1.6% |
060-3402959910 Point Pleasant Beach borough, Ocean County, New Jersey | 31 9 | 4,766 2.2% | 475 10.0% 12.8% | 4,084 85.7% -1.2% | 4,043 6.9% | 355 8.8% 16.8% | 3,525 87.2% 3.5% |
060-3402966450 Seaside Heights borough, Ocean County, New Jersey | 64 18 | 2,440 -15.5% | 566 23.2% 9.7% | 1,573 64.5% -23.7% | 1,971 -15.0% | 372 18.9% 8.5% | 1,385 70.3% -22.2% |
060-3402966480 Seaside Park borough, Ocean County, New Jersey | 17 7 | 1,436 -9.1% | 55 3.8% 1.9% | 1,332 92.8% -10.7% | 1,328 -4.5% | 43 3.2% 19.4% | 1,241 93.4% -6.8% |
060-3402967110 Ship Bottom borough, Ocean County, New Jersey | 22 | 1,098 -5.0% | 72 6.6% -32.1% | 988 90.0% -4.3% | 982 -3.4% | 43 4.4% -46.2% | 916 93.3% -1.0% |
060-3402969510 South Toms River borough, Ocean County, New Jersey | 74 14 | 3,643 -1.1% | 1,040 28.5% 44.8% | 1,778 48.8% -18.2% | 2,652 0.1% | 652 24.6% 46.2% | 1,423 53.7% -14.7% |
060-3402970320 Stafford township, Ocean County, New Jersey | 32 15 | 28,617 7.8% | 2,468 8.6% 75.0% | 24,542 85.8% 1.3% | 22,886 11.7% | 1,638 7.2% 79.4% | 20,110 87.9% 5.9% |
060-3402971640 Surf City borough, Ocean County, New Jersey | 14 -1 | 1,243 3.2% | 44 3.5% -27.9% | 1,169 94.0% 5.0% | 1,121 2.7% | 20 1.8% -53.5% | 1,084 96.7% 5.0% |
060-3402973125 Toms River township, Ocean County, New Jersey | 45 17 | 95,438 4.6% | 11,593 12.1% 60.3% | 73,671 77.2% -4.6% | 75,913 5.7% | 7,845 10.3% 66.5% | 60,633 79.9% -2.9% |
060-3402974210 Tuckerton borough, Ocean County, New Jersey | 30 11 | 3,577 6.9% | 304 8.5% 49.8% | 3,065 85.7% 0.4% | 2,973 12.7% | 204 6.9% 58.1% | 2,605 87.6% 6.0% |
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-3402954300function 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.6482, 40.6008], // 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_3402903050,"properties":{ "geot__geoid":"3402903050","geot__namelsad":"Barnegat township, Ocean County, New Jersey","geot__sumlevel":"060","geop__pmk":"2010-060-3402903050","geot__pmk":"2020-060-3402903050","pmk":"060-3402903050","total_ypc":16.0, } }, {"type":"Feature","geometry": G2020_060_3402903130,"properties":{ "geot__geoid":"3402903130","geot__namelsad":"Barnegat Light borough, Ocean County, New Jersey","geot__sumlevel":"060","geop__pmk":"2010-060-3402903130","geot__pmk":"2020-060-3402903130","pmk":"060-3402903130","total_ypc":11.5, } }, {"type":"Feature","geometry": G2020_060_3402903520,"properties":{ "geot__geoid":"3402903520","geot__namelsad":"Bay Head borough, Ocean County, New Jersey","geot__sumlevel":"060","geop__pmk":"2010-060-3402903520","geot__pmk":"2020-060-3402903520","pmk":"060-3402903520","total_ypc":-3.9, } }, {"type":"Feature","geometry": G2020_060_3402903940,"properties":{ "geot__geoid":"3402903940","geot__namelsad":"Beach Haven borough, Ocean County, New Jersey","geot__sumlevel":"060","geop__pmk":"2010-060-3402903940","geot__pmk":"2020-060-3402903940","pmk":"060-3402903940","total_ypc":-12.2, } }, {"type":"Feature","geometry": G2020_060_3402904180,"properties":{ "geot__geoid":"3402904180","geot__namelsad":"Beachwood borough, Ocean County, New Jersey","geot__sumlevel":"060","geop__pmk":"2010-060-3402904180","geot__pmk":"2020-060-3402904180","pmk":"060-3402904180","total_ypc":-1.7, } }, {"type":"Feature","geometry": G2020_060_3402905305,"properties":{ "geot__geoid":"3402905305","geot__namelsad":"Berkeley township, Ocean County, New Jersey","geot__sumlevel":"060","geop__pmk":"2010-060-3402905305","geot__pmk":"2020-060-3402905305","pmk":"060-3402905305","total_ypc":6.1, } }, {"type":"Feature","geometry": G2020_060_3402907420,"properties":{ "geot__geoid":"3402907420","geot__namelsad":"Brick township, Ocean County, New Jersey","geot__sumlevel":"060","geop__pmk":"2010-060-3402907420","geot__pmk":"2020-060-3402907420","pmk":"060-3402907420","total_ypc":-1.9, } }, {"type":"Feature","geometry": G2020_060_3402918670,"properties":{ "geot__geoid":"3402918670","geot__namelsad":"Eagleswood township, Ocean County, New Jersey","geot__sumlevel":"060","geop__pmk":"2010-060-3402918670","geot__pmk":"2020-060-3402918670","pmk":"060-3402918670","total_ypc":7.4, } }, {"type":"Feature","geometry": G2020_060_3402930390,"properties":{ "geot__geoid":"3402930390","geot__namelsad":"Harvey Cedars borough, Ocean County, New Jersey","geot__sumlevel":"060","geop__pmk":"2010-060-3402930390","geot__pmk":"2020-060-3402930390","pmk":"060-3402930390","total_ypc":16.0, } }, {"type":"Feature","geometry": G2020_060_3402934530,"properties":{ "geot__geoid":"3402934530","geot__namelsad":"Island Heights borough, Ocean County, New Jersey","geot__sumlevel":"060","geop__pmk":"2010-060-3402934530","geot__pmk":"2020-060-3402934530","pmk":"060-3402934530","total_ypc":-1.4, } }, {"type":"Feature","geometry": G2020_060_3402934680,"properties":{ "geot__geoid":"3402934680","geot__namelsad":"Jackson township, Ocean County, New Jersey","geot__sumlevel":"060","geop__pmk":"2010-060-3402934680","geot__pmk":"2020-060-3402934680","pmk":"060-3402934680","total_ypc":6.7, } }, {"type":"Feature","geometry": G2020_060_3402937380,"properties":{ "geot__geoid":"3402937380","geot__namelsad":"Lacey township, Ocean County, New Jersey","geot__sumlevel":"060","geop__pmk":"2010-060-3402937380","geot__pmk":"2020-060-3402937380","pmk":"060-3402937380","total_ypc":3.7, } }, {"type":"Feature","geometry": G2020_060_3402937770,"properties":{ "geot__geoid":"3402937770","geot__namelsad":"Lakehurst borough, Ocean County, New Jersey","geot__sumlevel":"060","geop__pmk":"2010-060-3402937770","geot__pmk":"2020-060-3402937770","pmk":"060-3402937770","total_ypc":-0.7, } }, {"type":"Feature","geometry": G2020_060_3402938550,"properties":{ "geot__geoid":"3402938550","geot__namelsad":"Lakewood township, Ocean County, New Jersey","geot__sumlevel":"060","geop__pmk":"2010-060-3402938550","geot__pmk":"2020-060-3402938550","pmk":"060-3402938550","total_ypc":45.6, } }, {"type":"Feature","geometry": G2020_060_3402939390,"properties":{ "geot__geoid":"3402939390","geot__namelsad":"Lavallette borough, Ocean County, New Jersey","geot__sumlevel":"060","geop__pmk":"2010-060-3402939390","geot__pmk":"2020-060-3402939390","pmk":"060-3402939390","total_ypc":-4.7, } }, {"type":"Feature","geometry": G2020_060_3402940560,"properties":{ "geot__geoid":"3402940560","geot__namelsad":"Little Egg Harbor township, Ocean County, New Jersey","geot__sumlevel":"060","geop__pmk":"2010-060-3402940560","geot__pmk":"2020-060-3402940560","pmk":"060-3402940560","total_ypc":3.6, } }, {"type":"Feature","geometry": G2020_060_3402941250,"properties":{ "geot__geoid":"3402941250","geot__namelsad":"Long Beach township, Ocean County, New Jersey","geot__sumlevel":"060","geop__pmk":"2010-060-3402941250","geot__pmk":"2020-060-3402941250","pmk":"060-3402941250","total_ypc":3.3, } }, {"type":"Feature","geometry": G2020_060_3402943140,"properties":{ "geot__geoid":"3402943140","geot__namelsad":"Manchester township, Ocean County, New Jersey","geot__sumlevel":"060","geop__pmk":"2010-060-3402943140","geot__pmk":"2020-060-3402943140","pmk":"060-3402943140","total_ypc":4.7, } }, {"type":"Feature","geometry": G2020_060_3402943380,"properties":{ "geot__geoid":"3402943380","geot__namelsad":"Mantoloking borough, Ocean County, New Jersey","geot__sumlevel":"060","geop__pmk":"2010-060-3402943380","geot__pmk":"2020-060-3402943380","pmk":"060-3402943380","total_ypc":11.8, } }, {"type":"Feature","geometry": G2020_060_3402954300,"properties":{ "geot__geoid":"3402954300","geot__namelsad":"Ocean township, Ocean County, New Jersey","geot__sumlevel":"060","geop__pmk":"2010-060-3402954300","geot__pmk":"2020-060-3402954300","pmk":"060-3402954300","total_ypc":6.0, } }, {"type":"Feature","geometry": G2020_060_3402954450,"properties":{ "geot__geoid":"3402954450","geot__namelsad":"Ocean Gate borough, Ocean County, New Jersey","geot__sumlevel":"060","geop__pmk":"2010-060-3402954450","geot__pmk":"2020-060-3402954450","pmk":"060-3402954450","total_ypc":-3.9, } }, {"type":"Feature","geometry": G2020_060_3402958590,"properties":{ "geot__geoid":"3402958590","geot__namelsad":"Pine Beach borough, Ocean County, New Jersey","geot__sumlevel":"060","geop__pmk":"2010-060-3402958590","geot__pmk":"2020-060-3402958590","pmk":"060-3402958590","total_ypc":0.6, } }, {"type":"Feature","geometry": G2020_060_3402959790,"properties":{ "geot__geoid":"3402959790","geot__namelsad":"Plumsted township, Ocean County, New Jersey","geot__sumlevel":"060","geop__pmk":"2010-060-3402959790","geot__pmk":"2020-060-3402959790","pmk":"060-3402959790","total_ypc":-4.1, } }, {"type":"Feature","geometry": G2020_060_3402959880,"properties":{ "geot__geoid":"3402959880","geot__namelsad":"Point Pleasant borough, Ocean County, New Jersey","geot__sumlevel":"060","geop__pmk":"2010-060-3402959880","geot__pmk":"2020-060-3402959880","pmk":"060-3402959880","total_ypc":3.0, } }, {"type":"Feature","geometry": G2020_060_3402959910,"properties":{ "geot__geoid":"3402959910","geot__namelsad":"Point Pleasant Beach borough, Ocean County, New Jersey","geot__sumlevel":"060","geop__pmk":"2010-060-3402959910","geot__pmk":"2020-060-3402959910","pmk":"060-3402959910","total_ypc":2.2, } }, {"type":"Feature","geometry": G2020_060_3402966450,"properties":{ "geot__geoid":"3402966450","geot__namelsad":"Seaside Heights borough, Ocean County, New Jersey","geot__sumlevel":"060","geop__pmk":"2010-060-3402966450","geot__pmk":"2020-060-3402966450","pmk":"060-3402966450","total_ypc":-15.5, } }, {"type":"Feature","geometry": G2020_060_3402966480,"properties":{ "geot__geoid":"3402966480","geot__namelsad":"Seaside Park borough, Ocean County, New Jersey","geot__sumlevel":"060","geop__pmk":"2010-060-3402966480","geot__pmk":"2020-060-3402966480","pmk":"060-3402966480","total_ypc":-9.1, } }, {"type":"Feature","geometry": G2020_060_3402967110,"properties":{ "geot__geoid":"3402967110","geot__namelsad":"Ship Bottom borough, Ocean County, New Jersey","geot__sumlevel":"060","geop__pmk":"2010-060-3402967110","geot__pmk":"2020-060-3402967110","pmk":"060-3402967110","total_ypc":-5.0, } }, {"type":"Feature","geometry": G2020_060_3402969510,"properties":{ "geot__geoid":"3402969510","geot__namelsad":"South Toms River borough, Ocean County, New Jersey","geot__sumlevel":"060","geop__pmk":"2010-060-3402969510","geot__pmk":"2020-060-3402969510","pmk":"060-3402969510","total_ypc":-1.1, } }, {"type":"Feature","geometry": G2020_060_3402970320,"properties":{ "geot__geoid":"3402970320","geot__namelsad":"Stafford township, Ocean County, New Jersey","geot__sumlevel":"060","geop__pmk":"2010-060-3402970320","geot__pmk":"2020-060-3402970320","pmk":"060-3402970320","total_ypc":7.8, } }, {"type":"Feature","geometry": G2020_060_3402971640,"properties":{ "geot__geoid":"3402971640","geot__namelsad":"Surf City borough, Ocean County, New Jersey","geot__sumlevel":"060","geop__pmk":"2010-060-3402971640","geot__pmk":"2020-060-3402971640","pmk":"060-3402971640","total_ypc":3.2, } }, {"type":"Feature","geometry": G2020_060_3402973125,"properties":{ "geot__geoid":"3402973125","geot__namelsad":"Toms River township, Ocean County, New Jersey","geot__sumlevel":"060","geop__pmk":"2010-060-3402973125","geot__pmk":"2020-060-3402973125","pmk":"060-3402973125","total_ypc":4.6, } }, {"type":"Feature","geometry": G2020_060_3402974210,"properties":{ "geot__geoid":"3402974210","geot__namelsad":"Tuckerton borough, Ocean County, New Jersey","geot__sumlevel":"060","geop__pmk":"2010-060-3402974210","geot__pmk":"2020-060-3402974210","pmk":"060-3402974210","total_ypc":6.9, } }, ]};// 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_3402954300 !== 'undefined') { map.addLayer({'id': 'areaOldBoundary', 'type': 'line', 'source': { "type": "geojson", "data":Gon2Line(G2010_060_3402954300) }, '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_3402954300) }, '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_3402954300); 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-3402954300)map.fitBounds(bounds, { padding: 120 });map.addControl(new mapboxgl.NavigationControl(), 'top-left');