public void RaiseProjectOpenedOrCreated(DotSpatial.Controls.IMap Map, IProject project) { if (ProjectOpenedOrCreated != null) { ProjectOpenedOrCreated(Map, project); } }
public override void Attach(DotSpatial.Controls.IMap map, string directory) { foreach (var model in Children.Values) { model.Attach(map, directory); } }
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; } }
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; }
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); } } }
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; }
public override void Attach(DotSpatial.Controls.IMap map, string directory) { }
public override void Attach(DotSpatial.Controls.IMap map, string directory) { this.Feature = Parent.Feature; this.FeatureLayer = Parent.FeatureLayer; }
public override void Attach(DotSpatial.Controls.IMap map, string directory) { this.Feature = Owner.Grid.FeatureSet; this.FeatureLayer = Owner.Grid.FeatureLayer; }
public override void Attach(DotSpatial.Controls.IMap map, string directory) { throw new NotImplementedException(); }
public override void Attach(DotSpatial.Controls.IMap map, string directory) { this.Feature = this._SFRPackage.Feature; this.FeatureLayer = this._SFRPackage.FeatureLayer; }