Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MapGroup"/> class for the specified map.
 /// This will place the group at the root level on the MapFrame.
 /// </summary>
 /// <param name="map">The map to add this group to.</param>
 /// <param name="name">The name to appear in the legend text.</param>
 public MapGroup(IMap map, string name)
     : base(map.MapFrame, map.ProgressHandler)
 {
     Layers     = new MapLayerCollection(map.MapFrame, this, map.ProgressHandler);
     LegendText = name;
     map.Layers.Add(this);
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MapGroup"/> class that sits in a layer list and uses the specified progress handler.
 /// </summary>
 /// <param name="container">the layer list.</param>
 /// <param name="frame">The map frame.</param>
 /// <param name="progressHandler">the progress handler.</param>
 public MapGroup(ICollection <IMapLayer> container, IMapFrame frame, IProgressHandler progressHandler)
     : base(frame, progressHandler)
 {
     Layers = new MapLayerCollection(frame, this, progressHandler);
     container.Add(this);
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MapGroup"/> class.
 /// </summary>
 public MapGroup()
 {
     Layers = new MapLayerCollection();
 }
Exemple #4
0
 public GDIMapFrame()
 {
     Layers = new MapLayerCollection();
 }
Exemple #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MapGroup"/> class.
 /// </summary>
 public MapGroup()
 {
     Layers = new MapLayerCollection(null, this, null);
 }
Exemple #6
0
        /// <summary>
        /// Creates the default map frame, allowing the control that it belongs to to be set later.
        /// </summary>
        public MapFrame()
        {
            base.ViewExtents = new Extent(-180, 180, -90, 90);
            if (Data.DataSet.ProjectionSupported())
            {
                Projection = KnownCoordinateSystems.Geographic.World.WGS1984;
            }
            _backBuffer = CreateBuffer();
            Layers = new MapLayerCollection(this);
           
            base.IsSelected = true;  // by default allow the map frame to be selected

            //add properties context menu item
            ContextMenuItems.Add(new SymbologyMenuItem(MessageStrings.MapFrame_Projection, Projection_Click));
        }