コード例 #1
0
        /// <summary>
        /// Initializes a new map
        /// </summary>
        /// <param name="size">Size of map in pixels</param>
        public Map(Size size)
        {
            _mapViewportGuard = new MapViewPortGuard(size, 0d, double.MaxValue);

            if (LicenseManager.UsageMode != LicenseUsageMode.Designtime)
            {
                Factory = GeoAPI.GeometryServiceProvider.Instance.CreateGeometryFactory(_srid);
            }
            _layers = new LayerCollection();
            _layersPerGroup.Add(_layers, new List <ILayer>());
            _backgroundLayers = new LayerCollection();
            _layersPerGroup.Add(_backgroundLayers, new List <ILayer>());
            BackColor             = Color.Transparent;
            _mapTransform         = new Matrix();
            _mapTransformInverted = new Matrix();
            _center = new Point(0, 0);
            _zoom   = 1;

            WireEvents();

            if (_logger.IsDebugEnabled)
            {
                _logger.DebugFormat("Map initialized with size {0},{1}", size.Width, size.Height);
            }
        }
コード例 #2
0
        /// <summary>
        /// Initializes a new map
        /// </summary>
        /// <param name="size">Size of map in pixels</param>
        public Map(Size size)
        {
            _mapViewportGuard = new MapViewPortGuard(size, 0d, Double.MaxValue);

            Factory              = GeoAPI.GeometryServiceProvider.Instance.CreateGeometryFactory(_srid);
            _layers              = new LayerCollection();
            _backgroundLayers    = new LayerCollection();
            _variableLayers      = new VariableLayerCollection(_layers);
            BackColor            = Color.Transparent;
            _mapTransform        = new Matrix();
            MapTransformInverted = new Matrix();
            _center              = new Point(0, 0);
            _zoom = 1;

            WireEvents();

            if (_logger.IsDebugEnabled)
            {
                _logger.DebugFormat("Map initialized with size {0},{1}", size.Width, size.Height);
            }
        }
コード例 #3
0
ファイル: Map.cs プロジェクト: sridhar19091986/sharpmapx
 /// <summary>
 /// Initializes a new map
 /// </summary>
 /// <param name="size">Size of map in pixels</param>
 public Map(Size size)
 {
     _mapViewportGuard = new MapViewPortGuard(size, 0d, Double.MaxValue);
     this.Layers = new List<SharpMap.Layers.ILayer>();
     this.BackColor = Color.White;
 }
コード例 #4
-1
ファイル: Map.cs プロジェクト: lishxi/_SharpMap
        /// <summary>
        /// Initializes a new map
        /// </summary>
        /// <param name="size">Size of map in pixels</param>
        public Map(Size size)
        {
            _mapViewportGuard = new MapViewPortGuard(size, 0d, Double.MaxValue);

            Factory = GeoAPI.GeometryServiceProvider.Instance.CreateGeometryFactory(_srid);
            _layers = new LayerCollection();
            _backgroundLayers = new LayerCollection();
            _variableLayers = new VariableLayerCollection(_layers);
            BackColor = Color.Transparent;
            _mapTransform = new Matrix();
            MapTransformInverted = new Matrix();
            _center = new Point(0, 0);
            _zoom = 1;

            WireEvents();

            if (_logger.IsDebugEnabled)
                _logger.DebugFormat("Map initialized with size {0},{1}", size.Width, size.Height);
        }