<?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 Buffer on a polyline not working in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-on-a-polyline-not-working/m-p/354662#M32863</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to draw a buffer around a polyline. I have followed the sample found in the website &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/util_buffergraphic.html" rel="nofollow noopener noreferrer" target="_blank"&gt;https://developers.arcgis.com/javascript/jssamples/util_buffergraphic.html&lt;/A&gt;&lt;SPAN&gt;. I have done the following code, but its not working:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
//draw buffer
var params = new BufferParameters();
params.geometries = [line];
params.distances = [5];
params.unit = GeometryService.UNIT_METER;
params.outSpatialReference = map.spatialReference;
geometryService.buffer(params, showCoverageBuffer);
&lt;/PRE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried the same code for a point and it worked perfectly. Any idea what I'm doing wrong?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 16:37:57 GMT</pubDate>
    <dc:creator>ChristianDebono</dc:creator>
    <dc:date>2021-12-11T16:37:57Z</dc:date>
    <item>
      <title>Buffer on a polyline not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-on-a-polyline-not-working/m-p/354662#M32863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to draw a buffer around a polyline. I have followed the sample found in the website &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/util_buffergraphic.html" rel="nofollow noopener noreferrer" target="_blank"&gt;https://developers.arcgis.com/javascript/jssamples/util_buffergraphic.html&lt;/A&gt;&lt;SPAN&gt;. I have done the following code, but its not working:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
//draw buffer
var params = new BufferParameters();
params.geometries = [line];
params.distances = [5];
params.unit = GeometryService.UNIT_METER;
params.outSpatialReference = map.spatialReference;
geometryService.buffer(params, showCoverageBuffer);
&lt;/PRE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried the same code for a point and it worked perfectly. Any idea what I'm doing wrong?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:37:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffer-on-a-polyline-not-working/m-p/354662#M32863</guid>
      <dc:creator>ChristianDebono</dc:creator>
      <dc:date>2021-12-11T16:37:57Z</dc:date>
    </item>
  </channel>
</rss>

