Пример #1
0
 public void ApplyMap(IMap map)
 {
     _spatialReference = map.MapArguments.TargetSpatialReference;
     //Log.WriterWarning(_spatialReference.ToWKTString());
     BuildProjectionTransform();
     _mapRuntime.Apply(map);
 }
Пример #2
0
 public void Apply(string mcdfile)
 {
     if (_mapRuntime == null || _isDisposed)
     {
         CreateMapRuntime();
     }
     if (mcdfile != null && File.Exists(mcdfile))
     {
         _mapRuntime.Apply(MapFactory.LoadMapFrom(mcdfile));
     }
     else
     {
         _mapRuntime.Apply(new Map());
     }
     _mapRuntime.RuntimeExchanger.AutoRefreshWhileFinishOneGrid = false;
 }
Пример #3
0
 public void Apply(IMap map)
 {
     _spatialReference = map.MapArguments.TargetSpatialReference;
     BuildProjectionTransform(_spatialReference);
     _vectorMapRuntime.Apply(map);
     if (map.MapArguments != null && map.MapArguments.Extent != null)
     {
         //SetViewport(map.MapArguments.Extent);
     }
 }