private void button6_Click(object sender, EventArgs e) { MapPoint.ApplicationClass mapPoint = new MapPoint.ApplicationClass(); MapPoint.Map map = mapPoint.ActiveMap; MapPoint.FindResults findResults = map.FindPlaceResults(this.textBox1.Text); var a = findResults[0]; }
public MapPointCall(DistEvaluator distEvaluator) { this.mDistEvaluator = distEvaluator; this.mMapPoint = new MapPoint.ApplicationClass(); this.mMapPoint.Application.Units = MapPoint.GeoUnits.geoKm; this.mMapPoint.Visible = false; this.mMapPoint.UserControl = true; //Configure l'application mMap = this.mMapPoint.ActiveMap; mRoute = mMap.ActiveRoute; mMap.Parent.PaneState = MapPoint.GeoPaneState.geoPaneRoutePlanner; }
public MapPointCall(DistEvaluator distEvaluator) { this.mDistEvaluator = distEvaluator; this.mMapPoint = new MapPoint.ApplicationClass(); this.mMapPoint.Application.Units = MapPoint.GeoUnits.geoKm; this.mMapPoint.Visible = false; this.mMapPoint.UserControl = true; //Configure l'application mMap = this.mMapPoint.ActiveMap; mRoute = mMap.ActiveRoute; mMap.Parent.PaneState = MapPoint.GeoPaneState.geoPaneRoutePlanner; }