Number | Percent | |
Total # of Bridges | 77 | |
Bridges need repair or corrective action | 3 | 3.90% |
Closed | 0 | 0.00% |
Rated Poor by USDOT | 0 | 0.00% |
Structurally Deficient | 0 | 0.00% |
Map
- Good condition
- Meets minimum tolerable limits
- Needs repair or corrective action
- Closed
- Report not available
Bridges in Appling County, Georgia
Bridge | Owner | NBI Inspection Date | Overall Status | Bridge Condition | Sufficiency Rating | Average Daily Traffic | Structural Evaluation | Deck Geometry |
---|---|---|---|---|---|---|---|---|
RED OAK ROAD over SWEETWATER CREEK | County Highway Agency | 202301 January 2023 | Needs repair or corrective action | Good | 1,070 | 7: Better than present minimum criteria | 3: Basically intolerable requiring high priority of corrective action | |
TEN MILE ROAD over TEN MILE CREEK | County Highway Agency | 202301 January 2023 | Needs repair or corrective action | Fair | 1,180 | 6: Equal to present minimum criteria | 3: Basically intolerable requiring high priority of corrective action | |
TEN MILE ROAD over LITTLE TEN MILE CREEK | County Highway Agency | 202301 January 2023 | Needs repair or corrective action | Fair | 1,200 | 5: Somewhat better than minimum adequacy to tolerate being left in place as is | 3: Basically intolerable requiring high priority of corrective action | |
DYAL SCHOOL ROAD over BISHOP CREEK | County Highway Agency | 202302 February 2023 | Meets minimum tolerable limits | Good | 220 | 6: Equal to present minimum criteria | 4: Meets minimum tolerable limits to be left in place as is | |
HUNDREDS ROAD over SWEETWATER CR TRIB | County Highway Agency | 202301 January 2023 | Meets minimum tolerable limits | Good | 130 | 6: Equal to present minimum criteria | 4: Meets minimum tolerable limits to be left in place as is | |
US 341 SR 27 over SWEETWATER CREEK TRIB | State Highway Agency | 202301 January 2023 | Meets minimum tolerable limits | Good | 10,800 | 4: Meets minimum tolerable limits to be left in place as is | N: Not applicable | |
SR 121 over ALISONS CREEK | State Highway Agency | 202301 January 2023 | Meets minimum tolerable limits | Good | 1,200 | 4: Meets minimum tolerable limits to be left in place as is | 5: Somewhat better than minimum adequacy to tolerate being left in place as is | |
SR 121 over FIVE MILE CREEK TRIB | State Highway Agency | 202301 January 2023 | Meets minimum tolerable limits | Good | 1,200 | 4: Meets minimum tolerable limits to be left in place as is | N: Not applicable | |
COUNTY FARM ROAD over BIG SATILLA CREEK | County Highway Agency | 202302 February 2023 | Meets minimum tolerable limits | Good | 280 | 6: Equal to present minimum criteria | 4: Meets minimum tolerable limits to be left in place as is | |
TEN MILE ROAD over TEN MILE CREEK | County Highway Agency | 202301 January 2023 | Meets minimum tolerable limits | Fair | 610 | 5: Somewhat better than minimum adequacy to tolerate being left in place as is | 4: Meets minimum tolerable limits to be left in place as is | |
COUNTY FARM ROAD over BISHOP CREEK | County Highway Agency | 202302 February 2023 | Meets minimum tolerable limits | Fair | 470 | 6: Equal to present minimum criteria | 4: Meets minimum tolerable limits to be left in place as is | |
COUNTY FARM ROAD over BLACK WATER CREEK | County Highway Agency | 202302 February 2023 | Meets minimum tolerable limits | Fair | 1,060 | 5: Somewhat better than minimum adequacy to tolerate being left in place as is | 4: Meets minimum tolerable limits to be left in place as is | |
COUNTY FARM ROAD over SWEETWATER CREEK | County Highway Agency | 202301 January 2023 | Meets minimum tolerable limits | Fair | 1,089 | 5: Somewhat better than minimum adequacy to tolerate being left in place as is | 4: Meets minimum tolerable limits to be left in place as is | |
BEN CARTER ROAD over TEN MILE CREEK | County Highway Agency | 202301 January 2023 | Meets minimum tolerable limits | Fair | 530 | 6: Equal to present minimum criteria | 4: Meets minimum tolerable limits to be left in place as is | |
SR 203 over SWEETWATER CREEK | State Highway Agency | 202301 January 2023 | Meets minimum tolerable limits | Fair | 880 | 5: Somewhat better than minimum adequacy to tolerate being left in place as is | 4: Meets minimum tolerable limits to be left in place as is | |
SR 15 over SWEETWATER CREEK TRIB | State Highway Agency | 202301 January 2023 | Meets minimum tolerable limits | Fair | 1,730 | 6: Equal to present minimum criteria | 4: Meets minimum tolerable limits to be left in place as is | |
BROWN ROAD over SWEETWATER CREEK | County Highway Agency | 202301 January 2023 | Good/Fair | Good | 121 | 7: Better than present minimum criteria | 5: Somewhat better than minimum adequacy to tolerate being left in place as is | |
US 1 SR 4 over TEN MILE CREEK | State Highway Agency | 202301 January 2023 | Good/Fair | Good | 5,460 | 7: Better than present minimum criteria | N: Not applicable | |
US 1 SR 4 over TEN MILE CREEK TRIB | State Highway Agency | 202301 January 2023 | Good/Fair | Good | 5,460 | 7: Better than present minimum criteria | N: Not applicable | |
US 341 WBL over NS RAILROAD | State Highway Agency | 202301 January 2023 | Good/Fair | Good | 2,320 | 7: Better than present minimum criteria | 6: Equal to present minimum criteria | |
US 341 over NS RAILROAD | State Highway Agency | 202301 January 2023 | Good/Fair | Good | 5,330 | 7: Better than present minimum criteria | 6: Equal to present minimum criteria | |
ZOAR ROAD over BLACK WATER CREEK | County Highway Agency | 202301 January 2023 | Good/Fair | Good | 1,200 | 6: Equal to present minimum criteria | N: Not applicable | |
SATILLA ROAD over BIG SATILLA CREEK TRIB | County Highway Agency | 202301 January 2023 | Good/Fair | Good | 1,200 | 7: Better than present minimum criteria | N: Not applicable | |
GRAHAM-ZOAR ROAD over BIG SATILLA CREEK TRIB | County Highway Agency | 202301 January 2023 | Good/Fair | Good | 1,200 | 6: Equal to present minimum criteria | N: Not applicable | |
LAKE MAYERS ROAD over BISHOP CREEK | County Highway Agency | 202301 January 2023 | Good/Fair | Good | 340 | 7: Better than present minimum criteria | 5: Somewhat better than minimum adequacy to tolerate being left in place as is | |
OSCAR TIPPINS ROAD over TEN MILE CREEK TRIB | County Highway Agency | 202301 January 2023 | Good/Fair | Good | 110 | 6: Equal to present minimum criteria | N: Not applicable | |
CLELAND LANE over SWEETWATER CREEK | County Highway Agency | 202301 January 2023 | Good/Fair | Good | 370 | 7: Better than present minimum criteria | N: Not applicable | |
MILES ROAD over SWEETWATER CREEK TRIB | County Highway Agency | 202301 January 2023 | Good/Fair | Good | 1,089 | 7: Better than present minimum criteria | N: Not applicable | |
GENE ROAD over REEDY CREEK TRIB | County Highway Agency | 202301 January 2023 | Good/Fair | Good | 300 | 7: Better than present minimum criteria | N: Not applicable | |
FIRE TOWER ROAD over TEN MILE CREEK | County Highway Agency | 202301 January 2023 | Good/Fair | Good | 30 | 7: Better than present minimum criteria | 6: Equal to present minimum criteria | |
GRAHAM-ZOAR ROAD over BISHOP CREEK TRIB | County Highway Agency | 202301 January 2023 | Good/Fair | Good | 470 | 7: Better than present minimum criteria | N: Not applicable | |
GRAHAM-ZOAR ROAD over BISHOP CREEK | County Highway Agency | 202301 January 2023 | Good/Fair | Good | 1,200 | 7: Better than present minimum criteria | N: Not applicable | |
GENE ROAD over REEDY CREEK | County Highway Agency | 202301 January 2023 | Good/Fair | Good | 300 | 8: Equal to present desirable criteria | N: Not applicable | |
COUNTY FARM RD EXD over BIG SATILLA CREEK TRIB | County Highway Agency | 202302 February 2023 | Good/Fair | Good | 1,200 | 7: Better than present minimum criteria | N: Not applicable | |
SR 4 (US 1) over ALTAMAHA RIVER | State Highway Agency | 202301 January 2023 | Good/Fair | Good | 5,300 | 7: Better than present minimum criteria | 7: Better than present minimum criteria | |
OSCAR TIPPINS ROAD over TEN MILE CREEK | County Highway Agency | 202301 January 2023 | Good/Fair | Good | 130 | 7: Better than present minimum criteria | 7: Better than present minimum criteria | |
ZOAR ROAD over BIG SATILLA CREEK TRIB | County Highway Agency | 202301 January 2023 | Good/Fair | Good | 270 | 8: Equal to present desirable criteria | 7: Better than present minimum criteria | |
POOR ROBIN ROAD over DRY BRANCH | County Highway Agency | 202301 January 2023 | Good/Fair | Good | 514 | 7: Better than present minimum criteria | N: Not applicable | |
ZOAR ROAD over SWEETWATER CREEK | County Highway Agency | 202301 January 2023 | Good/Fair | Good | 1,940 | 8: Equal to present desirable criteria | 5: Somewhat better than minimum adequacy to tolerate being left in place as is | |
ZOAR ROAD over BISHOP CREEK | County Highway Agency | 202301 January 2023 | Good/Fair | Good | 1,200 | 7: Better than present minimum criteria | 5: Somewhat better than minimum adequacy to tolerate being left in place as is | |
US 1 SR 4 over BLACK WATER CREEK | State Highway Agency | 202301 January 2023 | Good/Fair | Good | 4,170 | 7: Better than present minimum criteria | 7: Better than present minimum criteria | |
US 1 SR 4 over BLACK WATER CREEK | State Highway Agency | 202301 January 2023 | Good/Fair | Good | 4,590 | 7: Better than present minimum criteria | 7: Better than present minimum criteria | |
POOR ROBIN ROAD over SWEETWATER CREEK TRIB | County Highway Agency | 202302 February 2023 | Good/Fair | Good | 1,089 | 7: Better than present minimum criteria | N: Not applicable | |
PRATT HUTTO ROAD over COLEMANS CREEK | County Highway Agency | 202301 January 2023 | Good/Fair | Good | 121 | 6: Equal to present minimum criteria | N: Not applicable | |
SR 15 over BIG SATILLA CR | State Highway Agency | 202301 January 2023 | Good/Fair | Good | 2,530 | 7: Better than present minimum criteria | 7: Better than present minimum criteria | |
MILES-BECKWORTH RD over SWEETWATER CREEK | County Highway Agency | 202301 January 2023 | Good/Fair | Good | 60 | 6: Equal to present minimum criteria | 7: Better than present minimum criteria | |
US 1 SR 4 over LITTLE TEN MILE CRK TRIB | State Highway Agency | 202301 January 2023 | Good/Fair | Good | 5,460 | 7: Better than present minimum criteria | N: Not applicable | |
LAKE CHAPEL CH RD over COLEMANS CREEK | County Highway Agency | 202301 January 2023 | Good/Fair | Good | 750 | 8: Equal to present desirable criteria | 5: Somewhat better than minimum adequacy to tolerate being left in place as is | |
US 1 SR 4 over SWEETWATER CREE | State Highway Agency | 202301 January 2023 | Good/Fair | Good | 4,170 | 8: Equal to present desirable criteria | 7: Better than present minimum criteria | |
US 1 SR 4 over BAY CREEK | State Highway Agency | 202301 January 2023 | Good/Fair | Good | 5,880 | 7: Better than present minimum criteria | N: Not applicable | |
US 1 SR 4 over BAY CREEK TRIB | State Highway Agency | 202301 January 2023 | Good/Fair | Good | 5,880 | 7: Better than present minimum criteria | N: Not applicable | |
US 1 SR 4 over LITTLE TEN MILE CREEK | State Highway Agency | 202301 January 2023 | Good/Fair | Good | 5,460 | 7: Better than present minimum criteria | N: Not applicable | |
SR 4 (US 1) over ALTAMAHA RIVER | State Highway Agency | 202301 January 2023 | Good/Fair | Good | 6,750 | 7: Better than present minimum criteria | 7: Better than present minimum criteria | |
US 1 SR 4 over BIG SATILLA CREEK | State Highway Agency | 202301 January 2023 | Good/Fair | Good | 4,590 | 6: Equal to present minimum criteria | N: Not applicable | |
US 1 SR 4 over SWEETWATER CREE | State Highway Agency | 202301 January 2023 | Good/Fair | Good | 4,590 | 7: Better than present minimum criteria | 7: Better than present minimum criteria | |
SR 121 over SOUTH FIVE MILE CREEK | State Highway Agency | 202301 January 2023 | Good/Fair | Good | 1,200 | 7: Better than present minimum criteria | N: Not applicable | |
SR 121 over LITTLE SATILLA CREEK | State Highway Agency | 202301 January 2023 | Good/Fair | Good | 1,200 | 5: Somewhat better than minimum adequacy to tolerate being left in place as is | N: Not applicable | |
SR 121 over COLEMANS CREEK | State Highway Agency | 202301 January 2023 | Good/Fair | Good | 860 | 7: Better than present minimum criteria | 6: Equal to present minimum criteria | |
NAILS FERRY ROAD over TEN MILE CREEK | County Highway Agency | 202301 January 2023 | Good/Fair | Good | 6,090 | 5: Somewhat better than minimum adequacy to tolerate being left in place as is | N: Not applicable | |
BEN CARTER ROAD over LITTLE TEN MILE CREEK | County Highway Agency | 202301 January 2023 | Good/Fair | Good | 450 | 7: Better than present minimum criteria | N: Not applicable | |
SR 121 over NORTH FIVE MILE CREEK | State Highway Agency | 202301 January 2023 | Good/Fair | Good | 1,200 | 7: Better than present minimum criteria | N: Not applicable | |
SR 121 over FIVE MILE CREEK TRIB | State Highway Agency | 202301 January 2023 | Good/Fair | Good | 1,200 | 5: Somewhat better than minimum adequacy to tolerate being left in place as is | N: Not applicable | |
US 341 SR 27 over COLEMANS CREEK | State Highway Agency | 202301 January 2023 | Good/Fair | Good | 4,550 | 8: Equal to present desirable criteria | N: Not applicable | |
US 341 SR 27 over SWEETWATER CREEK | State Highway Agency | 202301 January 2023 | Good/Fair | Good | 7,560 | 7: Better than present minimum criteria | N: Not applicable | |
SPR BRANCH ROAD over LITTLE TEN MILE CREEK | County Highway Agency | 202301 January 2023 | Good/Fair | Good | 430 | 7: Better than present minimum criteria | N: Not applicable | |
SR 203 over BIG SATILLA CREEK TRIB | State Highway Agency | 202301 January 2023 | Good/Fair | Good | 880 | 6: Equal to present minimum criteria | N: Not applicable | |
SR 203 over BIG SATILLA CREEK TRIB | State Highway Agency | 202301 January 2023 | Good/Fair | Good | 880 | 7: Better than present minimum criteria | N: Not applicable | |
SR 15 over BORE CREEK | State Highway Agency | 202301 January 2023 | Good/Fair | Good | 1,750 | 6: Equal to present minimum criteria | N: Not applicable | |
REESE ROAD over SWEETWATER CREEK | County Highway Agency | 202301 January 2023 | Good/Fair | Good | 121 | 6: Equal to present minimum criteria | 5: Somewhat better than minimum adequacy to tolerate being left in place as is | |
HOLMESVILLE ROAD over COLEMANS CREEK | County Highway Agency | 202301 January 2023 | Good/Fair | Good | 514 | 6: Equal to present minimum criteria | N: Not applicable | |
HOLMESVILLE ROAD over DRY BRANCH | County Highway Agency | 202301 January 2023 | Good/Fair | Good | 514 | 6: Equal to present minimum criteria | N: Not applicable | |
SR 15 over SWEETWATER CREEK TRIB | State Highway Agency | 202301 January 2023 | Good/Fair | Good | 3,350 | 7: Better than present minimum criteria | N: Not applicable | |
NAILS FERRY ROAD over TEN MILE CREEK TRIB | County Highway Agency | 202301 January 2023 | Good/Fair | Fair | 6,090 | 5: Somewhat better than minimum adequacy to tolerate being left in place as is | N: Not applicable | |
SATILLA ROAD over SWEETWATER CREEK | County Highway Agency | 202301 January 2023 | Good/Fair | Fair | 1,120 | 6: Equal to present minimum criteria | N: Not applicable | |
US 1 SR 4 over BAY CREEK TRIB | State Highway Agency | 202301 January 2023 | Good/Fair | Fair | 5,880 | 6: Equal to present minimum criteria | N: Not applicable | |
JOHN C BEASLEY BR over ALTAMAHA RIVER | State Highway Agency | 202301 January 2023 | Good/Fair | Fair | 3,490 | 6: Equal to present minimum criteria | 5: Somewhat better than minimum adequacy to tolerate being left in place as is | |
ZOAR ROAD over BIG SATILLA CREEK | County Highway Agency | 202301 January 2023 | Good/Fair | Fair | 1,200 | 6: Equal to present minimum criteria | 5: Somewhat better than minimum adequacy to tolerate being left in place as is |
- Overal Status includes Item 67 (Structural Condition) and Item 68 (Deck Geometry in addition to Federal Highway Administration's Good/Fair/Poor rating
- Overall Status - Closed: Condition rating of 0 or 1 for Item 58 (Deck), Item 59 (Superstructure), Item 60 (Substructure), Item 62 (Culvert); 0 for Item 67 (Structural Condition) or Item 68 (Deck Geometry)
- Overall Status - Needs repair or corrective action: Rating of 2 or 3 for Item 58 (Deck), Item 59 (Superstructure), Item 60 (Substructure); rating of 2 for Item 62 (Culvert); rating of 2 or 3 for Item 67 (Structural Condition), Item 68 (Deck Geometry)
- Overall Status - Meets minimum tolerable limits: Rating of 4 for Item 58 (Deck), Item 59 (Superstructure), Item 60 (Substructure); rating of 2 or 3 for Item 62 (Culvert); rating of 4 for Item 67 (Structural Condition), Item 68 (Deck Geometry)
- Overall Status - Good: Rating of 5 or above for Item 58 (Deck), Item 59 (Superstructure), Item 60 (Substructure), Item 62 (Culvert), Item 67 (Structural Condition), Item 68 (Deck Geometry)
- Good (G), Fair (F), Poor(P): These terms are defined in accordance with the Pavement and Bridge Condition Performance Measures final rule, published in January of 2017. Bridge Condition is determined by the lowest rating of National Bridge Inventory (NBI) condition ratings for Item 58 (Deck), Item 59 (Superstructure), Item 60 (Substructure), or Item 62 (Culvert). If the lowest rating is greater than or equal to 7, the bridge is classified as Good; if it is less than or equal to 4, the classification is Poor. Bridges rated 5 or 6 are classified as Fair.
- Structurally Deficient (SD): Condition rating of 4 or less for Item 58 (Deck), Item 59 (Superstructure), Item 60 (Substructure), or Item 62 (Culvert), OR having an appraisal rating of 2 or less for Item 67 (Structural Condition) or Item 71 (Waterway Adequacy) Beginning with the 2018 data archive, this term will be defined in accordance with the Pavement and Bridge Condition Performance Measures final rule, published in January of 2017, as a classification given to a bridge which has any component [Item 58, 59, 60, or 62] in Poor or worse condition [code of 4 or less].
- Functionally Obsolete (FO): Appraisal rating of 3 or less for Item 68 (Deck Geometry), Item 69 (Underclearances), or Item 72 (Approach Roadway Alignment), OR having an appraisal rating of 3 for Item 67 (Structural Condition) or Item 71 (Waterway Adequacy). Functionally obsolete is a legacy classification that was used to implement the Highway Bridge Program, which was discontinued with the enactment of MAP-21. As a result, fiscal year 2015 was the last year outstanding Highway Bridge Program funds could be obligated on eligible projects, including ones with bridges that were once classified as functionally obsolete. Therefore, FHWA is no longer tracking this measure, and will not be publishing it on our website for the 2016 data forward. Our focus has shifted to a performance-based program as established in MAP-21 and continued in the Fast Act. As such, we encourage the use of the Good-Fair-Poor bridge condition measures outlined in the Pavement and Bridge Condition Performance Measures final rule, published in January of 2017.
'; popupContent += '
Total # of Bridges | '+feature.properties.total+' | |
Bridges need repair or corrective action | '+feature.properties.nf+' | |
Closed | '+feature.properties.cl+' | |
Number | Percent | |
Rated Poor by USDOT | '+feature.properties.poor+' | '+feature.properties.pctpoor+' |
Structurally Deficient | '+feature.properties.sd+' | '+feature.properties.pctsd+' |
'; popupContent += '
More
'; return popupContent; }//{"type": "Feature","properties":{"gid":"01001", "name":"Autauga County, AL", "slug":"autauga", "stslug":"alabama", "year":"2018", "total":"117", "nf":"14", "nfc":"14", "cl":"0", "pctnfc":"11.97","poor":"4","pctpoor":"3.42","sd":"4","pctsd":"3.42","fo":"16","pctfo":"13.68","fc":"#e6b414","pc":"#00f014"},"geometry": {"type": "MultiPolygon","coordinates":US01001}} function onBridgeFeature(feature) { if(feature.properties.ost == 'good'){var ost = 'Good/Fair';} else if(feature.properties.ost == 'poor'){var ost = 'Meets minimum tolerable limits';} else if(feature.properties.ost == 'repair'){var ost = 'Needs repair or corrective action';} else if(feature.properties.ost == 'closed'){var ost = 'Closed';} else if(feature.properties.ost == 'N/A'){var ost = 'Report Not Available';}; if(feature.properties.bc == 'F'){var bc = 'Fair';} else if(feature.properties.bc == 'G'){var bc = 'Good';} else if(feature.properties.bc == 'P'){var bc = 'Poor';}; if(feature.properties.sd == 'y'){var sd = '
Structurally Deficient';} else { var sd = '';} if(feature.properties.fo == 'y'){var fo = '
Functionally Obsolete';} else { var fo = '';} var popupContent = "";// var popupContent = "
I started out as a GeoJSON " + feature.geometry.type + ", but now I'm a Leaflet vector!
"; popupContent += '
'+feature.properties.name+'
'; popupContent += '
NBI Inspection Date | '+feature.properties.idte+' |
Overall Status | '+ost+' |
NBI Bridge Condition | '+bc+sd+fo+' |
Sufficiency Rating | '+feature.properties.sr+' |
Structural Evaluation | '+feature.properties.item67+': '+feature.properties.stru+' |
Deck Geometry | '+feature.properties.item68+': '+feature.properties.deck+' |
'; popupContent += '
More
'; return popupContent; } var CntyBridgesJSON = { "type": "FeatureCollection", "features":BridgeJSONData };mapboxgl.accessToken = 'pk.eyJ1IjoieXB5dW4iLCJhIjoiY2oxcW4ybWhxMDBkMjJxcGVhbDV5cnpzYyJ9.oFQSnOc57xCR7A51OR6-3w'; //ck0flqufl2k1x1cpmupm5sl2yvar map = new mapboxgl.Map({container: 'bridgeMap', style: 'mapbox://styles/ypyun/cj83a8ga5abkq2sqpivw3nrzg',center: [-84.515754,27.664827], zoom: 5, attributionControl: false, });map.addControl(new mapboxgl.AttributionControl({ compact: false, customAttribution:['Map Icons Collection'] })); var STLINE = {"type":"FeatureCollection", "features":[ {"type":"Feature","properties":{"GEO_ID":"13001","NAME":"State","VAL":0,"VALstr":"","VALper":"","FC":"#FFF",},"geometry":{"type":"MultiPolygon","coordinates":US13001 }}, ]}; // ptype listmap.on('style.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('bridges', {type: 'geojson', data: CntyBridgesJSON }); map.loadImage('/static/markers/bridges/bridge_green.png', function(error, image) {if (error) throw error; map.addImage('green', image); }); map.loadImage('/static/markers/bridges/bridge_yellow.png', function(error, image) {if (error) throw error; map.addImage('yellow', image); }); map.loadImage('/static/markers/bridges/bridge_red.png', function(error, image) {if (error) throw error; map.addImage('red', image); }); map.loadImage('/static/markers/bridges/bridge_black.png', function(error, image) {if (error) throw error; map.addImage('black', image); }); map.loadImage('/static/markers/bridges/bridge_white.png', function(error, image) {if (error) throw error; map.addImage('white', image); }); map.addLayer({"id": "green", "type": "symbol", "source": "bridges", "filter":["all", ["==","grade","green"], ["==","m","y"]], "layout": {"visibility":"none", "icon-image": 'green', 'icon-allow-overlap':true},}); map.addLayer({"id": "yellow", "type": "symbol", "source": "bridges", "filter":["all", ["==","grade","yellow"], ["==","m","y"]], "layout": {"visibility":"visible", "icon-image": 'yellow', 'icon-allow-overlap':true},}); map.addLayer({"id": "red", "type": "symbol", "source": "bridges", "filter":["all", ["==","grade","red"], ["==","m","y"]], "layout": {"visibility":"visible", "icon-image": 'red', 'icon-allow-overlap':true},}); map.addLayer({"id": "black", "type": "symbol", "source": "bridges", "filter":["all", ["==","grade","black"], ["==","m","y"]], "layout": {"visibility":"visible", "icon-image": 'black', 'icon-allow-overlap':true},}); map.addLayer({"id": "white", "type": "symbol", "source": "bridges", "filter":["all", ["==","grade","white"], ["==","m","y"]], "layout": {"visibility":"none", "icon-image": 'white', 'icon-allow-overlap':true },}); for (blayer of ['green','yellow','red','black','white']) { map.on('click', blayer, function (e) {new mapboxgl.Popup({ offset: 14 }).setLngLat(e.lngLat).setHTML(onBridgeFeature(e.features[0])).addTo(map);}); map.on('mouseenter', blayer, function () {map.getCanvas().style.cursor = 'pointer'; }); map.on('mouseleave', blayer, function () {map.getCanvas().style.cursor = '';}); } map.addLayer({ "id": "stline", "type": "line", "source": { "type": "geojson", "data":STLINE }, "paint": {'line-color':"#333", 'line-opacity':0.9, 'line-width': 2.0 }},firstSymbolId);}); var toggleableLayerIds = [['green','Good'],['yellow','Meet Min.'],['red','Need Repair'],['black','Closed'],['white','N/A']];for (var i = 0; i < toggleableLayerIds.length; i++) { var id = toggleableLayerIds[i][0]; var idstr = toggleableLayerIds[i][1]; var link = document.createElement('a'); link.href = '#'; if (toggleableLayerIds[i][0] == 'green' || toggleableLayerIds[i][0] == 'white'){link.className = 'inactive';} else {link.className = 'active';} link.tgid = id; link.textContent = idstr; link.setAttribute("id",id+'_id') link.onclick = function (e) { var clickedLayer = this.tgid; e.preventDefault(); e.stopPropagation(); var visibility = map.getLayoutProperty(clickedLayer, 'visibility'); console.log(clickedLayer); if (visibility === 'visible') { map.setLayoutProperty(clickedLayer, 'visibility', 'none'); this.className = ''; } else { this.className = 'active'; map.setLayoutProperty(clickedLayer, 'visibility', 'visible'); } }; var layers = document.getElementById('mapmenu'); layers.appendChild(link);} var bounds = new mapboxgl.LngLatBounds(); var BounceLine = STLINE['features'][0]['geometry']['coordinates']; BounceLine.forEach(function(Tpolygon) { Tpolygon.forEach(function(Tline){ Tline.forEach(function(Tpoint){bounds.extend(Tpoint); }) }) });map.fitBounds(bounds, { padding: 120 });map.addControl(new mapboxgl.NavigationControl(), 'top-left');