Hey.
<input id="scrollButton" type="button" value="Yes">
$(document).ready(function() {
$("#scrollButton").click(function() {
if (this.value == "Yes") {
this.value = "No";
// function will switch off scroll wheel
} else if (this.value == "No") {
this.value = "Yes";
// function will switch on scroll wheel
}
});
});
$(document).ready(function() {
$("#scrollButton").click(function() {
if (this.value == "Yes") {
this.value = "No";
scrollButtonOption = null;
init();
} else if (this.value == "No") {
this.value = "Yes";
scrollButtonOption = true;
init();
}
});
});
function init(){
var mapOptions = {
scrollwheel: scrollButtonOption,
...