public QueryHelper(OpsDashboard.MapWidget mapWidget, IList<OpsDashboard.DataSource> dataSources, IEnumerable<Graphic> sourceFeatures) { //A geometry service contains utility methods that provide access to sophisticated and frequently used geometric operations //such as buffer, calculate areas and lengths for geometry etc geometryService = new GeometryService("http://sampleserver6.arcgisonline.com/ArcGIS/rest/services/Utilities/Geometry/GeometryServer"); MapWidget = mapWidget; SourceFeatures = sourceFeatures; TargetDataSources = dataSources; }
public SelectByLocationToolbar(OpsDashboard.MapWidget mapWidget, IList<OpsDashboard.DataSource> DataSources, FeatureLayer sourceLayer) { InitializeComponent(); MapWidget = mapWidget; TargetDataSources = DataSources; SourceLayer = sourceLayer; DataContext = this; }
private void btnAddSighting_Click(object sender, RoutedEventArgs e) { btnAddSighting.IsEnabled = false; btnSaveSighting.IsEnabled = true; ESRI.ArcGIS.OperationsDashboard.MapWidget mapWidget; DataSource answer=null; foreach (DataSource dS in OperationsDashboard.Instance.DataSources) { if (dS.Name.ToString() == "animal_sightings - animal_sightings") { answer = dS; } } if (answer != null) { mapWidget = (ESRI.ArcGIS.OperationsDashboard.MapWidget)OperationsDashboard.Instance.FindWidget(answer); globalMapWidget = mapWidget; globalFeatureLayer = mapWidget.FindFeatureLayer(answer); if (this.eventMouse == 0) { mapWidget.Map.MouseClick += Map_MouseClick; this.eventMouse = 1; } } }