<?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: Draw a circle with a radius in miles in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/draw-a-circle-with-a-radius-in-miles/m-p/43793#M1020</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Davi, I'm just curious why you are migrating to the 1.3, instead of the latest 2.x release...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Apr 2011 15:42:21 GMT</pubDate>
    <dc:creator>BjornSvensson</dc:creator>
    <dc:date>2011-04-28T15:42:21Z</dc:date>
    <item>
      <title>Draw a circle with a radius in miles</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/draw-a-circle-with-a-radius-in-miles/m-p/43792#M1019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to update my application from ArcIMS to ArcGIS 10 for Flex 1.3. One of the options I have is to click on the map and enter in a number of miles. The system would then draw a circle around the point I clicked on with a radius in miles equaling the number I entered. The system would also return me back all the geographies that was in the circle. Below is the code used from ArcIMS to do such a process. I was looking for the comparable way to do this in ArcGIS 10.0 API for Flex 1.3. Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim mCircle As aims.Circle = New aims.Circle&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mCircle.Distance = radius // number of miles entered in by the user&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mCircle.X = X // latitude of point clicked on the map&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mCircle.Y = Y //longitude of point clicked on the map&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MapLayerIndex = GetLayerIndexByName(mLayers, ZipLayerName) // get the index of the zip code layer we are using&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ZipLayer = mLayers.Item(MapLayerIndex).Clone() //make a copy of the zip code layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ZipLayer.Recordset.Filter.WhereExpression = Where&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ZipLayer.Recordset.Filter.ClearGObjects()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ZipLayer.Recordset.Filter.AddGObject(mCircle) //Add the circle to the cloned layer to fill it&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If (ZipLayer.Recordset.MoveFirst) Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Do&amp;nbsp;&amp;nbsp;&amp;nbsp; //Loop through the new clone layer to get all of the geographies in the layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; flds = ZipLayer.Recordset.Fields&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Not (ZipCodeValues = "") Then ZipCodeValues &amp;amp;= ","&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ZipCodeValues &amp;amp;= flds.FieldValueAsString(FieldIndex)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Loop While ZipLayer.Recordset.MoveNext&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; At this point ZipCodeValues has a comma-delimited string of geographies&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2011 23:07:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/draw-a-circle-with-a-radius-in-miles/m-p/43792#M1019</guid>
      <dc:creator>DaviKucharski</dc:creator>
      <dc:date>2011-04-27T23:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: Draw a circle with a radius in miles</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/draw-a-circle-with-a-radius-in-miles/m-p/43793#M1020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Davi, I'm just curious why you are migrating to the 1.3, instead of the latest 2.x release...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 15:42:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/draw-a-circle-with-a-radius-in-miles/m-p/43793#M1020</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2011-04-28T15:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Draw a circle with a radius in miles</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/draw-a-circle-with-a-radius-in-miles/m-p/43794#M1021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Davi, I'm just curious why you are migrating to the 1.3, instead of the latest 2.x release...&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This application was written by a consulting firm that used both the 1.3 api for flex and some arcims calls. I am trying to convert the arcims processes so get arcims out of our system by august. I don't have time to convert that and upgrade to 2.X. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2011 01:53:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/draw-a-circle-with-a-radius-in-miles/m-p/43794#M1021</guid>
      <dc:creator>DaviKucharski</dc:creator>
      <dc:date>2011-04-29T01:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Draw a circle with a radius in miles</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/draw-a-circle-with-a-radius-in-miles/m-p/43795#M1022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am facing this problem,I think you should read the "aims.Circle" file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I will appreciate you if you can send the VB project to me,my Email is &lt;/SPAN&gt;&lt;A href="mailto:897710242@qq.com"&gt;897710242@qq.com&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 06:12:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/draw-a-circle-with-a-radius-in-miles/m-p/43795#M1022</guid>
      <dc:creator>gaopeng</dc:creator>
      <dc:date>2011-05-16T06:12:28Z</dc:date>
    </item>
  </channel>
</rss>

