<?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 draw circles on the graphics layer in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/draw-circles-on-the-graphics-layer/m-p/14411#M50</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm new to ArcGIS Runtime. Just looking for a solution to programmatically draw circles on the map within the graphics layer, having a file with center points and the circle radius.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Feb 2013 16:09:57 GMT</pubDate>
    <dc:creator>RussellEgypt</dc:creator>
    <dc:date>2013-02-07T16:09:57Z</dc:date>
    <item>
      <title>draw circles on the graphics layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/draw-circles-on-the-graphics-layer/m-p/14411#M50</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm new to ArcGIS Runtime. Just looking for a solution to programmatically draw circles on the map within the graphics layer, having a file with center points and the circle radius.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 16:09:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/draw-circles-on-the-graphics-layer/m-p/14411#M50</guid>
      <dc:creator>RussellEgypt</dc:creator>
      <dc:date>2013-02-07T16:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: draw circles on the graphics layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/draw-circles-on-the-graphics-layer/m-p/14412#M51</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Since you have the center and radius, you can derive the points along the circumference and produce a polygon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
private ESRI.ArcGIS.Client.Geometry.Polygon DrawCircle(ESRI.ArcGIS.Client.Geometry.MapPoint center, double radius, int pointsCount = 360) {
 ESRI.ArcGIS.Client.Geometry.Polygon p = new ESRI.ArcGIS.Client.Geometry.Polygon();
 ESRI.ArcGIS.Client.Geometry.PointCollection pcol = new ESRI.ArcGIS.Client.Geometry.PointCollection();
 double slice = 2 * Math.PI / pointsCount;
 for (int i = 0; i &amp;lt;= pointsCount; i++) {
&amp;nbsp; double rad = slice * i;
&amp;nbsp; double px = center.X + radius * Math.Cos(rad);
&amp;nbsp; double py = center.Y + radius * Math.Sin(rad);
&amp;nbsp; pcol.Add(new ESRI.ArcGIS.Client.Geometry.MapPoint(px, py));
 }
 p.Rings.Add(pcol);
 return p;
}
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:35:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/draw-circles-on-the-graphics-layer/m-p/14412#M51</guid>
      <dc:creator>norie</dc:creator>
      <dc:date>2021-12-10T20:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: draw circles on the graphics layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/draw-circles-on-the-graphics-layer/m-p/14413#M52</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here's a slightly different approach, which is done by subclassing Polygon:&lt;/SPAN&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=213&amp;amp;f=2455&amp;amp;t=289039#898885"&gt;http://forums.esri.com/Thread.asp?c=213&amp;amp;f=2455&amp;amp;t=289039#898885&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically allows you to write :&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; var polygon = new Circle() { Center=new MapPoint(-117,34), Radius = 2 };&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 15:54:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/draw-circles-on-the-graphics-layer/m-p/14413#M52</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2013-02-08T15:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: draw circles on the graphics layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/draw-circles-on-the-graphics-layer/m-p/14414#M53</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thankyou for the response and your working solutions!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've used Aaron Noriega solution!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2013 04:50:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/draw-circles-on-the-graphics-layer/m-p/14414#M53</guid>
      <dc:creator>RussellEgypt</dc:creator>
      <dc:date>2013-02-11T04:50:14Z</dc:date>
    </item>
  </channel>
</rss>

