var gen = " scrollwheel: true,\n"+
" streetViewControl: true,\n";
if (val == "FALSE"){
gen = " control: false,\n";
} else {
gen = " control: true,\n";
}
gen = " zoom: true,\n";
What would be the best way to append the gen variable so that everything gets added one after the other.
FALSEand not the booleanfalse? Why are you creating what is essentially an object with strings? What happened to the indentation?