public void ApplyMap(IMap map) { _spatialReference = map.MapArguments.TargetSpatialReference; //Log.WriterWarning(_spatialReference.ToWKTString()); BuildProjectionTransform(); _mapRuntime.Apply(map); }
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; }
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); } }