ucLayer = {
const markerstyle = d => {
const isCarbon=d.properties["Network"]=="Carbon Health Care (FKA Direct Urgent Care)";
return ({
radius: isCarbon ? 6 : 4,
fillColor: ucColor(googleRatingScore(d.properties)),
fillOpacity: 1,
stroke: true,
color: isCarbon ? "white" : "white",
weight: isCarbon ? 2 : 0.5,
opacity: isCarbon ? 1 : 0.5,
})
};
return L.geoJson(urgent_cares, {
filter: d => "0"+d.properties["Full Census Tract"].substr(0,4) == selected_county,
pointToLayer: (feature, latlng) => L.circleMarker(latlng, markerstyle(feature))
})
.bindTooltip(layer => urgentCareTooltip(layer.feature.properties))
.bindPopup(layer => urgentCareTooltip(layer.feature.properties))
}