public void Dispose() { viewControl.GetCachePackage().ClearSchedulers(); UIPositionManager uIPositionManager = viewControl.GetUIPositionManager(); uIPositionManager.SetPositionMemory(null); uIPositionManager.GetSMPos().setPosition(new LatLonZoom(0.0, 0.0, 0)); uIPositionManager.switchFree(); viewControl.GetSMViewerControl().ClearLayers(); viewControl.GetSMViewerControl().SetSnapViewStore(null); viewControl.GetVEViewerControl().SetSnapViewStore(null); viewControl.SetOptionsPanelVisibility(OptionsPanelVisibility.Nothing); viewControl.GetSourceMapInfoPanel().Configure(null); viewControl.GetSourceMapInfoPanel().Enabled = false; viewControl.GetTransparencyPanel().Configure(null, null); viewControl.GetTransparencyPanel().Enabled = false; viewControl.setDisplayedRegistration(null); sourceMap = null; }
public void Dispose() { viewControl.GetCachePackage().ClearSchedulers(); UIPositionManager uIPositionManager = viewControl.GetUIPositionManager(); uIPositionManager.SetPositionMemory(null); uIPositionManager.GetSMPos().setPosition(new LatLonZoom(0.0, 0.0, 0)); uIPositionManager.switchFree(); viewControl.GetSMViewerControl().ClearLayers(); viewControl.SetOptionsPanelVisibility(OptionsPanelVisibility.Nothing); viewControl.GetLegendPanel().Configure(null, null); viewControl.setDisplayedRegistration(null); legend = null; }