Seems as this code is doing the job: private void button1_Click_1(object sender, EventArgs e) { Target target = TargetTracker.GetFirstTarget(); Geometry geom = target.MapGraphic.Geometry; double cAltitude = ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.Altitude; ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.ZoomTo(geom, cAltitude); }
private void button1_Click_1(object sender, EventArgs e) { Target target = TargetTracker.GetFirstTarget(); Geometry geom = target.MapGraphic.Geometry; double cAltitude = ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.Altitude; ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.ZoomTo(geom, cAltitude); }
I am a beginner using ArcGISExplorer SDK, and are trying to create a simple plugin that, when, a button is pressed 'flys to' another location, specified by x and y.I believe I have to use ActiveMapDisplay somehow. The ZoomTo function will allow me to 'fly' to another location, but it seems I will have to specify the extent of the view as well (which I don't want to change).Is there a simple function like FlyTo(x,y); somewhere? Or center the map?Regards,Totte
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.