<?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: Buffer a circle in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-a-circle/m-p/272449#M25127</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you checked out &lt;A href="https://developers.arcgis.com/javascript/jssamples/util_buffergraphic.html"&gt;this sample&lt;/A&gt;?&amp;nbsp; Go down to the html and change LINE/POLYLINE/etc to CIRCLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14187501664561617 jive_text_macro" jivemacro_uid="_14187501664561617"&gt;&lt;P&gt;&lt;SPAN class="tag" style="color: #000088;"&gt;&amp;lt;button&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="atn" style="color: #660066;"&gt;data-dojo-type&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="atv" style="color: #999999;"&gt;"dijit.form.Button"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="atn" style="color: #660066;"&gt;onclick&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="atv" style="color: #999999;"&gt;"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;app&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;tb&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;activate&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;esri&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;toolbars&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #000000;"&gt;Draw&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;CIRCLE&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;app&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;map&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;hideZoomSlider&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;();&lt;/SPAN&gt;&lt;SPAN class="atv" style="color: #999999;"&gt;"&lt;/SPAN&gt;&lt;SPAN class="tag" style="color: #000088;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;Line&lt;/SPAN&gt;&lt;SPAN class="tag" style="color: #000088;"&gt;&amp;lt;/button&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will allow you to draw a circle and apply a buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Dec 2014 17:16:24 GMT</pubDate>
    <dc:creator>StevenGraf1</dc:creator>
    <dc:date>2014-12-16T17:16:24Z</dc:date>
    <item>
      <title>Buffer a circle</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-a-circle/m-p/272448#M25126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What's the simplest way to create a buffer round a circle. The current application creates a square buffer and I want it to reflect the circle shape. I've tried using getExtent but it just draws a square:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;if (geometry.type === "polygon") {&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;var searchExtent = geometry.getExtent();&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var biggerExtent = new esri.geometry.Extent(searchExtent.getExtent().expand(1));&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wkid : 27700;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;I also tried getCenter:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;if (geometry.type === "polygon") {&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;var searchExtent = geometry.getExtent();&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;var centerPoint = newGeometry.getCenter();&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;var radius = newGeometry.getExtent().getWidth()/2;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;var circleGeometry = new Circle(center, {"radius": radius});&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wkid : 27700;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;which returns an error. Can anyone help please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 17:08:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-a-circle/m-p/272448#M25126</guid>
      <dc:creator>OliviaGill</dc:creator>
      <dc:date>2014-12-16T17:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer a circle</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-a-circle/m-p/272449#M25127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you checked out &lt;A href="https://developers.arcgis.com/javascript/jssamples/util_buffergraphic.html"&gt;this sample&lt;/A&gt;?&amp;nbsp; Go down to the html and change LINE/POLYLINE/etc to CIRCLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14187501664561617 jive_text_macro" jivemacro_uid="_14187501664561617"&gt;&lt;P&gt;&lt;SPAN class="tag" style="color: #000088;"&gt;&amp;lt;button&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="atn" style="color: #660066;"&gt;data-dojo-type&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="atv" style="color: #999999;"&gt;"dijit.form.Button"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="atn" style="color: #660066;"&gt;onclick&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="atv" style="color: #999999;"&gt;"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;app&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;tb&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;activate&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;esri&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;toolbars&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #000000;"&gt;Draw&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;CIRCLE&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;app&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;map&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;hideZoomSlider&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;();&lt;/SPAN&gt;&lt;SPAN class="atv" style="color: #999999;"&gt;"&lt;/SPAN&gt;&lt;SPAN class="tag" style="color: #000088;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;Line&lt;/SPAN&gt;&lt;SPAN class="tag" style="color: #000088;"&gt;&amp;lt;/button&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will allow you to draw a circle and apply a buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 17:16:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-a-circle/m-p/272449#M25127</guid>
      <dc:creator>StevenGraf1</dc:creator>
      <dc:date>2014-12-16T17:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer a circle</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-a-circle/m-p/272450#M25128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure why you're code errors out, but I modified this sample to work. It buffers or a point or the center of a polygon without using the geometry service.&lt;/P&gt;&lt;P&gt;&lt;A href="http://jsbin.com/mukixa/1/edit?js,output" title="http://jsbin.com/mukixa/1/edit?js,output"&gt;JS Bin - Collaborative JavaScript Debugging&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have some sample code of the issue, it may help. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 18:19:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-a-circle/m-p/272450#M25128</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2014-12-16T18:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer a circle</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-a-circle/m-p/272451#M25129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rene&lt;/P&gt;&lt;P&gt;I've included the script here that I started with. I've tried the suggestions this morning but still finding it rather confusing - will stick at it and see what I can come up with - any help appreciated. Sample code here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://jsbin.com/qoguporiva/1/edit" title="http://jsbin.com/qoguporiva/1/edit"&gt;JS Bin - Collaborative JavaScript Debugging&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 11:12:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-a-circle/m-p/272451#M25129</guid>
      <dc:creator>OliviaGill</dc:creator>
      <dc:date>2014-12-17T11:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer a circle</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-a-circle/m-p/272452#M25130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you just want to add a circle (instand of a 'real' buffer), you could:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var firstCircle = new Circle(center, {blah});&lt;/P&gt;&lt;P&gt;var secondCircle = new Circle(firstCircle.center, {"radius": (firstCircle.radius +/- whatever)});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to create a buffer, I would recommend creating it via BufferParameters and GeometryService.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 18:39:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-a-circle/m-p/272452#M25130</guid>
      <dc:creator>YungKaiChin</dc:creator>
      <dc:date>2014-12-17T18:39:19Z</dc:date>
    </item>
  </channel>
</rss>

