Hi
I was trying to use setVisibility method for switching my WMS geoserver layer inside viewer
this is the example:
$("#hot").prop(‘checked’, true);
function checkHot () {
if ($("#hot").prop(‘checked’)==true) {
hot.setVisibility(true);
} else {
hot.setVisibility(false);
}
};
$("#hot").change(function event(){checkHot()});
but it didn’t work
my firebug detected that setVisibility is not a function
plz help…
Best Regards…
Nakula…