Hey,
So I am using javascript to toggle layer visibility on the client side, and turning layervisiibility off works great, but when I turn layervisibility back on, the layer does not appear until after I zoom in or out, even though the layer visibility is in fact true. Any help with this would be appreciated.
function hidepsabutton() { var map = Map1.GetOpenLayersMap(); var layer = map.getLayer("UserOverlay"); var checker = document.getElementById("checkbox"); layer.setVisibility(checker.checked); alert("layer.visibility");