<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to Fly To? in ArcGIS Explorer Desktop Questions</title>
    <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/how-to-fly-to/m-p/340110#M2078</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Seems as this code is doing the job:&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp; 

&amp;nbsp; private void button1_Click_1(object sender, EventArgs e)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; Target target = TargetTracker.GetFirstTarget();


&amp;nbsp;&amp;nbsp; Geometry geom = target.MapGraphic.Geometry;

&amp;nbsp;&amp;nbsp; double cAltitude = ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.Altitude;

&amp;nbsp;&amp;nbsp; ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.ZoomTo(geom, cAltitude);

&amp;nbsp; }
&lt;/PRE&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;The above works, but for each button click it does zoom in a little. Consecutive clicks changes the altitude continuously (small, but noticeable changes). May this be a bug in the ZoomTo function?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;totte&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 16:05:26 GMT</pubDate>
    <dc:creator>MatsKarlsson</dc:creator>
    <dc:date>2021-12-11T16:05:26Z</dc:date>
    <item>
      <title>How to Fly To?</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/how-to-fly-to/m-p/340108#M2076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a simple function like FlyTo(x,y); somewhere? Or center the map?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Totte&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Oct 2010 18:31:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/how-to-fly-to/m-p/340108#M2076</guid>
      <dc:creator>MatsKarlsson</dc:creator>
      <dc:date>2010-10-26T18:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to Fly To?</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/how-to-fly-to/m-p/340109#M2077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Seems as this code is doing the job:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp; 

&amp;nbsp; private void button1_Click_1(object sender, EventArgs e)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; Target target = TargetTracker.GetFirstTarget();


&amp;nbsp;&amp;nbsp; Geometry geom = target.MapGraphic.Geometry;

&amp;nbsp;&amp;nbsp; double cAltitude = ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.Altitude;

&amp;nbsp;&amp;nbsp; ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.ZoomTo(geom, cAltitude);

&amp;nbsp; }
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;where Target is my class having a Graphic member.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Totte&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;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.&lt;BR /&gt;&lt;BR /&gt;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).&lt;BR /&gt;&lt;BR /&gt;Is there a simple function like FlyTo(x,y); somewhere? Or center the map?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Totte&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:05:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/how-to-fly-to/m-p/340109#M2077</guid>
      <dc:creator>MatsKarlsson</dc:creator>
      <dc:date>2021-12-11T16:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to Fly To?</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/how-to-fly-to/m-p/340110#M2078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Seems as this code is doing the job:&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp; 

&amp;nbsp; private void button1_Click_1(object sender, EventArgs e)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; Target target = TargetTracker.GetFirstTarget();


&amp;nbsp;&amp;nbsp; Geometry geom = target.MapGraphic.Geometry;

&amp;nbsp;&amp;nbsp; double cAltitude = ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.Altitude;

&amp;nbsp;&amp;nbsp; ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.ZoomTo(geom, cAltitude);

&amp;nbsp; }
&lt;/PRE&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;The above works, but for each button click it does zoom in a little. Consecutive clicks changes the altitude continuously (small, but noticeable changes). May this be a bug in the ZoomTo function?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;totte&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:05:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/how-to-fly-to/m-p/340110#M2078</guid>
      <dc:creator>MatsKarlsson</dc:creator>
      <dc:date>2021-12-11T16:05:26Z</dc:date>
    </item>
  </channel>
</rss>

