var mapInstance;
var parser;
var parserbike;
var parserevcharger;
var parserphone;
var parserdining;
var parserbanks;
var parserhousing;
var parserbuildings;
var parserother;
var thisradiobtn;
var thislegend;
var thisoption;
var buildinglegend = jQuery('.buildings-section');
var housinglegend = jQuery('.campus-housing-section');
var otherlegend = jQuery('.other-section');
var placemarkMetadata = [];
var placemarkersVisible = false;
var baselayerVisible = true;
var anypermitVisible = false;
var visitorVisible = false;
var restrictedVisible = false;
var cchresidentVisible = false;
var fitnesscenterVisible = false;
var facultystaffVisible = false;
var commuteronlyVisible = false;
var commuterfacultystaffVisible = false;
var i2cvisitorsVisible = false;
var disabilityVisible = false;
var schgkhcgvresidentVisible = false;
var ffhnchresidentVisible = false;
var showallVisible = false;
var shownoneVisible = true;
var bikeracksVisible = false;
Notice: Undefined index: viewThis in /webdata/public/campus-map/js/map.php on line 38
var evchargersVisible = false;
var phoneVisible = false;
var chargerbrewVisible = false;
var chargercafeVisible = false;
var theDenVisible = false;
var meinbowlVisible = false;
var dunkindonutsVisible = false;
var boarsheadVisible = false;
var papajohnsVisible = false;
var chickfilaVisible = false;
var gardenviewcafeVisible = false;
var burritobowlVisible = false;
var cstoreVisible = false;
var hidealldiningVisible = true;
var showalldiningVisible = false;
var alcreditunionVisible = false;
var redstonefederalcreditunionVisible = false;
var hideallbanksVisible = true;
var showallbanksVisible = false;
var cchVisible = false;
var cgvVisible = false;
var ffhVisible = false;
var gkhVisible = false;
var nchVisible = false;
var schVisible = false;
var bevVisible = false;
var babVisible = false;
var bsbVisible = false;
var ctcVisible = false;
var crhVisible = false;
var elcVisible = false;
var engVisible = false;
var i2cVisible = false;
var msbVisible = false;
var morVisible = false;
var nurVisible = false;
var oktVisible = false;
var opbVisible = false;
var ppbVisible = false;
var robVisible = false;
var libVisible = false;
var skhVisible = false;
var sstVisible = false;
var sprVisible = false;
var ssbVisible = false;
var swiVisible = false;
var ufcVisible = false;
var vbhVisible = false;
var wilVisible = false;
var jrcVisible = false;
var imfVisible = false;
var cguVisible = false;
var recVisible = false;
var uggVisible = false;
var lrhVisible = false;
var amphiVisible = false;
var theatreannexVisible = false;
var chanVisible = false;
var cgpVisible = false;
var exhibVisible = false;
var mcdonVisible = false;
var propVisible = false;
var publicVisible = false;
var robrecVisible = false;
var greenwayVisible = false;
var upkVisible = false;
var wiltheatVisible = false;
var bbtVisible = false;
var fmuVisible = false;
var hideallhousingVisible = true;
var showallhousingVisible = false;
var hideallbuildingsVisible = true;
var showallbuildingsVisible = false;
var hideallotherVisible = true;
var showallotherVisible = false;
function placemarkcmp (b1, b2) {
return ((b1.name == b2.name) ? 0 : ((b1.name > b2.name) ? 1 : -1));
}
function customAfterParse(docSet) {
}
function completeInit() {
// Hide non-placemark layer(s)
parser.showDocument(parser.docs[0]);
parser.hideDocument(parser.docs[1]);
parser.hideDocument(parser.docs[2]);
parser.hideDocument(parser.docs[3]);
parser.hideDocument(parser.docs[4]);
parser.hideDocument(parser.docs[5]);
parser.hideDocument(parser.docs[6]);
parser.hideDocument(parser.docs[7]);
parser.hideDocument(parser.docs[8]);
parser.hideDocument(parser.docs[9]);
parser.hideDocument(parser.docs[10]);
parser.hideDocument(parser.docs[11]);
parser.hideDocument(parser.docs[12]);
parser.hideDocument(parser.docs[13]);
parserbike.hideDocument(parserbike.docs[0]);
Notice: Undefined index: viewThis in /webdata/public/campus-map/js/map.php on line 151
parserevcharger.hideDocument(parserevcharger.docs[0]);
//parserevcharger.hideDocument(parserevcharger.docs[0]);
parserphone.hideDocument(parserphone.docs[0]);
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
placemarkersVisible = false;
baselayerVisible = true;
anypermitVisible = false;
visitorVisible = false;
restrictedVisible = false;
cchresidentVisible = false;
fitnesscenterVisible = false;
facultystaffVisible = false;
commuteronlyVisible = false;
commuterfacultystaffVisible = false;
i2cvisitorsVisible = false;
disabilityVisible = false;
schgkhcgvresidentVisible = false;
ffhnchresidentVisible = false;
showallVisible = false;
shownoneVisible = true;
bikeracksVisible = false;
Notice: Undefined index: viewThis in /webdata/public/campus-map/js/map.php on line 259
evchargersVisible = false;
//evchargersVisible = false;
phoneVisible = false;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
hideallbuildingsVisible = true;
showallbuildingsVisible = false;
hideallotherVisible = true;
showallotherVisible = false;
// baselayer layer visiblity control
jQuery("#baselayertoggle").on("click", function(e) {
if (baselayerVisible) {
parser.hideDocument(parser.docs[0]);
baselayerVisible = false;
} else {
parser.showDocument(parser.docs[0]);
baselayerVisible = true;
}
});
jQuery("#placemarkerstoggle").on("click", function(e) {
if (placemarkersVisible) {
parser.hideDocument(parser.docs[14]);
placemarkersVisible = false;
} else {
parser.showDocument(parser.docs[14]);
placemarkersVisible = true;
}
});
// any permit layer visibility control
jQuery("#anypermittoggle").on("click", function(e) {
if (anypermitVisible) {
parser.showDocument(parser.docs[1]);
parser.hideDocument(parser.docs[2]);
parser.hideDocument(parser.docs[3]);
parser.hideDocument(parser.docs[4]);
parser.hideDocument(parser.docs[5]);
parser.hideDocument(parser.docs[6]);
parser.hideDocument(parser.docs[7]);
parser.hideDocument(parser.docs[8]);
parser.hideDocument(parser.docs[9]);
parser.hideDocument(parser.docs[10]);
parser.hideDocument(parser.docs[11]);
parser.hideDocument(parser.docs[12]);
parser.hideDocument(parser.docs[13]);
anypermitVisible = true;
} else {
parser.showDocument(parser.docs[1]);
parser.hideDocument(parser.docs[2]);
parser.hideDocument(parser.docs[3]);
parser.hideDocument(parser.docs[4]);
parser.hideDocument(parser.docs[5]);
parser.hideDocument(parser.docs[6]);
parser.hideDocument(parser.docs[7]);
parser.hideDocument(parser.docs[8]);
parser.hideDocument(parser.docs[9]);
parser.hideDocument(parser.docs[10]);
parser.hideDocument(parser.docs[11]);
parser.hideDocument(parser.docs[12]);
parser.hideDocument(parser.docs[13]);
anypermitVisible = true;
}
});
// visitor layer visiblity control
jQuery("#visitortoggle").on("click", function(e) {
if (visitorVisible) {
parser.hideDocument(parser.docs[1]);
parser.showDocument(parser.docs[2]);
parser.hideDocument(parser.docs[3]);
parser.hideDocument(parser.docs[4]);
parser.hideDocument(parser.docs[5]);
parser.hideDocument(parser.docs[6]);
parser.hideDocument(parser.docs[7]);
parser.hideDocument(parser.docs[8]);
parser.hideDocument(parser.docs[9]);
parser.hideDocument(parser.docs[10]);
parser.hideDocument(parser.docs[11]);
parser.hideDocument(parser.docs[12]);
parser.hideDocument(parser.docs[13]);
visitorVisible = true;
} else {
parser.hideDocument(parser.docs[1]);
parser.showDocument(parser.docs[2]);
parser.hideDocument(parser.docs[3]);
parser.hideDocument(parser.docs[4]);
parser.hideDocument(parser.docs[5]);
parser.hideDocument(parser.docs[6]);
parser.hideDocument(parser.docs[7]);
parser.hideDocument(parser.docs[8]);
parser.hideDocument(parser.docs[9]);
parser.hideDocument(parser.docs[10]);
parser.hideDocument(parser.docs[11]);
parser.hideDocument(parser.docs[12]);
parser.hideDocument(parser.docs[13]);
visitorVisible = true;
}
});
// restricted layer visiblity control
jQuery("#restrictedtoggle").on("click", function(e) {
if (restrictedVisible) {
parser.hideDocument(parser.docs[1]);
parser.hideDocument(parser.docs[2]);
parser.showDocument(parser.docs[3]);
parser.hideDocument(parser.docs[4]);
parser.hideDocument(parser.docs[5]);
parser.hideDocument(parser.docs[6]);
parser.hideDocument(parser.docs[7]);
parser.hideDocument(parser.docs[8]);
parser.hideDocument(parser.docs[9]);
parser.hideDocument(parser.docs[10]);
parser.hideDocument(parser.docs[11]);
parser.hideDocument(parser.docs[12]);
parser.hideDocument(parser.docs[13]);
restrictedVisible = true;
} else {
parser.hideDocument(parser.docs[1]);
parser.hideDocument(parser.docs[2]);
parser.showDocument(parser.docs[3]);
parser.hideDocument(parser.docs[4]);
parser.hideDocument(parser.docs[5]);
parser.hideDocument(parser.docs[6]);
parser.hideDocument(parser.docs[7]);
parser.hideDocument(parser.docs[8]);
parser.hideDocument(parser.docs[9]);
parser.hideDocument(parser.docs[10]);
parser.hideDocument(parser.docs[11]);
parser.hideDocument(parser.docs[12]);
parser.hideDocument(parser.docs[13]);
restrictedVisible = true;
}
});
// cch resident layer visiblity control
jQuery("#cchresidenttoggle").on("click", function(e) {
if (cchresidentVisible) {
parser.showDocument(parser.docs[1]);
parser.hideDocument(parser.docs[2]);
parser.hideDocument(parser.docs[3]);
parser.showDocument(parser.docs[4]);
parser.hideDocument(parser.docs[5]);
parser.hideDocument(parser.docs[6]);
parser.hideDocument(parser.docs[7]);
parser.hideDocument(parser.docs[8]);
parser.hideDocument(parser.docs[9]);
parser.hideDocument(parser.docs[10]);
parser.hideDocument(parser.docs[11]);
parser.hideDocument(parser.docs[12]);
parser.hideDocument(parser.docs[13]);
cchresidentVisible = true;
} else {
parser.showDocument(parser.docs[1]);
parser.hideDocument(parser.docs[2]);
parser.hideDocument(parser.docs[3]);
parser.showDocument(parser.docs[4]);
parser.hideDocument(parser.docs[5]);
parser.hideDocument(parser.docs[6]);
parser.hideDocument(parser.docs[7]);
parser.hideDocument(parser.docs[8]);
parser.hideDocument(parser.docs[9]);
parser.hideDocument(parser.docs[10]);
parser.hideDocument(parser.docs[11]);
parser.hideDocument(parser.docs[12]);
parser.hideDocument(parser.docs[13]);
cchresidentVisible = true;
}
});
// fitness center layer visiblity control
jQuery("#fitnesscentertoggle").on("click", function(e) {
if (fitnesscenterVisible) {
parser.showDocument(parser.docs[1]);
parser.hideDocument(parser.docs[2]);
parser.hideDocument(parser.docs[3]);
parser.hideDocument(parser.docs[4]);
parser.showDocument(parser.docs[5]);
parser.hideDocument(parser.docs[6]);
parser.hideDocument(parser.docs[7]);
parser.hideDocument(parser.docs[8]);
parser.hideDocument(parser.docs[9]);
parser.hideDocument(parser.docs[10]);
parser.hideDocument(parser.docs[11]);
parser.hideDocument(parser.docs[12]);
parser.hideDocument(parser.docs[13]);
fitnesscenterVisible = true;
} else {
parser.showDocument(parser.docs[1]);
parser.hideDocument(parser.docs[2]);
parser.hideDocument(parser.docs[3]);
parser.hideDocument(parser.docs[4]);
parser.showDocument(parser.docs[5]);
parser.hideDocument(parser.docs[6]);
parser.hideDocument(parser.docs[7]);
parser.hideDocument(parser.docs[8]);
parser.hideDocument(parser.docs[9]);
parser.hideDocument(parser.docs[10]);
parser.hideDocument(parser.docs[11]);
parser.hideDocument(parser.docs[12]);
parser.hideDocument(parser.docs[13]);
fitnesscenterVisible = true;
}
});
// faculty staff layer visiblity control
jQuery("#facultystafftoggle").on("click", function(e) {
if (facultystaffVisible) {
parser.showDocument(parser.docs[1]);
parser.hideDocument(parser.docs[2]);
parser.hideDocument(parser.docs[3]);
parser.hideDocument(parser.docs[4]);
parser.hideDocument(parser.docs[5]);
parser.showDocument(parser.docs[6]);
parser.hideDocument(parser.docs[7]);
parser.showDocument(parser.docs[8]);
parser.hideDocument(parser.docs[9]);
parser.hideDocument(parser.docs[10]);
parser.hideDocument(parser.docs[11]);
parser.hideDocument(parser.docs[12]);
parser.hideDocument(parser.docs[13]);
facultystaffVisible = true;
} else {
parser.showDocument(parser.docs[1]);
parser.hideDocument(parser.docs[2]);
parser.hideDocument(parser.docs[3]);
parser.hideDocument(parser.docs[4]);
parser.hideDocument(parser.docs[5]);
parser.showDocument(parser.docs[6]);
parser.hideDocument(parser.docs[7]);
parser.showDocument(parser.docs[8]);
parser.hideDocument(parser.docs[9]);
parser.hideDocument(parser.docs[10]);
parser.hideDocument(parser.docs[11]);
parser.hideDocument(parser.docs[12]);
parser.hideDocument(parser.docs[13]);
facultystaffVisible = true;
}
});
// commuter only layer visiblity control
jQuery("#commuteronlytoggle").on("click", function(e) {
if (commuteronlyVisible) {
parser.showDocument(parser.docs[1]);
parser.hideDocument(parser.docs[2]);
parser.hideDocument(parser.docs[3]);
parser.hideDocument(parser.docs[4]);
parser.hideDocument(parser.docs[5]);
parser.hideDocument(parser.docs[6]);
parser.showDocument(parser.docs[7]);
parser.showDocument(parser.docs[8]);
parser.hideDocument(parser.docs[9]);
parser.hideDocument(parser.docs[10]);
parser.hideDocument(parser.docs[11]);
parser.hideDocument(parser.docs[12]);
parser.hideDocument(parser.docs[13]);
commuteronlyVisible = true;
} else {
parser.showDocument(parser.docs[1]);
parser.hideDocument(parser.docs[2]);
parser.hideDocument(parser.docs[3]);
parser.hideDocument(parser.docs[4]);
parser.hideDocument(parser.docs[5]);
parser.hideDocument(parser.docs[6]);
parser.showDocument(parser.docs[7]);
parser.showDocument(parser.docs[8]);
parser.hideDocument(parser.docs[9]);
parser.hideDocument(parser.docs[10]);
parser.hideDocument(parser.docs[11]);
parser.hideDocument(parser.docs[12]);
parser.hideDocument(parser.docs[13]);
commuteronlyVisible = true;
}
});
// commuter faculty staff layer visiblity control
jQuery("#commuterfacultystafftoggle").on("click", function(e) {
if (commuterfacultystaffVisible) {
parser.hideDocument(parser.docs[1]);
parser.hideDocument(parser.docs[2]);
parser.hideDocument(parser.docs[3]);
parser.hideDocument(parser.docs[4]);
parser.hideDocument(parser.docs[5]);
parser.hideDocument(parser.docs[6]);
parser.hideDocument(parser.docs[7]);
parser.hideDocument(parser.docs[8]);
parser.hideDocument(parser.docs[9]);
parser.hideDocument(parser.docs[10]);
parser.hideDocument(parser.docs[11]);
parser.hideDocument(parser.docs[12]);
parser.hideDocument(parser.docs[13]);
commuterfacultystaffVisible = true;
} else {
parser.hideDocument(parser.docs[1]);
parser.hideDocument(parser.docs[2]);
parser.hideDocument(parser.docs[3]);
parser.hideDocument(parser.docs[4]);
parser.hideDocument(parser.docs[5]);
parser.hideDocument(parser.docs[6]);
parser.hideDocument(parser.docs[7]);
parser.hideDocument(parser.docs[8]);
parser.hideDocument(parser.docs[9]);
parser.hideDocument(parser.docs[10]);
parser.hideDocument(parser.docs[11]);
parser.hideDocument(parser.docs[12]);
parser.hideDocument(parser.docs[13]);
commuterfacultystaffVisible = true;
}
});
// I2C visitors layer visiblity control
jQuery("#i2cvisitorstoggle").on("click", function(e) {
if (i2cvisitorsVisible) {
parser.hideDocument(parser.docs[1]);
parser.showDocument(parser.docs[2]);
parser.hideDocument(parser.docs[3]);
parser.hideDocument(parser.docs[4]);
parser.hideDocument(parser.docs[5]);
parser.hideDocument(parser.docs[6]);
parser.hideDocument(parser.docs[7]);
parser.hideDocument(parser.docs[8]);
parser.showDocument(parser.docs[9]);
parser.hideDocument(parser.docs[10]);
parser.hideDocument(parser.docs[11]);
parser.hideDocument(parser.docs[12]);
parser.hideDocument(parser.docs[13]);
i2cvisitorsVisible = true;
} else {
parser.hideDocument(parser.docs[1]);
parser.showDocument(parser.docs[2]);
parser.hideDocument(parser.docs[3]);
parser.hideDocument(parser.docs[4]);
parser.hideDocument(parser.docs[5]);
parser.hideDocument(parser.docs[6]);
parser.hideDocument(parser.docs[7]);
parser.hideDocument(parser.docs[8]);
parser.showDocument(parser.docs[9]);
parser.hideDocument(parser.docs[10]);
parser.hideDocument(parser.docs[11]);
parser.hideDocument(parser.docs[12]);
parser.hideDocument(parser.docs[13]);
i2cvisitorsVisible = true;
}
});
// disability layer visiblity control
jQuery("#disabilitytoggle").on("click", function(e) {
if (disabilityVisible) {
parser.hideDocument(parser.docs[1]);
parser.hideDocument(parser.docs[2]);
parser.hideDocument(parser.docs[3]);
parser.hideDocument(parser.docs[4]);
parser.hideDocument(parser.docs[5]);
parser.hideDocument(parser.docs[6]);
parser.hideDocument(parser.docs[7]);
parser.hideDocument(parser.docs[8]);
parser.hideDocument(parser.docs[9]);
parser.hideDocument(parser.docs[10]);
parser.showDocument(parser.docs[11]);
parser.hideDocument(parser.docs[12]);
parser.hideDocument(parser.docs[13]);
disabilityVisible = true;
} else {
parser.hideDocument(parser.docs[1]);
parser.hideDocument(parser.docs[2]);
parser.hideDocument(parser.docs[3]);
parser.hideDocument(parser.docs[4]);
parser.hideDocument(parser.docs[5]);
parser.hideDocument(parser.docs[6]);
parser.hideDocument(parser.docs[7]);
parser.hideDocument(parser.docs[8]);
parser.hideDocument(parser.docs[9]);
parser.hideDocument(parser.docs[10]);
parser.showDocument(parser.docs[11]);
parser.hideDocument(parser.docs[12]);
parser.hideDocument(parser.docs[13]);
disabilityVisible = true;
}
});
// sch fsr or cgv resident layer visiblity control
jQuery("#schgkhcgvresidenttoggle").on("click", function(e) {
if (schgkhcgvresidentVisible) {
parser.showDocument(parser.docs[1]);
parser.hideDocument(parser.docs[2]);
parser.hideDocument(parser.docs[3]);
parser.hideDocument(parser.docs[4]);
parser.hideDocument(parser.docs[5]);
parser.hideDocument(parser.docs[6]);
parser.hideDocument(parser.docs[7]);
parser.hideDocument(parser.docs[8]);
parser.hideDocument(parser.docs[9]);
parser.hideDocument(parser.docs[10]);
parser.hideDocument(parser.docs[11]);
parser.showDocument(parser.docs[12]);
parser.hideDocument(parser.docs[13]);
schgkhcgvresidentVisible = true;
} else {
parser.showDocument(parser.docs[1]);
parser.hideDocument(parser.docs[2]);
parser.hideDocument(parser.docs[3]);
parser.hideDocument(parser.docs[4]);
parser.hideDocument(parser.docs[5]);
parser.hideDocument(parser.docs[6]);
parser.hideDocument(parser.docs[7]);
parser.hideDocument(parser.docs[8]);
parser.hideDocument(parser.docs[9]);
parser.hideDocument(parser.docs[10]);
parser.hideDocument(parser.docs[11]);
parser.showDocument(parser.docs[12]);
parser.hideDocument(parser.docs[13]);
schgkhcgvresidentVisible = true;
}
});
// ffh or nch resident layer visiblity control
jQuery("#ffhnchresidenttoggle").on("click", function(e) {
if (ffhnchresidentVisible) {
parser.showDocument(parser.docs[1]);
parser.hideDocument(parser.docs[2]);
parser.hideDocument(parser.docs[3]);
parser.hideDocument(parser.docs[4]);
parser.hideDocument(parser.docs[5]);
parser.hideDocument(parser.docs[6]);
parser.hideDocument(parser.docs[7]);
parser.hideDocument(parser.docs[8]);
parser.hideDocument(parser.docs[9]);
parser.hideDocument(parser.docs[10]);
parser.hideDocument(parser.docs[11]);
parser.hideDocument(parser.docs[12]);
parser.showDocument(parser.docs[13]);
ffhnchresidentVisible = true;
} else {
parser.showDocument(parser.docs[1]);
parser.hideDocument(parser.docs[2]);
parser.hideDocument(parser.docs[3]);
parser.hideDocument(parser.docs[4]);
parser.hideDocument(parser.docs[5]);
parser.hideDocument(parser.docs[6]);
parser.hideDocument(parser.docs[7]);
parser.hideDocument(parser.docs[8]);
parser.hideDocument(parser.docs[9]);
parser.hideDocument(parser.docs[10]);
parser.hideDocument(parser.docs[11]);
parser.hideDocument(parser.docs[12]);
parser.showDocument(parser.docs[13]);
ffhnchresidentVisible = true;
}
});
// show all layers visiblity control
jQuery("#showalltoggle").on("click", function(e) {
if (showallVisible) {
parser.showDocument(parser.docs[1]);
parser.showDocument(parser.docs[2]);
parser.showDocument(parser.docs[3]);
parser.showDocument(parser.docs[4]);
parser.showDocument(parser.docs[5]);
parser.showDocument(parser.docs[6]);
parser.showDocument(parser.docs[7]);
parser.showDocument(parser.docs[8]);
parser.showDocument(parser.docs[9]);
parser.hideDocument(parser.docs[10]);
parser.showDocument(parser.docs[11]);
parser.showDocument(parser.docs[12]);
parser.showDocument(parser.docs[13]);
showallVisible = true;
} else {
parser.showDocument(parser.docs[1]);
parser.showDocument(parser.docs[2]);
parser.showDocument(parser.docs[3]);
parser.showDocument(parser.docs[4]);
parser.showDocument(parser.docs[5]);
parser.showDocument(parser.docs[6]);
parser.showDocument(parser.docs[7]);
parser.showDocument(parser.docs[8]);
parser.showDocument(parser.docs[9]);
parser.hideDocument(parser.docs[10]);
parser.showDocument(parser.docs[11]);
parser.showDocument(parser.docs[12]);
parser.showDocument(parser.docs[13]);
showallVisible = true;
}
});
// show no layers visiblity control
jQuery("#shownonetoggle").on("click", function(e) {
if (shownoneVisible) {
parser.hideDocument(parser.docs[1]);
parser.hideDocument(parser.docs[2]);
parser.hideDocument(parser.docs[3]);
parser.hideDocument(parser.docs[4]);
parser.hideDocument(parser.docs[5]);
parser.hideDocument(parser.docs[6]);
parser.hideDocument(parser.docs[7]);
parser.hideDocument(parser.docs[8]);
parser.hideDocument(parser.docs[9]);
parser.hideDocument(parser.docs[10]);
parser.hideDocument(parser.docs[11]);
parser.hideDocument(parser.docs[12]);
parser.hideDocument(parser.docs[13]);
shownoneVisible = true;
} else {
parser.hideDocument(parser.docs[1]);
parser.hideDocument(parser.docs[2]);
parser.hideDocument(parser.docs[3]);
parser.hideDocument(parser.docs[4]);
parser.hideDocument(parser.docs[5]);
parser.hideDocument(parser.docs[6]);
parser.hideDocument(parser.docs[7]);
parser.hideDocument(parser.docs[8]);
parser.hideDocument(parser.docs[9]);
parser.hideDocument(parser.docs[10]);
parser.hideDocument(parser.docs[11]);
parser.hideDocument(parser.docs[12]);
parser.hideDocument(parser.docs[13]);
shownoneVisible = true;
}
});
// show bike racks on visiblity control
jQuery("#bikerackontoggle").on("click", function(e) {
if (bikeracksVisible) {
parserbike.showDocument(parserbike.docs[0]);
bikeracksVisible = true;
} else {
parserbike.showDocument(parserbike.docs[0]);
bikeracksVisible = true;
}
});
// show bike racks off visiblity control
jQuery("#bikerackofftoggle").on("click", function(e) {
if (bikeracksVisible) {
parserbike.hideDocument(parserbike.docs[0]);
bikeracksVisible = false;
} else {
parserbike.hideDocument(parserbike.docs[0]);
bikeracksVisible = false;
}
});
// show ev chargers on visiblity control
jQuery("#evchargerontoggle").on("click", function(e) {
if (evchargersVisible) {
parserevcharger.showDocument(parserevcharger.docs[0]);
evchargersVisible = true;
} else {
parserevcharger.showDocument(parserevcharger.docs[0]);
evchargersVisible = true;
}
});
// show ev chargers off visiblity control
jQuery("#evchargerofftoggle").on("click", function(e) {
if (evchargersVisible) {
parserevcharger.hideDocument(parserevcharger.docs[0]);
evchargersVisible = false;
} else {
parserevcharger.hideDocument(parserevcharger.docs[0]);
evchargersVisible = false;
}
});
// show emergency phones on visiblity control
jQuery("#phoneontoggle").on("click", function(e) {
if (phoneVisible) {
parserphone.showDocument(parserphone.docs[0]);
phoneVisible = true;
} else {
parserphone.showDocument(parserphone.docs[0]);
phoneVisible = true;
}
});
// show emergency phones off visiblity control
jQuery("#phoneofftoggle").on("click", function(e) {
if (phoneVisible) {
parserphone.hideDocument(parserphone.docs[0]);
phoneVisible = false;
} else {
parserphone.hideDocument(parserphone.docs[0]);
phoneVisible = false;
}
});
jQuery("#boarsheadtoggle").on("click", function(e) {
if (boarsheadVisible) {
parserdining.showDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
boarsheadVisible = true;
} else {
parserdining.showDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
boarsheadVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.72561, -86.63849);
mapInstance.setCenter(latlng);
var placemarks = parserdining.docs[0].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserdining.docs[0].placemarks[0].marker, 'click');
});
jQuery("#burritobowltoggle").on("click", function(e) {
if (burritobowlVisible) {
parserdining.hideDocument(parserdining.docs[0]);
parserdining.showDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
burritobowlVisible = true;
} else {
parserdining.hideDocument(parserdining.docs[0]);
parserdining.showDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
burritobowlVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.7257, -86.63845);
mapInstance.setCenter(latlng);
var placemarks = parserdining.docs[1].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserdining.docs[1].placemarks[0].marker, 'click');
});
jQuery("#chargerbrewtoggle").on("click", function(e) {
if (chargerbrewVisible) {
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.showDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
chargerbrewVisible = true;
} else {
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.showDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
chargerbrewVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.73079, -86.64124);
mapInstance.setCenter(latlng);
var placemarks = parserdining.docs[2].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserdining.docs[2].placemarks[0].marker, 'click');
});
jQuery("#chargercafetoggle").on("click", function(e) {
if (chargercafeVisible) {
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.showDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
chargercafeVisible = true;
} else {
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.showDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
chargercafeVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.73074, -86.64107);
mapInstance.setCenter(latlng);
var placemarks = parserdining.docs[3].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserdining.docs[3].placemarks[0].marker, 'click');
});
jQuery("#chickfilatoggle").on("click", function(e) {
if (chickfilaVisible) {
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.showDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
chickfilaVisible = true;
} else {
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.showDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
chickfilaVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.7257, -86.63875);
mapInstance.setCenter(latlng);
var placemarks = parserdining.docs[4].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserdining.docs[4].placemarks[0].marker, 'click');
});
jQuery("#dunkindonutstoggle").on("click", function(e) {
if (dunkindonutsVisible) {
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.showDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
dunkindonutsVisible = true;
} else {
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.showDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
dunkindonutsVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.72716, -86.64005);
mapInstance.setCenter(latlng);
var placemarks = parserdining.docs[5].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserdining.docs[5].placemarks[0].marker, 'click');
});
jQuery("#gardenviewcafetoggle").on("click", function(e) {
if (gardenviewcafeVisible) {
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.showDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
gardenviewcafeVisible = true;
} else {
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.showDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
gardenviewcafeVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.73111, -86.6426);
mapInstance.setCenter(latlng);
var placemarks = parserdining.docs[10].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserdining.docs[10].placemarks[0].marker, 'click');
});
jQuery("#meinbowltoggle").on("click", function(e) {
if (meinbowlVisible) {
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.showDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
meinbowlVisible = true;
} else {
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.showDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
meinbowlVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.72712, -86.64029);
mapInstance.setCenter(latlng);
var placemarks = parserdining.docs[6].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserdining.docs[6].placemarks[0].marker, 'click');
});
jQuery("#papajohnstoggle").on("click", function(e) {
if (papajohnsVisible) {
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.showDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
papajohnsVisible = true;
} else {
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.showDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
papajohnsVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.72567, -86.63845);
mapInstance.setCenter(latlng);
var placemarks = parserdining.docs[7].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserdining.docs[7].placemarks[0].marker, 'click');
});
jQuery("#theDentoggle").on("click", function(e) {
if (theDenVisible) {
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.showDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
theDenVisible = true;
} else {
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.showDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
theDenVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.72701, -86.64026);
mapInstance.setCenter(latlng);
var placemarks = parserdining.docs[9].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserdining.docs[9].placemarks[0].marker, 'click');
});
jQuery("#cstoretoggle").on("click", function(e) {
if (cstoreVisible) {
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.showDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
cstoreVisible = true;
} else {
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.showDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
cstoreVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.72701, -86.64026);
mapInstance.setCenter(latlng);
var placemarks = parserdining.docs[8].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserdining.docs[8].placemarks[0].marker, 'click');
});
jQuery("#hidealldiningtoggle").on("click", function(e) {
if (hidealldiningVisible) {
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
hidealldiningVisible = true;
} else {
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
hidealldiningVisible = true;
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
});
jQuery("#showalldiningtoggle").on("click", function(e) {
if (showalldiningVisible) {
parserdining.showDocument(parserdining.docs[0]);
parserdining.showDocument(parserdining.docs[1]);
parserdining.showDocument(parserdining.docs[2]);
parserdining.showDocument(parserdining.docs[3]);
parserdining.showDocument(parserdining.docs[4]);
parserdining.showDocument(parserdining.docs[5]);
parserdining.showDocument(parserdining.docs[6]);
parserdining.showDocument(parserdining.docs[7]);
parserdining.showDocument(parserdining.docs[8]);
parserdining.showDocument(parserdining.docs[9]);
parserdining.showDocument(parserdining.docs[10]);
showalldiningVisible = true;
} else {
parserdining.showDocument(parserdining.docs[0]);
parserdining.showDocument(parserdining.docs[1]);
parserdining.showDocument(parserdining.docs[2]);
parserdining.showDocument(parserdining.docs[3]);
parserdining.showDocument(parserdining.docs[4]);
parserdining.showDocument(parserdining.docs[5]);
parserdining.showDocument(parserdining.docs[6]);
parserdining.showDocument(parserdining.docs[7]);
parserdining.showDocument(parserdining.docs[8]);
parserdining.showDocument(parserdining.docs[9]);
parserdining.showDocument(parserdining.docs[10]);
showalldiningVisible = true;
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
});
jQuery("#alcredituniontoggle").on("click", function(e) {
if (alcreditunionVisible) {
parserbanks.showDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
alcreditunionVisible = true;
} else {
parserbanks.showDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
alcreditunionVisible = true;
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.7235, -86.63791);
mapInstance.setCenter(latlng);
var placemarks = parserbanks.docs[0].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbanks.docs[0].placemarks[0].marker, 'click');
});
jQuery("#redstonefederalcredituniontoggle").on("click", function(e) {
if (redstonefederalcreditunionVisible) {
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.showDocument(parserbanks.docs[1]);
redstonefederalcreditunionVisible = true;
} else {
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.showDocument(parserbanks.docs[1]);
redstonefederalcreditunionVisible = true;
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.72704, -86.64009);
mapInstance.setCenter(latlng);
var placemarks = parserbanks.docs[1].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbanks.docs[1].placemarks[0].marker, 'click');
});
jQuery("#hideallbankstoggle").on("click", function(e) {
if (hideallbanksVisible) {
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
hideallbanksVisible = true;
} else {
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
hideallbanksVisible = true;
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
});
jQuery("#showallbankstoggle").on("click", function(e) {
if (showallbanksVisible) {
parserbanks.showDocument(parserbanks.docs[0]);
parserbanks.showDocument(parserbanks.docs[1]);
showallbanksVisible = true;
} else {
parserbanks.showDocument(parserbanks.docs[0]);
parserbanks.showDocument(parserbanks.docs[1]);
showallbanksVisible = true;
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
});
jQuery("#bevtoggle").on("click", function(e) {
if (bevVisible) {
parserbuildings.showDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
bevVisible = true;
} else {
parserbuildings.showDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
bevVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.73124, -86.64287);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[0].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[0].placemarks[0].marker, 'click');
});
jQuery(".clickable-marker-BEV").on("click", function(e) {
thisradiobtn = document.getElementById("bevtoggle");
thisradiobtn.checked = true;
if (!buildinglegend.hasClass('active')) {
thislegend = document.getElementById("buildings-level0");
thislegend.click();
}
// thisoption = document.getElementById("bevtoggle");
// thisoption.click();
if (bevVisible) {
parserbuildings.showDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
bevVisible = true;
} else {
parserbuildings.showDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
bevVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.73124, -86.64287);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[0].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[0].placemarks[0].marker, 'click');
});
jQuery("#babtoggle").on("click", function(e) {
if (babVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.showDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
babVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.showDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
babVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.72825, -86.64135);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[1].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[1].placemarks[0].marker, 'click');
});
jQuery(".clickable-marker-BAB").on("click", function(e) {
thisradiobtn = document.getElementById("babtoggle");
thisradiobtn.checked = true;
if (!buildinglegend.hasClass('active')) {
thislegend = document.getElementById("buildings-level0");
thislegend.click();
}
// thisoption = document.getElementById("babtoggle");
// thisoption.click();
if (babVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.showDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
babVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.showDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
babVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.72825, -86.64135);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[1].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[1].placemarks[0].marker, 'click');
});
jQuery("#bsbtoggle").on("click", function(e) {
if (bsbVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.showDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
bsbVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.showDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
bsbVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.7189, -86.64016);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[2].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[2].placemarks[0].marker, 'click');
});
jQuery(".clickable-marker-BSB").on("click", function(e) {
thisradiobtn = document.getElementById("bsbtoggle");
thisradiobtn.checked = true;
if (!buildinglegend.hasClass('active')) {
thislegend = document.getElementById("buildings-level0");
thislegend.click();
}
// thisoption = document.getElementById("bsbtoggle");
// thisoption.click();
if (bsbVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.showDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
bsbVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.showDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
bsbVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.7189, -86.64016);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[2].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[2].placemarks[0].marker, 'click');
});
jQuery("#ctctoggle").on("click", function(e) {
if (ctcVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.showDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
ctcVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.showDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
ctcVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.73082, -86.64137);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[3].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[3].placemarks[0].marker, 'click');
});
jQuery(".clickable-marker-CTC").on("click", function(e) {
thisradiobtn = document.getElementById("ctctoggle");
thisradiobtn.checked = true;
if (!buildinglegend.hasClass('active')) {
thislegend = document.getElementById("buildings-level0");
thislegend.click();
}
// thisoption = document.getElementById("ctctoggle");
// thisoption.click();
if (ctcVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.showDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
ctcVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.showDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
ctcVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.73082, -86.64137);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[3].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[3].placemarks[0].marker, 'click');
});
jQuery("#crhtoggle").on("click", function(e) {
if (crhVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.showDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
crhVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.showDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
crhVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.7246, -86.64516);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[4].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[4].placemarks[0].marker, 'click');
});
jQuery(".clickable-marker-CRH").on("click", function(e) {
thisradiobtn = document.getElementById("crhtoggle");
thisradiobtn.checked = true;
if (!buildinglegend.hasClass('active')) {
thislegend = document.getElementById("buildings-level0");
thislegend.click();
}
// thisoption = document.getElementById("crhtoggle");
// thisoption.click();
if (crhVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.showDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
crhVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.showDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
crhVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.7246, -86.64516);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[4].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[4].placemarks[0].marker, 'click');
});
jQuery("#elctoggle").on("click", function(e) {
if (elcVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.showDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
elcVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.showDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
elcVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.73308, -86.63748);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[5].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[5].placemarks[0].marker, 'click');
});
jQuery(".clickable-marker-ELC").on("click", function(e) {
thisradiobtn = document.getElementById("elctoggle");
thisradiobtn.checked = true;
if (!buildinglegend.hasClass('active')) {
thislegend = document.getElementById("buildings-level0");
thislegend.click();
}
// thisoption = document.getElementById("elctoggle");
// thisoption.click();
if (elcVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.showDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
elcVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.showDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
elcVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.73308, -86.63748);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[5].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[5].placemarks[0].marker, 'click');
});
jQuery("#engtoggle").on("click", function(e) {
if (engVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.showDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
engVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.showDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
engVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.72267, -86.64055);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[6].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[6].placemarks[0].marker, 'click');
});
jQuery(".clickable-marker-ENG").on("click", function(e) {
thisradiobtn = document.getElementById("engtoggle");
thisradiobtn.checked = true;
if (!buildinglegend.hasClass('active')) {
thislegend = document.getElementById("buildings-level0");
thislegend.click();
}
// thisoption = document.getElementById("engtoggle");
// thisoption.click();
if (engVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.showDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
engVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.showDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
engVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.72267, -86.64055);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[6].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[6].placemarks[0].marker, 'click');
});
jQuery("#i2ctoggle").on("click", function(e) {
if (i2cVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.showDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
i2cVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.showDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
i2cVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.72878, -86.6417);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[7].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[7].placemarks[0].marker, 'click');
});
jQuery(".clickable-marker-I2C").on("click", function(e) {
thisradiobtn = document.getElementById("i2ctoggle");
thisradiobtn.checked = true;
if (!buildinglegend.hasClass('active')) {
thislegend = document.getElementById("buildings-level0");
thislegend.click();
}
// thisoption = document.getElementById("i2ctoggle");
// thisoption.click();
if (i2cVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.showDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
i2cVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.showDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
i2cVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.72878, -86.6417);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[7].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[7].placemarks[0].marker, 'click');
});
jQuery("#msbtoggle").on("click", function(e) {
if (msbVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.showDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
msbVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.showDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
msbVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.7219, -86.63813);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[8].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[8].placemarks[0].marker, 'click');
});
jQuery(".clickable-marker-MSB").on("click", function(e) {
thisradiobtn = document.getElementById("msbtoggle");
thisradiobtn.checked = true;
if (!buildinglegend.hasClass('active')) {
thislegend = document.getElementById("buildings-level0");
thislegend.click();
}
// thisoption = document.getElementById("msbtoggle");
// thisoption.click();
if (msbVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.showDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
msbVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.showDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
msbVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.7219, -86.63813);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[8].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[8].placemarks[0].marker, 'click');
});
jQuery("#mortoggle").on("click", function(e) {
if (morVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.showDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
morVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.showDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
morVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.73269, -86.64163);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[9].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[9].placemarks[0].marker, 'click');
});
jQuery(".clickable-marker-MOR").on("click", function(e) {
thisradiobtn = document.getElementById("mortoggle");
thisradiobtn.checked = true;
if (!buildinglegend.hasClass('active')) {
thislegend = document.getElementById("buildings-level0");
thislegend.click();
}
// thisoption = document.getElementById("mortoggle");
// thisoption.click();
if (morVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.showDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
morVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.showDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
morVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.73269, -86.64163);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[9].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[9].placemarks[0].marker, 'click');
});
jQuery("#nurtoggle").on("click", function(e) {
if (nurVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.showDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
nurVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.showDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
nurVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.72988, -86.63868);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[10].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[10].placemarks[0].marker, 'click');
});
jQuery(".clickable-marker-NUR").on("click", function(e) {
thisradiobtn = document.getElementById("nurtoggle");
thisradiobtn.checked = true;
if (!buildinglegend.hasClass('active')) {
thislegend = document.getElementById("buildings-level0");
thislegend.click();
}
// thisoption = document.getElementById("nurtoggle");
// thisoption.click();
if (nurVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.showDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
nurVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.showDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
nurVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.72988, -86.63868);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[10].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[10].placemarks[0].marker, 'click');
});
jQuery("#okttoggle").on("click", function(e) {
if (oktVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.showDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
oktVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.showDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
oktVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.71877, -86.64647);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[11].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[11].placemarks[0].marker, 'click');
});
jQuery(".clickable-marker-OKT").on("click", function(e) {
thisradiobtn = document.getElementById("okttoggle");
thisradiobtn.checked = true;
if (!buildinglegend.hasClass('active')) {
thislegend = document.getElementById("buildings-level0");
thislegend.click();
}
// thisoption = document.getElementById("okttoggle");
// thisoption.click();
if (oktVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.showDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
oktVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.showDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
oktVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.71877, -86.64647);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[11].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[11].placemarks[0].marker, 'click');
});
jQuery("#opbtoggle").on("click", function(e) {
if (opbVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.showDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
opbVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.showDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
opbVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.72277, -86.63859);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[12].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[12].placemarks[0].marker, 'click');
});
jQuery(".clickable-marker-OPB").on("click", function(e) {
thisradiobtn = document.getElementById("opbtoggle");
thisradiobtn.checked = true;
if (!buildinglegend.hasClass('active')) {
thislegend = document.getElementById("buildings-level0");
thislegend.click();
}
// thisoption = document.getElementById("opbtoggle");
// thisoption.click();
if (opbVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.showDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
opbVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.showDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
opbVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.72277, -86.63859);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[12].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[12].placemarks[0].marker, 'click');
});
jQuery("#ppbtoggle").on("click", function(e) {
if (ppbVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.showDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
ppbVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.showDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
ppbVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.71964, -86.63628);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[13].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[13].placemarks[0].marker, 'click');
});
jQuery(".clickable-marker-PPB").on("click", function(e) {
thisradiobtn = document.getElementById("ppbtoggle");
thisradiobtn.checked = true;
if (!buildinglegend.hasClass('active')) {
thislegend = document.getElementById("buildings-level0");
thislegend.click();
}
// thisoption = document.getElementById("ppbtoggle");
// thisoption.click();
if (ppbVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.showDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
ppbVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.showDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
ppbVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.71964, -86.63628);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[13].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[13].placemarks[0].marker, 'click');
});
jQuery("#robtoggle").on("click", function(e) {
if (robVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.showDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
robVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.showDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
robVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.73096, -86.63892);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[14].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[14].placemarks[0].marker, 'click');
});
jQuery(".clickable-marker-ROB").on("click", function(e) {
thisradiobtn = document.getElementById("robtoggle");
thisradiobtn.checked = true;
if (!buildinglegend.hasClass('active')) {
thislegend = document.getElementById("buildings-level0");
thislegend.click();
}
// thisoption = document.getElementById("robtoggle");
// thisoption.click();
if (robVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.showDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
robVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.showDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
robVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.73096, -86.63892);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[14].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[14].placemarks[0].marker, 'click');
});
jQuery("#libtoggle").on("click", function(e) {
if (libVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.showDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
libVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.showDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
libVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.72945, -86.64004);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[15].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[15].placemarks[0].marker, 'click');
});
jQuery(".clickable-marker-LIB").on("click", function(e) {
thisradiobtn = document.getElementById("libtoggle");
thisradiobtn.checked = true;
if (!buildinglegend.hasClass('active')) {
thislegend = document.getElementById("buildings-level0");
thislegend.click();
}
// thisoption = document.getElementById("libtoggle");
// thisoption.click();
if (libVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.showDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
libVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.showDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
libVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.72945, -86.64004);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[15].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[15].placemarks[0].marker, 'click');
});
jQuery("#skhtoggle").on("click", function(e) {
if (skhVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.showDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
skhVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.showDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
skhVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.71846, -86.6452);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[16].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[16].placemarks[0].marker, 'click');
});
jQuery(".clickable-marker-SKH").on("click", function(e) {
thisradiobtn = document.getElementById("skhtoggle");
thisradiobtn.checked = true;
if (!buildinglegend.hasClass('active')) {
thislegend = document.getElementById("buildings-level0");
thislegend.click();
}
// thisoption = document.getElementById("skhtoggle");
// thisoption.click();
if (skhVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.showDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
skhVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.showDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
skhVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.71846, -86.6452);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[16].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[16].placemarks[0].marker, 'click');
});
jQuery("#ssttoggle").on("click", function(e) {
if (sstVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.showDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
sstVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.showDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
sstVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.72597, -86.64131);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[17].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[17].placemarks[0].marker, 'click');
});
jQuery(".clickable-marker-SST").on("click", function(e) {
thisradiobtn = document.getElementById("ssttoggle");
thisradiobtn.checked = true;
if (!buildinglegend.hasClass('active')) {
thislegend = document.getElementById("buildings-level0");
thislegend.click();
}
// thisoption = document.getElementById("ssttoggle");
// thisoption.click();
if (sstVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.showDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
sstVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.showDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
sstVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.72597, -86.64131);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[17].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[17].placemarks[0].marker, 'click');
});
jQuery("#sprtoggle").on("click", function(e) {
if (sprVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.showDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
sprVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.showDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
sprVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.73123, -86.63669);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[18].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[18].placemarks[0].marker, 'click');
});
jQuery(".clickable-marker-SPR").on("click", function(e) {
thisradiobtn = document.getElementById("sprtoggle");
thisradiobtn.checked = true;
if (!buildinglegend.hasClass('active')) {
thislegend = document.getElementById("buildings-level0");
thislegend.click();
}
// thisoption = document.getElementById("sprtoggle");
// thisoption.click();
if (sprVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.showDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
sprVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.showDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
sprVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.73123, -86.63669);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[18].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[18].placemarks[0].marker, 'click');
});
jQuery("#ssbtoggle").on("click", function(e) {
if (ssbVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.showDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
ssbVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.showDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
ssbVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.72459, -86.64045);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[19].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[19].placemarks[0].marker, 'click');
});
jQuery(".clickable-marker-SSB").on("click", function(e) {
thisradiobtn = document.getElementById("ssbtoggle");
thisradiobtn.checked = true;
if (!buildinglegend.hasClass('active')) {
thislegend = document.getElementById("buildings-level0");
thislegend.click();
}
// thisoption = document.getElementById("ssbtoggle");
// thisoption.click();
if (ssbVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.showDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
ssbVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.showDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
ssbVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.72459, -86.64045);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[19].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[19].placemarks[0].marker, 'click');
});
jQuery("#switoggle").on("click", function(e) {
if (swiVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.showDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
swiVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.showDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
swiVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.72517, -86.64641);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[20].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[20].placemarks[0].marker, 'click');
});
jQuery(".clickable-marker-SWI").on("click", function(e) {
thisradiobtn = document.getElementById("switoggle");
thisradiobtn.checked = true;
if (!buildinglegend.hasClass('active')) {
thislegend = document.getElementById("buildings-level0");
thislegend.click();
}
// thisoption = document.getElementById("switoggle");
// thisoption.click();
if (swiVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.showDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
swiVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.showDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
swiVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.72517, -86.64641);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[20].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[20].placemarks[0].marker, 'click');
});
jQuery("#ufctoggle").on("click", function(e) {
if (ufcVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.showDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
ufcVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.showDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
ufcVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.72654, -86.63676);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[21].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[21].placemarks[0].marker, 'click');
});
jQuery(".clickable-marker-UFC").on("click", function(e) {
thisradiobtn = document.getElementById("ufctoggle");
thisradiobtn.checked = true;
if (!buildinglegend.hasClass('active')) {
thislegend = document.getElementById("buildings-level0");
thislegend.click();
}
// thisoption = document.getElementById("ufctoggle");
// thisoption.click();
if (ufcVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.showDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
ufcVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.showDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
ufcVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.72654, -86.63676);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[21].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[21].placemarks[0].marker, 'click');
});
jQuery("#vbhtoggle").on("click", function(e) {
if (vbhVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.showDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
vbhVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.showDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
vbhVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.72141, -86.64079);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[22].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[22].placemarks[0].marker, 'click');
});
jQuery(".clickable-marker-VBH").on("click", function(e) {
thisradiobtn = document.getElementById("vbhtoggle");
thisradiobtn.checked = true;
if (!buildinglegend.hasClass('active')) {
thislegend = document.getElementById("buildings-level0");
thislegend.click();
}
// thisoption = document.getElementById("vbhtoggle");
// thisoption.click();
if (vbhVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.showDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
vbhVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.showDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
vbhVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.72141, -86.64079);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[22].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[22].placemarks[0].marker, 'click');
});
jQuery("#wiltoggle").on("click", function(e) {
if (wilVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.showDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
wilVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.showDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
wilVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.72924, -86.64148);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[23].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[23].placemarks[0].marker, 'click');
});
jQuery(".clickable-marker-WIL").on("click", function(e) {
thisradiobtn = document.getElementById("wiltoggle");
thisradiobtn.checked = true;
if (!buildinglegend.hasClass('active')) {
thislegend = document.getElementById("buildings-level0");
thislegend.click();
}
// thisoption = document.getElementById("wiltoggle");
// thisoption.click();
if (wilVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.showDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
wilVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.showDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
wilVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.72924, -86.64148);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[23].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[23].placemarks[0].marker, 'click');
});
jQuery("#jrctoggle").on("click", function(e) {
if (jrcVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.showDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
jrcVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.showDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
jrcVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
var latlng = new google.maps.LatLng(34.71908, -86.63807);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[24].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[24].placemarks[0].marker, 'click');
});
jQuery(".clickable-marker-JRC").on("click", function(e) {
thisradiobtn = document.getElementById("jrctoggle");
thisradiobtn.checked = true;
if (!buildinglegend.hasClass('active')) {
thislegend = document.getElementById("buildings-level0");
thislegend.click();
}
// thisoption = document.getElementById("jrctoggle");
// thisoption.click();
if (jrcVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.showDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
jrcVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.showDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
jrcVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
var latlng = new google.maps.LatLng(34.71908, -86.63807);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[24].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[24].placemarks[0].marker, 'click');
});
jQuery("#imftoggle").on("click", function(e) {
if (imfVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.showDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
imfVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.showDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
imfVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
var latlng = new google.maps.LatLng(34.72638, -86.63861);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[25].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[25].placemarks[0].marker, 'click');
});
jQuery(".clickable-marker-IMF").on("click", function(e) {
thisradiobtn = document.getElementById("imftoggle");
thisradiobtn.checked = true;
if (!buildinglegend.hasClass('active')) {
thislegend = document.getElementById("buildings-level0");
thislegend.click();
}
// thisoption = document.getElementById("imftoggle");
// thisoption.click();
if (imfVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.showDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
imfVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.showDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
imfVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
var latlng = new google.maps.LatLng(34.72638, -86.63861);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[25].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[25].placemarks[0].marker, 'click');
});
jQuery("#cgutoggle").on("click", function(e) {
if (cguVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.showDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
cguVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.showDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
cguVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
var latlng = new google.maps.LatLng(34.72712, -86.63984);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[26].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[26].placemarks[0].marker, 'click');
});
jQuery(".clickable-marker-CGU").on("click", function(e) {
thisradiobtn = document.getElementById("cgutoggle");
thisradiobtn.checked = true;
if (!buildinglegend.hasClass('active')) {
thislegend = document.getElementById("buildings-level0");
thislegend.click();
}
// thisoption = document.getElementById("cgutoggle");
// thisoption.click();
if (cguVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.showDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
cguVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.showDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
cguVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
var latlng = new google.maps.LatLng(34.72712, -86.63984);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[26].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[26].placemarks[0].marker, 'click');
});
jQuery("#rectoggle").on("click", function(e) {
if (recVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.showDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
recVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.showDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
recVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
var latlng = new google.maps.LatLng(34.71906, -86.63712);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[27].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[27].placemarks[0].marker, 'click');
});
jQuery(".clickable-marker-REC").on("click", function(e) {
thisradiobtn = document.getElementById("rectoggle");
thisradiobtn.checked = true;
if (!buildinglegend.hasClass('active')) {
thislegend = document.getElementById("buildings-level0");
thislegend.click();
}
// thisoption = document.getElementById("rectoggle");
// thisoption.click();
if (recVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.showDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
recVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.showDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
recVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
var latlng = new google.maps.LatLng(34.71906, -86.63712);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[27].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[27].placemarks[0].marker, 'click');
});
jQuery("#uggtoggle").on("click", function(e) {
if (uggVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.showDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
uggVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.showDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
uggVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
var latlng = new google.maps.LatLng(34.73191, -86.64194);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[28].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[28].placemarks[0].marker, 'click');
});
jQuery(".clickable-marker-UGG").on("click", function(e) {
thisradiobtn = document.getElementById("uggtoggle");
thisradiobtn.checked = true;
if (!buildinglegend.hasClass('active')) {
thislegend = document.getElementById("buildings-level0");
thislegend.click();
}
// thisoption = document.getElementById("uggtoggle");
// thisoption.click();
if (uggVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.showDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
uggVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.showDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
uggVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
var latlng = new google.maps.LatLng(34.73191, -86.64194);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[28].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[28].placemarks[0].marker, 'click');
});
jQuery("#lrhtoggle").on("click", function(e) {
if (lrhVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.showDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
lrhVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.showDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
lrhVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
var latlng = new google.maps.LatLng(34.71894, -86.63961);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[29].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[29].placemarks[0].marker, 'click');
});
jQuery(".clickable-marker-LRH").on("click", function(e) {
thisradiobtn = document.getElementById("lrhtoggle");
thisradiobtn.checked = true;
if (!buildinglegend.hasClass('active')) {
thislegend = document.getElementById("buildings-level0");
thislegend.click();
}
// thisoption = document.getElementById("lrhtoggle");
// thisoption.click();
if (lrhVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.showDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
lrhVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.showDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
lrhVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
var latlng = new google.maps.LatLng(34.71894, -86.63961);
mapInstance.setCenter(latlng);
var placemarks = parserbuildings.docs[29].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserbuildings.docs[29].placemarks[0].marker, 'click');
});
jQuery("#hideallbuildingstoggle").on("click", function(e) {
if (hideallbuildingsVisible) {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
hideallbuildingsVisible = true;
} else {
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
hideallbuildingsVisible = true;
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
});
jQuery("#showallbuildingstoggle").on("click", function(e) {
if (showallbuildingsVisible) {
parserbuildings.showDocument(parserbuildings.docs[0]);
parserbuildings.showDocument(parserbuildings.docs[1]);
parserbuildings.showDocument(parserbuildings.docs[2]);
parserbuildings.showDocument(parserbuildings.docs[3]);
parserbuildings.showDocument(parserbuildings.docs[4]);
parserbuildings.showDocument(parserbuildings.docs[5]);
parserbuildings.showDocument(parserbuildings.docs[6]);
parserbuildings.showDocument(parserbuildings.docs[7]);
parserbuildings.showDocument(parserbuildings.docs[8]);
parserbuildings.showDocument(parserbuildings.docs[9]);
parserbuildings.showDocument(parserbuildings.docs[10]);
parserbuildings.showDocument(parserbuildings.docs[11]);
parserbuildings.showDocument(parserbuildings.docs[12]);
parserbuildings.showDocument(parserbuildings.docs[13]);
parserbuildings.showDocument(parserbuildings.docs[14]);
parserbuildings.showDocument(parserbuildings.docs[15]);
parserbuildings.showDocument(parserbuildings.docs[16]);
parserbuildings.showDocument(parserbuildings.docs[17]);
parserbuildings.showDocument(parserbuildings.docs[18]);
parserbuildings.showDocument(parserbuildings.docs[19]);
parserbuildings.showDocument(parserbuildings.docs[20]);
parserbuildings.showDocument(parserbuildings.docs[21]);
parserbuildings.showDocument(parserbuildings.docs[22]);
parserbuildings.showDocument(parserbuildings.docs[23]);
parserbuildings.showDocument(parserbuildings.docs[24]);
// parserbuildings.showDocument(parserbuildings.docs[25]);
// parserbuildings.showDocument(parserbuildings.docs[26]);
// parserbuildings.showDocument(parserbuildings.docs[27]);
// parserbuildings.showDocument(parserbuildings.docs[28]);
// parserbuildings.showDocument(parserbuildings.docs[29]);
// parserbuildings.showDocument(parserbuildings.docs[30]);
showallbuildingsVisible = true;
} else {
parserbuildings.showDocument(parserbuildings.docs[0]);
parserbuildings.showDocument(parserbuildings.docs[1]);
parserbuildings.showDocument(parserbuildings.docs[2]);
parserbuildings.showDocument(parserbuildings.docs[3]);
parserbuildings.showDocument(parserbuildings.docs[4]);
parserbuildings.showDocument(parserbuildings.docs[5]);
parserbuildings.showDocument(parserbuildings.docs[6]);
parserbuildings.showDocument(parserbuildings.docs[7]);
parserbuildings.showDocument(parserbuildings.docs[8]);
parserbuildings.showDocument(parserbuildings.docs[9]);
parserbuildings.showDocument(parserbuildings.docs[10]);
parserbuildings.showDocument(parserbuildings.docs[11]);
parserbuildings.showDocument(parserbuildings.docs[12]);
parserbuildings.showDocument(parserbuildings.docs[13]);
parserbuildings.showDocument(parserbuildings.docs[14]);
parserbuildings.showDocument(parserbuildings.docs[15]);
parserbuildings.showDocument(parserbuildings.docs[16]);
parserbuildings.showDocument(parserbuildings.docs[17]);
parserbuildings.showDocument(parserbuildings.docs[18]);
parserbuildings.showDocument(parserbuildings.docs[19]);
parserbuildings.showDocument(parserbuildings.docs[20]);
parserbuildings.showDocument(parserbuildings.docs[21]);
parserbuildings.showDocument(parserbuildings.docs[22]);
parserbuildings.showDocument(parserbuildings.docs[23]);
parserbuildings.showDocument(parserbuildings.docs[24]);
// parserbuildings.showDocument(parserbuildings.docs[25]);
// parserbuildings.showDocument(parserbuildings.docs[26]);
// parserbuildings.showDocument(parserbuildings.docs[27]);
// parserbuildings.showDocument(parserbuildings.docs[28]);
// parserbuildings.showDocument(parserbuildings.docs[29]);
// parserbuildings.showDocument(parserbuildings.docs[30]);
showallbuildingsVisible = true;
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
});
jQuery("#amphitoggle").on("click", function(e) {
if (amphiVisible) {
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.showDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
amphiVisible = true;
} else {
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.showDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
amphiVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.73002, -86.64082);
mapInstance.setCenter(latlng);
var placemarks = parserother.docs[2].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserother.docs[2].placemarks[0].marker, 'click');
});
jQuery("#theatreannextoggle").on("click", function(e) {
if (theatreannexVisible) {
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.showDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
theatreannexVisible = true;
} else {
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.showDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
theatreannexVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.73269, -86.63777);
mapInstance.setCenter(latlng);
var placemarks = parserother.docs[3].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserother.docs[3].placemarks[0].marker, 'click');
});
jQuery("#chantoggle").on("click", function(e) {
if (chanVisible) {
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.showDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
chanVisible = true;
} else {
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.showDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
chanVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.72809, -86.64141);
mapInstance.setCenter(latlng);
var placemarks = parserother.docs[4].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserother.docs[4].placemarks[0].marker, 'click');
});
jQuery("#cgptoggle").on("click", function(e) {
if (cgpVisible) {
parserother.hideDocument(parserother.docs[0]);
parserother.showDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
cgpVisible = true;
} else {
parserother.hideDocument(parserother.docs[0]);
parserother.showDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
cgpVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.72162, -86.63658);
mapInstance.setCenter(latlng);
var placemarks = parserother.docs[1].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserother.docs[1].placemarks[0].marker, 'click');
});
jQuery(".clickable-marker-CGP").on("click", function(e) {
thisradiobtn = document.getElementById("cgptoggle");
thisradiobtn.checked = true;
if (!otherlegend.hasClass('active')) {
thislegend = document.getElementById("other-level0");
thislegend.click();
}
// thisoption = document.getElementById("cgptoggle");
// thisoption.click();
if (cgpVisible) {
parserother.hideDocument(parserother.docs[0]);
parserother.showDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
cgpVisible = true;
} else {
parserother.hideDocument(parserother.docs[0]);
parserother.showDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
cgpVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.72162, -86.63658);
mapInstance.setCenter(latlng);
var placemarks = parserother.docs[1].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserother.docs[1].placemarks[0].marker, 'click');
});
jQuery("#exhibtoggle").on("click", function(e) {
if (exhibVisible) {
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.showDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// parserother.hideDocument(parserother.docs[19]);
exhibVisible = true;
} else {
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.showDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// parserother.hideDocument(parserother.docs[19]);
exhibVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.73073, -86.64141);
mapInstance.setCenter(latlng);
var placemarks = parserother.docs[5].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserother.docs[5].placemarks[0].marker, 'click');
});
jQuery("#upktoggle").on("click", function(e) {
if (upkVisible) {
parserother.showDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// parserother.hideDocument(parserother.docs[19]);
upkVisible = true;
} else {
parserother.showDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// parserother.hideDocument(parserother.docs[19]);
upkVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.7225, -86.63605);
mapInstance.setCenter(latlng);
var placemarks = parserother.docs[0].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserother.docs[0].placemarks[0].marker, 'click');
});
jQuery(".clickable-marker-UPK").on("click", function(e) {
thisradiobtn = document.getElementById("upktoggle");
thisradiobtn.checked = true;
if (!otherlegend.hasClass('active')) {
thislegend = document.getElementById("other-level0");
thislegend.click();
}
// thisoption = document.getElementById("upktoggle");
// thisoption.click();
if (upkVisible) {
parserother.showDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// parserother.hideDocument(parserother.docs[19]);
upkVisible = true;
} else {
parserother.showDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// parserother.hideDocument(parserother.docs[19]);
upkVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.7225, -86.63605);
mapInstance.setCenter(latlng);
var placemarks = parserother.docs[0].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserother.docs[0].placemarks[0].marker, 'click');
});
jQuery("#mcdontoggle").on("click", function(e) {
if (mcdonVisible) {
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.showDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// parserother.hideDocument(parserother.docs[19]);
mcdonVisible = true;
} else {
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.showDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// parserother.hideDocument(parserother.docs[19]);
mcdonVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.7223, -86.64029);
mapInstance.setCenter(latlng);
var placemarks = parserother.docs[6].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserother.docs[6].placemarks[0].marker, 'click');
});
jQuery("#proptoggle").on("click", function(e) {
if (propVisible) {
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.showDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// parserother.hideDocument(parserother.docs[19]);
propVisible = true;
} else {
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.showDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// parserother.hideDocument(parserother.docs[19]);
propVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.7187537,-86.6399551);
mapInstance.setCenter(latlng);
var placemarks = parserother.docs[7].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserother.docs[7].placemarks[0].marker, 'click');
});
jQuery("#publictoggle").on("click", function(e) {
if (publicVisible) {
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.showDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// parserother.hideDocument(parserother.docs[19]);
publicVisible = true;
} else {
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.showDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// parserother.hideDocument(parserother.docs[19]);
publicVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.72589, -86.63835);
mapInstance.setCenter(latlng);
var placemarks = parserother.docs[8].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserother.docs[8].placemarks[0].marker, 'click');
});
jQuery("#robrectoggle").on("click", function(e) {
if (robrecVisible) {
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.showDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// parserother.hideDocument(parserother.docs[19]);
robrecVisible = true;
} else {
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.showDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// parserother.hideDocument(parserother.docs[19]);
robrecVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.73094, -86.63919);
mapInstance.setCenter(latlng);
var placemarks = parserother.docs[9].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserother.docs[9].placemarks[0].marker, 'click');
});
jQuery("#greenwaytoggle").on("click", function(e) {
if (greenwayVisible) {
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.showDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// parserother.hideDocument(parserother.docs[19]);
greenwayVisible = true;
} else {
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.showDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// parserother.hideDocument(parserother.docs[19]);
greenwayVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.72455, -86.63977);
mapInstance.setCenter(latlng);
var placemarks = parserother.docs[10].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserother.docs[10].placemarks[0].marker, 'click');
});
jQuery("#wiltheattoggle").on("click", function(e) {
if (wiltheatVisible) {
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.showDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// parserother.hideDocument(parserother.docs[19]);
wiltheatVisible = true;
} else {
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.showDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// parserother.hideDocument(parserother.docs[19]);
wiltheatVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.72921, -86.64169);
mapInstance.setCenter(latlng);
var placemarks = parserother.docs[11].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserother.docs[11].placemarks[0].marker, 'click');
});
jQuery("#bbttoggle").on("click", function(e) {
if (bbtVisible) {
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.showDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// parserother.hideDocument(parserother.docs[19]);
bbtVisible = true;
} else {
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.showDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// parserother.hideDocument(parserother.docs[19]);
bbtVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.72921, -86.64169);
mapInstance.setCenter(latlng);
var placemarks = parserother.docs[12].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserother.docs[12].placemarks[0].marker, 'click');
});
///
jQuery("#fmutoggle").on("click", function(e) {
if (fmuVisible) {
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.showDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// parserother.hideDocument(parserother.docs[19]);
fmuVisible = true;
} else {
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.showDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// parserother.hideDocument(parserother.docs[19]);
fmuVisible = true;
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallhousingtoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = false;
showallhousingVisible = true;
}
else {
document.getElementById("hideallhousingtoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
hideallhousingVisible = true;
showallhousingVisible = false;
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
}
var latlng = new google.maps.LatLng(34.733642, -86.648755);
mapInstance.setCenter(latlng);
var placemarks = parserother.docs[13].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserother.docs[13].placemarks[0].marker, 'click');
google.maps.event.trigger(parserother.docs[13].placemarks[0].marker, 'load');
});
////////////
jQuery("#hideallothertoggle").on("click", function(e) {
if (hideallotherVisible) {
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
hideallotherVisible = true;
} else {
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
hideallotherVisible = true;
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
});
jQuery("#showallothertoggle").on("click", function(e) {
if (showallotherVisible) {
parserother.showDocument(parserother.docs[0]);
parserother.showDocument(parserother.docs[1]);
parserother.showDocument(parserother.docs[2]);
parserother.showDocument(parserother.docs[3]);
parserother.showDocument(parserother.docs[4]);
parserother.showDocument(parserother.docs[5]);
parserother.showDocument(parserother.docs[6]);
parserother.showDocument(parserother.docs[7]);
parserother.showDocument(parserother.docs[8]);
parserother.showDocument(parserother.docs[9]);
parserother.showDocument(parserother.docs[10]);
parserother.showDocument(parserother.docs[11]);
parserother.showDocument(parserother.docs[12]);
parserother.showDocument(parserother.docs[13]);
// parserother.showDocument(parserother.docs[14]);
// parserother.showDocument(parserother.docs[15]);
// parserother.showDocument(parserother.docs[16]);
// parserother.showDocument(parserother.docs[17]);
// parserother.showDocument(parserother.docs[18]);
// parserother.showDocument(parserother.docs[19]);
showallotherVisible = true;
} else {
parserother.showDocument(parserother.docs[0]);
parserother.showDocument(parserother.docs[1]);
parserother.showDocument(parserother.docs[2]);
parserother.showDocument(parserother.docs[3]);
parserother.showDocument(parserother.docs[4]);
parserother.showDocument(parserother.docs[5]);
parserother.showDocument(parserother.docs[6]);
parserother.showDocument(parserother.docs[7]);
parserother.showDocument(parserother.docs[8]);
parserother.showDocument(parserother.docs[9]);
parserother.showDocument(parserother.docs[10]);
parserother.showDocument(parserother.docs[11]);
parserother.showDocument(parserother.docs[12]);
parserother.showDocument(parserother.docs[13]);
// parserother.showDocument(parserother.docs[14]);
// parserother.showDocument(parserother.docs[15]);
// parserother.showDocument(parserother.docs[16]);
// parserother.showDocument(parserother.docs[17]);
// parserother.showDocument(parserother.docs[18]);
// parserother.showDocument(parserother.docs[19]);
showallotherVisible = true;
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
});
jQuery("#cchhousingtoggle").on("click", function(e) {
if (cchVisible) {
parserhousing.showDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
cchVisible = true;
} else {
parserhousing.showDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
cchVisible = true;
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
var latlng = new google.maps.LatLng(34.73003, -86.64175);
mapInstance.setCenter(latlng);
var placemarks = parserhousing.docs[0].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserhousing.docs[0].placemarks[0].marker, 'click');
});
jQuery(".clickable-marker-CCH").on("click", function(e) {
thisradiobtn = document.getElementById("cchhousingtoggle");
thisradiobtn.checked = true;
if (!housinglegend.hasClass('active')) {
thislegend = document.getElementById("campus-housing-level0");
thislegend.click();
}
// thisoption = document.getElementById("cchhousingtoggle");
// thisoption.click();
if (cchVisible) {
parserhousing.showDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
cchVisible = true;
} else {
parserhousing.showDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
cchVisible = true;
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
var latlng = new google.maps.LatLng(34.73003, -86.64175);
mapInstance.setCenter(latlng);
var placemarks = parserhousing.docs[0].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserhousing.docs[0].placemarks[0].marker, 'click');
});
jQuery("#cgvhousingtoggle").on("click", function(e) {
if (cgvVisible) {
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.showDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
cgvVisible = true;
} else {
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.showDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
cgvVisible = true;
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
var latlng = new google.maps.LatLng(34.72478, -86.6387);
mapInstance.setCenter(latlng);
var placemarks = parserhousing.docs[1].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserhousing.docs[1].placemarks[0].marker, 'click');
});
jQuery(".clickable-marker-CGV").on("click", function(e) {
thisradiobtn = document.getElementById("cgvhousingtoggle");
thisradiobtn.checked = true;
if (!housinglegend.hasClass('active')) {
thislegend = document.getElementById("campus-housing-level0");
thislegend.click();
}
// thisoption = document.getElementById("cgvhousingtoggle");
// thisoption.click();
if (cgvVisible) {
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.showDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
cgvVisible = true;
} else {
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.showDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
cgvVisible = true;
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
var latlng = new google.maps.LatLng(34.72478, -86.6387);
mapInstance.setCenter(latlng);
var placemarks = parserhousing.docs[1].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserhousing.docs[1].placemarks[0].marker, 'click');
});
jQuery("#ffhhousingtoggle").on("click", function(e) {
if (ffhVisible) {
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.showDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
ffhVisible = true;
} else {
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.showDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
ffhVisible = true;
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
var latlng = new google.maps.LatLng(34.72478, -86.6387);
mapInstance.setCenter(latlng);
var placemarks = parserhousing.docs[2].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserhousing.docs[2].placemarks[0].marker, 'click');
});
jQuery(".clickable-marker-FFH").on("click", function(e) {
thisradiobtn = document.getElementById("ffhhousingtoggle");
thisradiobtn.checked = true;
if (!housinglegend.hasClass('active')) {
thislegend = document.getElementById("campus-housing-level0");
thislegend.click();
}
// thisoption = document.getElementById("ffhhousingtoggle");
// thisoption.click();
if (ffhVisible) {
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.showDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
ffhVisible = true;
} else {
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.showDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
ffhVisible = true;
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
var latlng = new google.maps.LatLng(34.72478, -86.6387);
mapInstance.setCenter(latlng);
var placemarks = parserhousing.docs[2].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserhousing.docs[2].placemarks[0].marker, 'click');
});
jQuery("#gkhhousingtoggle").on("click", function(e) {
if (gkhVisible) {
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.showDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
gkhVisible = true;
} else {
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.showDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
gkhVisible = true;
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
var latlng = new google.maps.LatLng(34.72478, -86.6387);
mapInstance.setCenter(latlng);
var placemarks = parserhousing.docs[3].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserhousing.docs[3].placemarks[0].marker, 'click');
});
jQuery(".clickable-marker-GKH").on("click", function(e) {
thisradiobtn = document.getElementById("gkhhousingtoggle");
thisradiobtn.checked = true;
if (!housinglegend.hasClass('active')) {
thislegend = document.getElementById("campus-housing-level0");
thislegend.click();
}
// thisoption = document.getElementById("ckhhousingtoggle");
// thisoption.click();
if (gkhVisible) {
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.showDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
gkhVisible = true;
} else {
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.showDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
gkhVisible = true;
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
var latlng = new google.maps.LatLng(34.72478, -86.6387);
mapInstance.setCenter(latlng);
var placemarks = parserhousing.docs[3].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserhousing.docs[3].placemarks[0].marker, 'click');
});
jQuery("#nchhousingtoggle").on("click", function(e) {
if (nchVisible) {
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.showDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
nchVisible = true;
} else {
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.showDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
nchVisible = true;
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
var latlng = new google.maps.LatLng(34.72478, -86.6387);
mapInstance.setCenter(latlng);
var placemarks = parserhousing.docs[4].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserhousing.docs[4].placemarks[0].marker, 'click');
});
jQuery(".clickable-marker-NCH").on("click", function(e) {
thisradiobtn = document.getElementById("nchhousingtoggle");
thisradiobtn.checked = true;
if (!housinglegend.hasClass('active')) {
thislegend = document.getElementById("campus-housing-level0");
thislegend.click();
}
// thisoption = document.getElementById("nchhousingtoggle");
// thisoption.click();
if (nchVisible) {
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.showDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
nchVisible = true;
} else {
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.showDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
nchVisible = true;
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
var latlng = new google.maps.LatLng(34.72478, -86.6387);
mapInstance.setCenter(latlng);
var placemarks = parserhousing.docs[4].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserhousing.docs[4].placemarks[0].marker, 'click');
});
jQuery("#schhousingtoggle").on("click", function(e) {
if (schVisible) {
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.showDocument(parserhousing.docs[5]);
schVisible = true;
} else {
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.showDocument(parserhousing.docs[5]);
schVisible = true;
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
var latlng = new google.maps.LatLng(34.72478, -86.6387);
mapInstance.setCenter(latlng);
var placemarks = parserhousing.docs[5].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserhousing.docs[5].placemarks[0].marker, 'click');
});
jQuery(".clickable-marker-SCH").on("click", function(e) {
thisradiobtn = document.getElementById("schhousingtoggle");
thisradiobtn.checked = true;
if (!housinglegend.hasClass('active')) {
thislegend = document.getElementById("campus-housing-level0");
thislegend.click();
}
// thisoption = document.getElementById("schhousingtoggle");
// thisoption.click();
if (schVisible) {
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.showDocument(parserhousing.docs[5]);
schVisible = true;
} else {
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.showDocument(parserhousing.docs[5]);
schVisible = true;
}
if(document.getElementById('showalldiningtoggle').checked) {
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = false;
showalldiningVisible = true;
}
else {
document.getElementById("hidealldiningtoggle").checked=true;
chargerbrewVisible = false;
chargercafeVisible = false;
theDenVisible = false;
meinbowlVisible = false;
dunkindonutsVisible = false;
boarsheadVisible = false;
papajohnsVisible = false;
chickfilaVisible = false;
gardenviewcafeVisible = false;
burritobowlVisible = false;
cstoreVisible = false;
// sandellasflatbreadVisible = false;
hidealldiningVisible = true;
showalldiningVisible = false;
parserdining.hideDocument(parserdining.docs[0]);
parserdining.hideDocument(parserdining.docs[1]);
parserdining.hideDocument(parserdining.docs[2]);
parserdining.hideDocument(parserdining.docs[3]);
parserdining.hideDocument(parserdining.docs[4]);
parserdining.hideDocument(parserdining.docs[5]);
parserdining.hideDocument(parserdining.docs[6]);
parserdining.hideDocument(parserdining.docs[7]);
parserdining.hideDocument(parserdining.docs[8]);
parserdining.hideDocument(parserdining.docs[9]);
parserdining.hideDocument(parserdining.docs[10]);
}
if(document.getElementById('showallbankstoggle').checked) {
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = false;
showallbanksVisible = true;
}
else {
document.getElementById("hideallbankstoggle").checked=true;
alcreditunionVisible = false;
redstonefederalcreditunionVisible = false;
hideallbanksVisible = true;
showallbanksVisible = false;
parserbanks.hideDocument(parserbanks.docs[0]);
parserbanks.hideDocument(parserbanks.docs[1]);
}
if(document.getElementById('showallbuildingstoggle').checked) {
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
}
else {
document.getElementById("hideallbuildingstoggle").checked=true;
cchVisible = false;
cgvVisible = false;
ffhVisible = false;
gkhVisible = false;
nchVisible = false;
schVisible = false;
bevVisible = false;
babVisible = false;
bsbVisible = false;
ctcVisible = false;
crhVisible = false;
elcVisible = false;
engVisible = false;
i2cVisible = false;
msbVisible = false;
morVisible = false;
nurVisible = false;
oktVisible = false;
opbVisible = false;
ppbVisible = false;
robVisible = false;
libVisible = false;
skhVisible = false;
sstVisible = false;
sprVisible = false;
ssbVisible = false;
swiVisible = false;
ufcVisible = false;
vbhVisible = false;
wilVisible = false;
jrcVisible = false;
imfVisible = false;
cguVisible = false;
recVisible = false;
uggVisible = false;
lrhVisible = false;
parserbuildings.hideDocument(parserbuildings.docs[0]);
parserbuildings.hideDocument(parserbuildings.docs[1]);
parserbuildings.hideDocument(parserbuildings.docs[2]);
parserbuildings.hideDocument(parserbuildings.docs[3]);
parserbuildings.hideDocument(parserbuildings.docs[4]);
parserbuildings.hideDocument(parserbuildings.docs[5]);
parserbuildings.hideDocument(parserbuildings.docs[6]);
parserbuildings.hideDocument(parserbuildings.docs[7]);
parserbuildings.hideDocument(parserbuildings.docs[8]);
parserbuildings.hideDocument(parserbuildings.docs[9]);
parserbuildings.hideDocument(parserbuildings.docs[10]);
parserbuildings.hideDocument(parserbuildings.docs[11]);
parserbuildings.hideDocument(parserbuildings.docs[12]);
parserbuildings.hideDocument(parserbuildings.docs[13]);
parserbuildings.hideDocument(parserbuildings.docs[14]);
parserbuildings.hideDocument(parserbuildings.docs[15]);
parserbuildings.hideDocument(parserbuildings.docs[16]);
parserbuildings.hideDocument(parserbuildings.docs[17]);
parserbuildings.hideDocument(parserbuildings.docs[18]);
parserbuildings.hideDocument(parserbuildings.docs[19]);
parserbuildings.hideDocument(parserbuildings.docs[20]);
parserbuildings.hideDocument(parserbuildings.docs[21]);
parserbuildings.hideDocument(parserbuildings.docs[22]);
parserbuildings.hideDocument(parserbuildings.docs[23]);
parserbuildings.hideDocument(parserbuildings.docs[24]);
parserbuildings.hideDocument(parserbuildings.docs[25]);
parserbuildings.hideDocument(parserbuildings.docs[26]);
parserbuildings.hideDocument(parserbuildings.docs[27]);
parserbuildings.hideDocument(parserbuildings.docs[28]);
parserbuildings.hideDocument(parserbuildings.docs[29]);
// parserbuildings.hideDocument(parserbuildings.docs[30]);
}
if(document.getElementById('showallothertoggle').checked) {
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
}
else {
document.getElementById("hideallothertoggle").checked=true;
amphiVisible = false;
theatreannexVisible = false;
chanVisible = false;
cgpVisible = false;
exhibVisible = false;
mcdonVisible = false;
propVisible = false;
publicVisible = false;
robrecVisible = false;
greenwayVisible = false;
upkVisible = false;
wiltheatVisible = false;
bbtVisible = false;
fmuVisible = false;
parserother.hideDocument(parserother.docs[0]);
parserother.hideDocument(parserother.docs[1]);
parserother.hideDocument(parserother.docs[2]);
parserother.hideDocument(parserother.docs[3]);
parserother.hideDocument(parserother.docs[4]);
parserother.hideDocument(parserother.docs[5]);
parserother.hideDocument(parserother.docs[6]);
parserother.hideDocument(parserother.docs[7]);
parserother.hideDocument(parserother.docs[8]);
parserother.hideDocument(parserother.docs[9]);
parserother.hideDocument(parserother.docs[10]);
parserother.hideDocument(parserother.docs[11]);
parserother.hideDocument(parserother.docs[12]);
parserother.hideDocument(parserother.docs[13]);
// parserother.hideDocument(parserother.docs[14]);
// parserother.hideDocument(parserother.docs[15]);
// parserother.hideDocument(parserother.docs[16]);
// parserother.hideDocument(parserother.docs[17]);
// parserother.hideDocument(parserother.docs[18]);
// // parserother.hideDocument(parserother.docs[19]);
}
var latlng = new google.maps.LatLng(34.72478, -86.6387);
mapInstance.setCenter(latlng);
var placemarks = parserhousing.docs[5].placemarks;
var markerIndex, placemarkIndex, loopEnd;
for (markerIdx = 0, loopEnd = placemarks.length; markerIdx < loopEnd; markerIdx++) {
var currentMetadata = {};
currentMetadata.name = placemarks[markerIdx].name;
currentMetadata.index = markerIdx;
placemarkMetadata.push(currentMetadata);
}
// trigger to close any open infowindows
jQuery('.gm-ui-hover-effect').trigger('click');
google.maps.event.trigger(parserhousing.docs[5].placemarks[0].marker, 'click');
});
jQuery("#hideallhousingtoggle").on("click", function(e) {
if (hideallhousingVisible) {
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
hideallhousingVisible = true;
} else {
parserhousing.hideDocument(parserhousing.docs[0]);
parserhousing.hideDocument(parserhousing.docs[1]);
parserhousing.hideDocument(parserhousing.docs[2]);
parserhousing.hideDocument(parserhousing.docs[3]);
parserhousing.hideDocument(parserhousing.docs[4]);
parserhousing.hideDocument(parserhousing.docs[5]);
hideallhousingVisible = true;
}
});
jQuery("#showallhousingtoggle").on("click", function(e) {
if (showallhousingVisible) {
parserhousing.showDocument(parserhousing.docs[0]);
parserhousing.showDocument(parserhousing.docs[1]);
parserhousing.showDocument(parserhousing.docs[2]);
parserhousing.showDocument(parserhousing.docs[3]);
parserhousing.showDocument(parserhousing.docs[4]);
parserhousing.showDocument(parserhousing.docs[5]);
showallhousingVisible = true;
} else {
parserhousing.showDocument(parserhousing.docs[0]);
parserhousing.showDocument(parserhousing.docs[1]);
parserhousing.showDocument(parserhousing.docs[2]);
parserhousing.showDocument(parserhousing.docs[3]);
parserhousing.showDocument(parserhousing.docs[4]);
parserhousing.showDocument(parserhousing.docs[5]);
showallhousingVisible = true;
}
});
jQuery("#recenter").on("click", function(e) {
var latlng = new google.maps.LatLng(34.7263, -86.64126);
mapInstance.setCenter(latlng);
mapInstance.setZoom(17);
});
jQuery("#controls").show();
}
jQuery(document).ready(function() {
var latlng = new google.maps.LatLng(34.7263, -86.64126);
var styledMapType = new google.maps.StyledMapType(
[
{elementType: 'geometry', stylers: [{color: '#e8e8e8'}]},
{elementType: 'labels.text.fill', stylers: [{color: '#616161'}]},
{elementType: 'labels.text.stroke', stylers: [{color: '#f5f5f5'}]},
{elementType: 'labels.icon', stylers: [{'visibility': 'off'}]},
{
featureType: 'administrative',
elementType: 'geometry.stroke',
stylers: [{"visibility": "off"}]
},
{
"featureType": "administrative.land_parcel",
"elementType": "labels.text.fill",
"stylers": [
{
"visibility": "off"
}
]
},
{
"featureType": "landscape.man_made",
"elementType": "geometry.fill",
"stylers": [
{
"color": "#ffecba"
},
{
"visibility": "off"
}
]
},
{
"featureType": "poi",
"elementType": "geometry",
"stylers": [
{
"visibility": "off"
}
]
},
{
"featureType": "poi",
"elementType": "labels.text.fill",
"stylers": [
{
"color": "#616161"
}
]
},
{
"featureType": "poi.attraction",
"stylers": [
{
"visibility": "off"
}
]
},
{
"featureType": "poi.business",
"stylers": [
{
"visibility": "off"
}
]
},
{
"featureType": "poi.government",
"stylers": [
{
"visibility": "off"
}
]
},
{
"featureType": "poi.medical",
"stylers": [
{
"visibility": "off"
}
]
},
{
"featureType": "poi.park",
"stylers": [
{
"visibility": "off"
}
]
},
{
"featureType": "poi.park",
"elementType": "geometry",
"stylers": [
{
"visibility": "off"
}
]
},
{
"featureType": "poi.park",
"elementType": "labels.text.fill",
"stylers": [
{
"visibility": "off"
}
]
},
{
"featureType": "poi.place_of_worship",
"stylers": [
{
"visibility": "off"
}
]
},
{
"featureType": "poi.school",
"stylers": [
{
"visibility": "off"
}
]
},
{
"featureType": "poi.sports_complex",
"stylers": [
{
"visibility": "off"
}
]
},
{
"featureType": "road",
"elementType": "geometry",
"stylers": [
{
"color": "#fefffe"
}
]
},
{
"featureType": "road.arterial",
"stylers": [
{
"color": "#fefffe"
}
]
},
{
"featureType": "road.arterial",
"elementType": "geometry.fill",
"stylers": [
{
"color": "#fefffe"
}
]
},
{
"featureType": "road.arterial",
"elementType": "labels.text.fill",
"stylers": [
{
"color": "#616161"
}
]
},
{
"featureType": "road.highway",
"stylers": [
{
"color": "#fefffe"
}
]
},
{
"featureType": "road.highway",
"elementType": "geometry",
"stylers": [
{
"color": "#fefffe"
}
]
},
{
"featureType": "road.highway",
"elementType": "geometry.fill",
"stylers": [
{
"color": "#fefffe"
}
]
},
{
"featureType": "road.highway",
"elementType": "labels.text.fill",
"stylers": [
{
"color": "#616161"
}
]
},
{
"featureType": "road.highway.controlled_access",
"stylers": [
{
"color": "#ffec9c"
}
]
},
{
"featureType": "road.highway.controlled_access",
"elementType": "geometry.fill",
"stylers": [
{
"color": "#ffec9c"
},
{
"visibility": "on"
},
{
"weight": 1.5
}
]
},
{
"featureType": "road.local",
"stylers": [
{
"color": "#fefffe"
}
]
},
{
"featureType": "road.local",
"elementType": "geometry.fill",
"stylers": [
{
"color": "#fefffe"
}
]
},
{
"featureType": "road.local",
"elementType": "labels.text.fill",
"stylers": [
{
"color": "#616161"
}
]
},
{
"featureType": "transit.line",
"elementType": "geometry",
"stylers": [
{
"visibility": "off"
}
]
},
{
"featureType": "transit.station",
"elementType": "geometry",
"stylers": [
{
"visibility": "off"
}
]
},
{
"featureType": "transit.station.rail",
"elementType": "geometry.fill",
"stylers": [
{
"visibility": "off"
}
]
},
{
"featureType": "water",
"stylers": [
{
"color": "#a8d9ff"
}
]
},
{
"featureType": "water",
"elementType": "geometry",
"stylers": [
{
"color": "#c9c9c9"
}
]
},
{
"featureType": "water",
"elementType": "geometry.fill",
"stylers": [
{
"color": "#a8d9ff"
}
]
},
{
"featureType": "water",
"elementType": "labels.text.fill",
"stylers": [
{
"color": "#616161"
}
]
}
],
{name: 'Map'});
var mapOptions = {
zoom: 17,
minZoom: 15,
maxZoom: 20,
center: latlng,
clickableIcons: false,
tilt: 0,
streetViewControl: false,
fullscreenControl: false,
mapTypeId: google.maps.MapTypeId.SATELLITE,
mapTypeControl: true,
fullscreenControl: true,
fullscreenControlOptions: {
position: google.maps.ControlPosition.BOTTOM_RIGHT
},
zoomControl: true,
zoomControlOptions: {
position: google.maps.ControlPosition.RIGHT_BOTTOM,
},
scaleControl: true,
streetViewControl: false,
streetViewControlOptions: {
position: google.maps.ControlPosition.BOTTOM_RIGHT,
},
mapTypeControlOptions: {
mapTypeIds: ['styled_map', 'satellite'],
position: google.maps.ControlPosition.BOTTOM_LEFT
}
};
mapInstance = new google.maps.Map(document.getElementById("map"), mapOptions);
var mapDiv = document.getElementById('map').getElementsByTagName('div')[0];
mapDiv.appendChild(document.getElementById("maptoggles"));
var marker1 = new MarkerWithLabel({
position: new google.maps.LatLng(34.71877, -86.64647),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "OKT",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-building clickable-marker-OKT",
labelStyle: {opacity: 1.00}
});
var marker2 = new MarkerWithLabel({
position: new google.maps.LatLng(34.71846, -86.6452),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "SKH",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-building clickable-marker-SKH",
labelStyle: {opacity: 1.00}
});
var marker3 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72638, -86.63861),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "IMF",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-building clickable-marker-IMF",
labelStyle: {opacity: 1.00}
});
var marker4 = new MarkerWithLabel({
position: new google.maps.LatLng(34.7189, -86.64016),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "BSB",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-building clickable-marker-BSB",
labelStyle: {opacity: 1.00}
});
var marker5 = new MarkerWithLabel({
position: new google.maps.LatLng(34.71894, -86.63961),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "LRH",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-building clickable-marker-LRH",
labelStyle: {opacity: 1.00}
});
var marker6 = new MarkerWithLabel({
position: new google.maps.LatLng(34.71908, -86.63807),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "JRC",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-building clickable-marker-JRC",
labelStyle: {opacity: 1.00}
});
var marker7 = new MarkerWithLabel({
position: new google.maps.LatLng(34.71906, -86.63712),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "REC",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-building clickable-marker-REC",
labelStyle: {opacity: 1.00}
});
var marker8 = new MarkerWithLabel({
position: new google.maps.LatLng(34.71964, -86.63628),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "PPB",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-building clickable-marker-PPB",
labelStyle: {opacity: 1.00}
});
var marker9 = new MarkerWithLabel({
position: new google.maps.LatLng(34.71892, -86.6358),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "Community Garden",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-no-background",
labelStyle: {opacity: 1.00}
});
var marker10 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72201, -86.63458),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "UPK",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-building clickable-marker-UPK",
labelStyle: {opacity: 1.00}
});
var marker11 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72163, -86.63658),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "CGP",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-building clickable-marker-CGP",
labelStyle: {opacity: 1.00}
});
var marker12 = new MarkerWithLabel({
position: new google.maps.LatLng(34.7219, -86.63813),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "MSB",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-building clickable-marker-MSB",
labelStyle: {opacity: 1.00}
});
var marker13 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72277, -86.63859),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "OPB",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-building clickable-marker-OPB",
labelStyle: {opacity: 1.00}
});
var marker15 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72454, -86.6388),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "CGV",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-building clickable-marker-CGV",
labelStyle: {opacity: 1.00}
});
var marker16 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72451, -86.63708),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "SCH",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-building clickable-marker-SCH",
labelStyle: {opacity: 1.00}
});
var marker17 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72516, -86.63599),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "FSR",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-building clickable-marker-GKH",
labelStyle: {opacity: 1.00}
});
var marker18 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72141, -86.64079),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "VBH",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-building clickable-marker-VBH",
labelStyle: {opacity: 1.00}
});
var marker19 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72267, -86.64055),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "ENG",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-building clickable-marker-ENG",
labelStyle: {opacity: 1.00}
});
var marker20 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72459, -86.64045),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "SSB",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-building clickable-marker-SSB",
labelStyle: {opacity: 1.00}
});
var marker21 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72597, -86.64131),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "SST",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-building clickable-marker-SST",
labelStyle: {opacity: 1.00}
});
var marker22 = new MarkerWithLabel({
position: new google.maps.LatLng(34.73308, -86.63748),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "ELC",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-building clickable-marker-ELC",
labelStyle: {opacity: 1.00}
});
var marker23 = new MarkerWithLabel({
position: new google.maps.LatLng(34.73123, -86.63669),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "SPR",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-building clickable-marker-SPR",
labelStyle: {opacity: 1.00}
});
var marker24 = new MarkerWithLabel({
position: new google.maps.LatLng(34.73096, -86.63892),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "ROB",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-building clickable-marker-ROB",
labelStyle: {opacity: 1.00}
});
var marker25 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72988, -86.63868),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "NUR",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-building clickable-marker-NUR",
labelStyle: {opacity: 1.00}
});
var marker26 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72945, -86.64004),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "LIB",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-building clickable-marker-LIB",
labelStyle: {opacity: 1.00}
});
var marker27 = new MarkerWithLabel({
position: new google.maps.LatLng(34.73355, -86.63985),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "NCH",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-building clickable-marker-NCH",
labelStyle: {opacity: 1.00}
});
var marker28 = new MarkerWithLabel({
position: new google.maps.LatLng(34.73332, -86.64075),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "FFH",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-building clickable-marker-FFH",
labelStyle: {opacity: 1.00}
});
var marker29 = new MarkerWithLabel({
position: new google.maps.LatLng(34.73269, -86.64163),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "MOR",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-building clickable-marker-MOR",
labelStyle: {opacity: 1.00}
});
var marker30 = new MarkerWithLabel({
position: new google.maps.LatLng(34.73191, -86.64194),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "UGG",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-building clickable-marker-UGG",
labelStyle: {opacity: 1.00}
});
var marker31 = new MarkerWithLabel({
position: new google.maps.LatLng(34.73124, -86.64287),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "BEV",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-building clickable-marker-BEV",
labelStyle: {opacity: 1.00}
});
var marker32 = new MarkerWithLabel({
position: new google.maps.LatLng(34.73082, -86.64137),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "CTC",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-building clickable-marker-CTC",
labelStyle: {opacity: 1.00}
});
var marker33 = new MarkerWithLabel({
position: new google.maps.LatLng(34.73005, -86.64173),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "CCH",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-building clickable-marker-CCH",
labelStyle: {opacity: 1.00}
});
var marker34 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72924, -86.64148),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "WIL",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-building clickable-marker-WIL",
labelStyle: {opacity: 1.00}
});
var marker35 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72878, -86.6417),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "I2C",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-building clickable-marker-I2C",
labelStyle: {opacity: 1.00}
});
var marker36 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72825, -86.64135),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "BAB",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-building clickable-marker-BAB",
labelStyle: {opacity: 1.00}
});
var marker37 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72654, -86.63676),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "UFC",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-building clickable-marker-UFC",
labelStyle: {opacity: 1.00}
});
var marker38 = new MarkerWithLabel({
position: new google.maps.LatLng(34.7225, -86.63605),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "Charger Park",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-no-background",
labelStyle: {opacity: 1.00}
});
var marker39 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72083, -86.63735),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "Charger Field",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-no-background",
labelStyle: {opacity: 1.00}
});
var marker40 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72115, -86.63611),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "Softball Complex",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-no-background",
labelStyle: {opacity: 1.00}
});
var marker41 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72231, -86.63417),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "Riggs Field",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-no-background",
labelStyle: {opacity: 1.00}
});
var marker42 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72159, -86.63414),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "Charger Park II",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-no-background",
labelStyle: {opacity: 1.00}
});
var marker43 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72876, -86.63688),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "Charger Field",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-no-background",
labelStyle: {opacity: 1.00}
});
var marker44 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72213, -86.64322),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "University Lake",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-no-background",
labelStyle: {opacity: 1.00}
});
var marker45 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72712, -86.63984),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "CGU",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-building clickable-marker-CGU",
labelStyle: {opacity: 1.00}
});
var marker46 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72517, -86.64641),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "SWI",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-building clickable-marker-SWI",
labelStyle: {opacity: 1.00}
});
var marker47 = new MarkerWithLabel({
position: new google.maps.LatLng(34.7246, -86.64516),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "CRH",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-building clickable-marker-CRH",
labelStyle: {opacity: 1.00}
});
var marker48 = new MarkerWithLabel({
position: new google.maps.LatLng(34.7178, -86.64765),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "T43",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-parking-lot",
labelStyle: {opacity: 1.00}
});
var marker49 = new MarkerWithLabel({
position: new google.maps.LatLng(34.71907, -86.64733),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "T42",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-parking-lot",
labelStyle: {opacity: 1.00}
});
var marker50 = new MarkerWithLabel({
position: new google.maps.LatLng(34.7184, -86.6458),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "T41",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-parking-lot",
labelStyle: {opacity: 1.00}
});
var marker51 = new MarkerWithLabel({
position: new google.maps.LatLng(34.71919, -86.64536),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "T40",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-parking-lot",
labelStyle: {opacity: 1.00}
});
var marker52 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72468, -86.64605),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "B51",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-parking-lot",
labelStyle: {opacity: 1.00}
});
var marker53 = new MarkerWithLabel({
position: new google.maps.LatLng(34.7253, -86.64552),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "B50",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-parking-lot",
labelStyle: {opacity: 1.00}
});
var marker54 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72414, -86.64476),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "B50",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-parking-lot",
labelStyle: {opacity: 1.00}
});
var marker55 = new MarkerWithLabel({
position: new google.maps.LatLng(34.71909, -86.64008),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "W31",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-parking-lot",
labelStyle: {opacity: 1.00}
});
var marker56 = new MarkerWithLabel({
position: new google.maps.LatLng(34.71925, -86.63869),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "W32",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-parking-lot",
labelStyle: {opacity: 1.00}
});
var marker57 = new MarkerWithLabel({
position: new google.maps.LatLng(34.71937, -86.63702),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "W33",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-parking-lot",
labelStyle: {opacity: 1.00}
});
var marker58 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72207, -86.63719),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "W27",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-parking-lot",
labelStyle: {opacity: 1.00}
});
var marker59 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72113, -86.63818),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "W28",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-parking-lot",
labelStyle: {opacity: 1.00}
});
var marker60 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72166, -86.63931),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "W29",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-parking-lot",
labelStyle: {opacity: 1.00}
});
var marker61 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72255, -86.63789),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "W26",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-parking-lot",
labelStyle: {opacity: 1.00}
});
var marker62 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72001, -86.64078),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "W30",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-parking-lot",
labelStyle: {opacity: 1.00}
});
var marker63 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72199, -86.64146),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "W34",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-parking-lot",
labelStyle: {opacity: 1.00}
});
var marker64 = new MarkerWithLabel({
position: new google.maps.LatLng(34.7238, -86.63794),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "W25",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-parking-lot",
labelStyle: {opacity: 1.00}
});
var marker65 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72395, -86.63597),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "W24",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-parking-lot",
labelStyle: {opacity: 1.00}
});
var marker66 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72464, -86.63539),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "W23",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-parking-lot",
labelStyle: {opacity: 1.00}
});
var marker67 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72551, -86.63636),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "W22",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-parking-lot",
labelStyle: {opacity: 1.00}
});
var marker68 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72613, -86.63744),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "W21",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-parking-lot",
labelStyle: {opacity: 1.00}
});
var marker69 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72693, -86.63873),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "W20",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-parking-lot",
labelStyle: {opacity: 1.00}
});
var marker70 = new MarkerWithLabel({
position: new google.maps.LatLng(34.73014, -86.63686),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "G15",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-parking-lot",
labelStyle: {opacity: 1.00}
});
var marker71 = new MarkerWithLabel({
position: new google.maps.LatLng(34.7312, -86.63732),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "G14",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-parking-lot",
labelStyle: {opacity: 1.00}
});
var marker72 = new MarkerWithLabel({
position: new google.maps.LatLng(34.73193, -86.63841),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "G16",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-parking-lot",
labelStyle: {opacity: 1.00}
});
var marker73 = new MarkerWithLabel({
position: new google.maps.LatLng(34.73188, -86.63919),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "G12",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-parking-lot",
labelStyle: {opacity: 1.00}
});
var marker74 = new MarkerWithLabel({
position: new google.maps.LatLng(34.73327, -86.63906),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "G13",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-parking-lot",
labelStyle: {opacity: 1.00}
});
var marker75 = new MarkerWithLabel({
position: new google.maps.LatLng(34.73226, -86.63993),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "G10",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-parking-lot",
labelStyle: {opacity: 1.00}
});
var marker76 = new MarkerWithLabel({
position: new google.maps.LatLng(34.73266, -86.63931),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "G11",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-parking-lot",
labelStyle: {opacity: 1.00}
});
var marker77 = new MarkerWithLabel({
position: new google.maps.LatLng(34.73168, -86.64071),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "G9",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-parking-lot",
labelStyle: {opacity: 1.00}
});
var marker78 = new MarkerWithLabel({
position: new google.maps.LatLng(34.73187, -86.64315),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "G6",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-parking-lot",
labelStyle: {opacity: 1.00}
});
var marker79 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72981, -86.64285),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "G5",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-parking-lot",
labelStyle: {opacity: 1.00}
});
var marker80 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72803, -86.64174),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "G4",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-parking-lot",
labelStyle: {opacity: 1.00}
});
var marker81 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72453, -86.64135),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "K1",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-parking-lot",
labelStyle: {opacity: 1.00}
});
var marker82 = new MarkerWithLabel({
position: new google.maps.LatLng(34.72834, -86.63911),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "G17",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-parking-lot",
labelStyle: {opacity: 1.00}
});
var marker83 = new MarkerWithLabel({
position: new google.maps.LatLng(34.73395, -86.64155),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "G8",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-parking-lot",
labelStyle: {opacity: 1.00}
});
var marker84 = new MarkerWithLabel({
position: new google.maps.LatLng(34.73374, -86.64239),
draggable: false,
raiseOnDrag: false,
map: mapInstance,
icon: "/campus-map/images/transparent.png",
labelContent: "G7",
labelAnchor: new google.maps.Point(22, 0),
labelClass: "campus-map-labels-parking-lot",
labelStyle: {opacity: 1.00}
});
mapInstance.mapTypes.set('styled_map', styledMapType);
mapInstance.setMapTypeId('styled_map');
parserbike = new geoXML3.parser({
map: mapInstance,
processStyles: true,
markerOptions: {
icon: "/campus-map/images/bike-lock-icon.png",
opacity: 1.0
},
suppressInfoWindows: true,
singleInfoWindow: true,
zoom: false,
afterParse: customAfterParse
}
);
google.maps.event.addListener(parserbike, 'parsed', completeInit);
parserbike.parse([
'/campus-map/kml/Bike-Racks1b.kml'
]);
////////////
parserevcharger = new geoXML3.parser({
map: mapInstance,
processStyles: true,
markerOptions: {
icon: "/campus-map/images/ev-charger6-icon.png",
opacity: 1.0
},
suppressInfoWindows: true,
singleInfoWindow: true,
zoom: false,
afterParse: customAfterParse
}
);
google.maps.event.addListener(parserevcharger, 'parsed', completeInit);
parserevcharger.parse([
'/campus-map/kml/EV-Chargers.kml',
]);
////////////
parserphone = new geoXML3.parser({
map: mapInstance,
processStyles: true,
markerOptions: {
icon: "/campus-map/images/emergency-phone-yellow-icon.png",
opacity: 1.0
},
suppressInfoWindows: true,
singleInfoWindow: true,
zoom: false,
afterParse: customAfterParse
}
);
google.maps.event.addListener(parserphone, 'parsed', completeInit);
parserphone.parse([
'/campus-map/kml/Emergency-Phones1a.kml'
]);
parserbuildings = new geoXML3.parser({
map: mapInstance,
processStyles: true,
markerOptions: {
icon: "https://maps.google.com/mapfiles/ms/icons/blue-dot.png",
opacity: 1.0
},
suppressInfoWindows: false,
singleInfoWindow: true,
zoom: false,
afterParse: customAfterParse
}
);
google.maps.event.addListener(parserbuildings, 'parsed', completeInit);
parserbuildings.parse([
'/campus-map/kml/BEV1c.kml',
'/campus-map/kml/BAB1c.kml',
'/campus-map/kml/BSB1c.kml',
'/campus-map/kml/CTC1b.kml',
'/campus-map/kml/CRH1b.kml',
'/campus-map/kml/ELC1d.kml',
'/campus-map/kml/ENG1b.kml',
'/campus-map/kml/I2C1c.kml',
'/campus-map/kml/MSB1c.kml',
'/campus-map/kml/MOR1b.kml',
'/campus-map/kml/NUR1b.kml',
'/campus-map/kml/OKT1b.kml',
'/campus-map/kml/OPB1b.kml',
'/campus-map/kml/PPB1b.kml',
'/campus-map/kml/ROB1b.kml',
'/campus-map/kml/LIB1b.kml',
'/campus-map/kml/SKH1b.kml',
'/campus-map/kml/SST1c.kml',
'/campus-map/kml/SPR1b.kml',
'/campus-map/kml/SSB1b.kml',
'/campus-map/kml/SWI1b.kml',
'/campus-map/kml/UFC1b.kml',
'/campus-map/kml/VBH1b.kml',
'/campus-map/kml/WIL1b.kml',
'/campus-map/kml/JRC1b.kml',
'/campus-map/kml/IMF1b.kml',
'/campus-map/kml/CGU1b.kml',
'/campus-map/kml/REC1h.kml',
'/campus-map/kml/UGG1c.kml',
'/campus-map/kml/LRH1c.kml',
]);
parserother = new geoXML3.parser({
map: mapInstance,
processStyles: true,
markerOptions: {
icon: "https://maps.google.com/mapfiles/ms/icons/blue.png",
opacity: 1.0
},
suppressInfoWindows: false,
singleInfoWindow: true,
zoom: false,
afterParse: customAfterParse
}
);
google.maps.event.addListener(parserother, 'parsed', completeInit);
parserother.parse([
'/campus-map/kml/UPK1d.kml',
'/campus-map/kml/CGP1d.kml',
'/campus-map/kml/Amphi1c.kml',
'/campus-map/kml/TheatreAnnex1a.kml',
'/campus-map/kml/Chan1e.kml',
'/campus-map/kml/Exhib1g.kml',
'/campus-map/kml/McDon1e.kml',
'/campus-map/kml/Prop1d.kml',
'/campus-map/kml/Public1d.kml',
'/campus-map/kml/RobRec1f.kml',
'/campus-map/kml/Greenway1c.kml',
'/campus-map/kml/WilTheat1f.kml',
'/campus-map/kml/BBT1e.kml',
'/campus-map/kml/FMU1a.kml',
'/campus-map/kml/tmp-ben-graves-greenway-modification1a.kml'
//'/campus-map/kml/Altenkirch_Lawn_Phase_4-2b.kml'
]);
parserdining = new geoXML3.parser({
map: mapInstance,
processStyles: true,
markerOptions: {
icon: "/campus-map/images/dining-icon.png",
opacity: 1.0
},
suppressInfoWindows: false,
singleInfoWindow: true,
zoom: false,
afterParse: customAfterParse
}
);
google.maps.event.addListener(parserdining, 'parsed', completeInit);
parserdining.parse([
'/campus-map/kml/Boars-Head-Deli1d.kml',
'/campus-map/kml/Burrito-Bowl1b.kml',
'/campus-map/kml/Charger-Brew1d.kml',
'/campus-map/kml/Charger-Cafe1d.kml',
'/campus-map/kml/Chick-Fil-A1d.kml',
'/campus-map/kml/Dunkin-Donuts1d.kml',
'/campus-map/kml/Mein-Bowl1e.kml',
'/campus-map/kml/Papa-Johns-Pizza1d.kml',
'/campus-map/kml/C-Store1e.kml',
'/campus-map/kml/The_Den1a.kml'
//'/campus-map/kml/Gardenview-Cafe1e.kml',
]);
parserbanks = new geoXML3.parser({
map: mapInstance,
processStyles: true,
markerOptions: {
icon: "/campus-map/images/bank-icon.png",
opacity: 1.0
},
suppressInfoWindows: false,
singleInfoWindow: true,
zoom: false,
afterParse: customAfterParse
}
);
google.maps.event.addListener(parserbanks, 'parsed', completeInit);
parserbanks.parse([
'/campus-map/kml/Alabama-Credit-Union1f.kml',
'/campus-map/kml/Redstone-Federal-Credit-Union1f.kml'
]);
parserhousing = new geoXML3.parser({
map: mapInstance,
processStyles: true,
markerOptions: {
icon: "/campus-map/images/house-map-marker-blue.png",
opacity: 1.0
},
suppressInfoWindows: false,
singleInfoWindow: true,
zoom: false,
afterParse: customAfterParse
}
);
google.maps.event.addListener(parserhousing, 'parsed', completeInit);
parserhousing.parse([
'/campus-map/kml/CCH1c.kml',
'/campus-map/kml/CGV1c.kml',
'/campus-map/kml/FFH1c.kml',
'/campus-map/kml/FSR1a.kml',
'/campus-map/kml/NCH1c.kml',
'/campus-map/kml/SCH1c.kml'
]);
parser = new geoXML3.parser({
map: mapInstance,
processStyles: true,
markerOptions: {
icon: "https://maps.google.com/mapfiles/ms/icons/blue.png",
opacity: 1.0
},
suppressInfoWindows: true,
singleInfoWindow: true,
zoom: false,
afterParse: customAfterParse
}
);
google.maps.event.addListener(parser, 'parsed', completeInit);
parser.parse([
'/campus-map/kml/Base-Layer1j.kml',
'/campus-map/kml/Any-Permit-Parking1e.kml',
'/campus-map/kml/Visitor-Parking1g.kml',
'/campus-map/kml/Restricted-Parking1d.kml',
'/campus-map/kml/CCH-Resident-Parking1c.kml',
'/campus-map/kml/Fitness-Center-Parking1c.kml',
'/campus-map/kml/Faculty-Staff-Parking1g.kml',
'/campus-map/kml/Commuter-Only1d.kml',
'/campus-map/kml/Commuter-Faculty-Staff-Parking1g.kml',
'/campus-map/kml/I2C-Visitor-Parking1b.kml',
'/campus-map/kml/Army-Corps-of-Engineers-Parking1b.kml',
'/campus-map/kml/Disability-Parking1g.kml',
'/campus-map/kml/SCH-FSR-CGV-Resident-Parking1b.kml',
'/campus-map/kml/FFH-NCH-Resident-Parking1b.kml'
]);
});
////////////////////////
jQuery("#refreshAllJq").click(function(){
const a = ["hideallbankstoggle","bikerackofftoggle","evchargerofftoggle","hideallbuildingstoggle","hidealldiningtoggle","phoneofftoggle","shownonetoggle","hideallhousingtoggle","hideallothertoggle", "recenter" ];
for (let index = 0; index < a.length; ++index) {
const element = a[index];
console.log(element);
document.getElementById(element).click();;
}
});
function refreshMap() {
const a = ["hideallbankstoggle","bikerackofftoggle","evchargerofftoggle","hideallbuildingstoggle","hidealldiningtoggle","phoneofftoggle","shownonetoggle","hideallhousingtoggle","hideallothertoggle", "recenter"];
for (let index = 0; index < a.length; ++index) {
const element = a[index];
console.log(element);
document.getElementById(element).click();;
}
}