I can't for the life of me find what's wrong with my checkbox filter. I'm using the source code supplied by Derek Eder as a template. There's a similar question on here however the answer doesn't cover my issue.
<h4>Vacancy Selection</h4>
<div class='row'>
<div class='col-md-6'>
<ul class='inputs-list unstyled'>
<li>
<label class='checkbox inline'>
<input type='checkbox' id='cbTypeVacant1' />
<span class='filter-box filter-green'></span>
Vacant
</label>
</li>
<li>
<label class='checkbox inline'>
<input type='checkbox' id='cbTypeVacant2' />
<span class='filter-box filter-red'></span>
Occupied
</label>
</li>
</ul>
As defined in my index.html
//-----custom filters-----
var type_column = "'Type Vacant'";
var searchType = type_column + " IN (-1,";
if ( $("#cbTypeVacant1").is(':checked')) searchType += "1,";
if ( $("#cbTypeVacant2").is(':checked')) searchType += "2,";
self.whereClause += " AND " + searchType.slice(0, searchType.length - 1) + ")";
//-----end of custom filters-----
And as found in my maps_lib.js
The checkboxes make no changes to my markers, all are displayed regardless of whether the checkboxes are selected or not. Any suggestions?
fusionTableId: "1FMeZBi_NYNqAV2Bnf7MdiL1eUlC3zbOg9vpXFxea",
googleApiKey: "AIzaSyC8hYnLrg5zUvWEx5klDHe_q8gmgxPiIiI"
Not sure how to check if my Api is specific to Fusion Tables?
A JS Fiddle containing the project: https://jsfiddle.net/yqmn2brw/