示例#1
0
        protected virtual void CleanUpRequest()
        {
            UnwireEvents();

            if (_renderer != null)
            {
                _renderer.Dispose();
            }
            _renderer = null;

            if (MapView != null)
            {
                MapView.Map = null;
                MapView.Dispose();
            }
            MapView = null;

            if (Map != null)
            {
                Map.Dispose();
            }

            Map = null;

            Context   = null;
            _config   = null;
            _renderer = null;
        }
示例#2
0
 private void EnsureRenderer()
 {
     if (_renderer == null)
     {
         _renderer = CreateMapRenderer();
     }
 }
 public void ConfigureRenderer(IMapRequestConfig requestConfig, IWebMapRenderer renderer)
 {
     ConfigureRenderer(requestConfig, (GdiImageRenderer)renderer);
 }
        protected virtual void CleanUpRequest()
        {
            UnwireEvents();

            if (_renderer != null)
            {
                _renderer.Dispose();
            }
            _renderer = null;

            if (MapView != null)
            {
                MapView.Map = null;
                MapView.Dispose();
            }
            MapView = null;

            if (Map != null)
            {
                Map.Dispose();
            }

            Map = null;

            Context = null;
            _config = null;
            _renderer = null;
        }
 private void EnsureRenderer()
 {
     if (_renderer == null)
     {
         _renderer = CreateMapRenderer();
     }
 }