Implementing a javascript switch statement to dynamically assign fillColor based on specific case values. The current code successfully assigns the value according to the first case, but fails to execute the subsequent cases.
var ElectionDistrictLayer = L.geoJson(QueensCC, {
style: function(feature) {
var fillColor = feature.properties.QnsCountyCommitteeList_Seat_Description;
switch(fillColor)
{
case "Full":
fillColor = "#94ff7c";
break;
case "1 Vacancy":
fillColor: "#ffff20";
break;
case "Fully Vacant":
fillColor: "#ff2020";
break;
default:
fillColor: "Black";
break;
}
return {color: "blue", weight: 0, fillColor: fillColor, fillOpacity: .6};
}
}).addTo(mymap);