Developer Guide
Page 145
...Description: Turns raster layer on or off. (called // with 'Off', make mapRastLayer visible if (CurrentScale < 20000 && type == 'On') { mapRastLayer.setVisibility(true); mapRastLayer.setRebuild(true); if (CurrentScale < 20000 && type == 'Off') { mapRastLayer.setVisibility(false); if (map.isBusy() == false) { var CurrentScale ...than 1:20,000 and if function was called // with 'On', make mapRastLayer invisible. map.refresh(); } } // If Autodesk MapGuide Viewer is busy, don't do the stuff above ; Municipal Application Example Code (continued) // Refresh the map map.refresh...
...Description: Turns raster layer on or off. (called // with 'Off', make mapRastLayer visible if (CurrentScale < 20000 && type == 'On') { mapRastLayer.setVisibility(true); mapRastLayer.setRebuild(true); if (CurrentScale < 20000 && type == 'Off') { mapRastLayer.setVisibility(false); if (map.isBusy() == false) { var CurrentScale ...than 1:20,000 and if function was called // with 'On', make mapRastLayer invisible. map.refresh(); } } // If Autodesk MapGuide Viewer is busy, don't do the stuff above ; Municipal Application Example Code (continued) // Refresh the map map.refresh...