private void RefreshViewport() { CoordEnvelope env = _mosaicFileProvider.Envelope; _simpleMapControl.ToViewport(new Core.DrawEngine.CoordEnvelope(env.MinX, env.MaxX, env.MinY, env.MaxY)); _simpleMapControl.Render(); }
private void RefreshViewport() { PrjEnvelope prjEnv = _mosaicProjectionFileProvider.ExtendEnvelope; if (prjEnv != null) { _simpleMapControl.ToViewport(new Core.DrawEngine.CoordEnvelope(prjEnv.MinX, prjEnv.MaxX, prjEnv.MinY, prjEnv.MaxY)); } _simpleMapControl.Render(); }