I have a dropdown with a list of counties to select from on the map. I'm trying to figure out how I can have the county on the map highlighted when it is selected. I cannot find in the API documentation where this is done.
I tried changing the fill color of the point but when you select a new color the code to change it back to its previous color doesn't seem to want to execute.
So essentially, in my on change event code, I want to change the color the selected point by hc-key or id.
$("#county-select").change(function () {
$('.highcharts-point-select').css('fill', 'rgb(153, 145, 164)');
$('.county-checkbox').prop('checked', false);
$('.metric-td').remove();
let id = $('#county-select').val();
let fips = $(this).find(':selected').attr('data-fips');
let point = mapChart.get(fips);
});