예제 #1
0
        private void RefreshViewport()
        {
            CoordEnvelope env = _mosaicFileProvider.Envelope;

            _simpleMapControl.ToViewport(new Core.DrawEngine.CoordEnvelope(env.MinX, env.MaxX, env.MinY, env.MaxY));
            _simpleMapControl.Render();
        }
예제 #2
0
        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();
        }