I am trying to create a count in a text box which looks at the amount of markers I have visible and store it in my #countBox. I have lots of different filters such as a checkbox, a drop down and a date range to display different results so it will need to work on all of them.
This is where I am at the moment but it is not working.
var count = document.getSelection(markers).style.visibility = "visible";
$.each(unique(marker), function (i, marker) {
if (marker.setVisible = true) {
count++;
}
});
$('#countBox').val(count);