Пример #1
0
 public void RaiseProjectOpenedOrCreated(DotSpatial.Controls.IMap Map, IProject project)
 {
     if (ProjectOpenedOrCreated != null)
     {
         ProjectOpenedOrCreated(Map, project);
     }
 }
Пример #2
0
 public override void Attach(DotSpatial.Controls.IMap map, string directory)
 {
     foreach (var model in Children.Values)
     {
         model.Attach(map, directory);
     }
 }
Пример #3
0
        public BasemapLayers([Import] IMapWindow mapWindow, [Import] WebMap.IBasemapWindow basemapWin, [Import] Core.Window.IInteractiveWindowContainer mainWindow)
        {
            this.mapWindow  = mapWindow;
            this.mainWindow = mainWindow;

            this.comboItems = new List <string>();

            IsChecked = false;

            this.basemapWin = basemapWin;

            MapWindow mw = mapWindow as MapWindow;

            if (mw != null)
            {
                this.mainMap = mw.GetMap();
                this.mainMap.MapFrame.ViewExtentsChanged += MapFrame_ViewExtentsChanged;

                mw.MapMouseMove += mainMapWin_MapMouseMove;

                this.webMap = new WebMap.Util(this.basemapWin.GetMap());
                this.webMap.AddBasemapWindow(this.basemapWin);
                this.webMap.AddServiceProvidersToComboItem(this);
            }
            else
            {
                this.webMap  = null;
                this.mainMap = null;
            }
        }
Пример #4
0
 public NewPointLayer(DotSpatial.Controls.IMap map, DotSpatial.Projections.ProjectionInfo projection, string filePath, ISnapSettings snapSettings)
     : base(map)
 {
     this.map          = map;
     this.projection   = projection;
     this.filePath     = filePath;
     this.snapSettings = snapSettings;
     DoSnapping        = this.snapSettings.Snap;
 }
Пример #5
0
 public override void Attach(DotSpatial.Controls.IMap map, string directory)
 {
     foreach (var pck in Packages.Values)
     {
         pck.Attach(map, directory);
         foreach (var ch in pck.Children)
         {
             ch.Attach(map, directory);
         }
     }
 }
Пример #6
0
 public override void Attach(DotSpatial.Controls.IMap map, string directory)
 {
     foreach (var pck in Packages.Values)
     {
         if (pck.State == ModelObjectState.Ready)
         {
             pck.Attach(map, directory);
             foreach (var ch in pck.Children)
             {
                 ch.Attach(map, directory);
             }
         }
     }
     Grid.Projection = Grid.FeatureLayer.Projection;
 }
Пример #7
0
 public override void Attach(DotSpatial.Controls.IMap map, string directory)
 {
 }
Пример #8
0
 public override void Attach(DotSpatial.Controls.IMap map, string directory)
 {
     this.Feature      = Parent.Feature;
     this.FeatureLayer = Parent.FeatureLayer;
 }
Пример #9
0
 public override void Attach(DotSpatial.Controls.IMap map, string directory)
 {
     this.Feature      = Owner.Grid.FeatureSet;
     this.FeatureLayer = Owner.Grid.FeatureLayer;
 }
Пример #10
0
 public override void Attach(DotSpatial.Controls.IMap map, string directory)
 {
     throw new NotImplementedException();
 }
Пример #11
0
 public override void Attach(DotSpatial.Controls.IMap map, string directory)
 {
     this.Feature      = this._SFRPackage.Feature;
     this.FeatureLayer = this._SFRPackage.FeatureLayer;
 }