<?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 Dynamic Label Generating in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/dynamic-label-generating/m-p/804541#M5587</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way we can do dynamic labeling. For example I draw a buffer and there are 10 parcels inside the buffer so can I label them as from 1 - 10.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Feb 2019 22:29:35 GMT</pubDate>
    <dc:creator>AnudeepGorantla</dc:creator>
    <dc:date>2019-02-14T22:29:35Z</dc:date>
    <item>
      <title>Dynamic Label Generating</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/dynamic-label-generating/m-p/804541#M5587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way we can do dynamic labeling. For example I draw a buffer and there are 10 parcels inside the buffer so can I label them as from 1 - 10.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2019 22:29:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/dynamic-label-generating/m-p/804541#M5587</guid>
      <dc:creator>AnudeepGorantla</dc:creator>
      <dc:date>2019-02-14T22:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Label Generating</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/dynamic-label-generating/m-p/804542#M5588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anudeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;There is no widget already out that for this but you could develop this.&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Add a DrawBox dijit from the jimu library to your widget for drawing the point.&lt;/LI&gt;&lt;LI&gt;Buffer that point using a Geometry service or the GeometryEngine.&lt;/LI&gt;&lt;LI&gt;Add that buffer graphic to the map and then use the geometry as&amp;nbsp; the query.geometry in a QueryTask.&lt;/LI&gt;&lt;LI&gt;Get the query task results from the layer you are querying and get the polygons.&lt;/LI&gt;&lt;LI&gt;Send the polygons to the geometry service using labelpoints method to get the point that is inside the polygon to use as the labeling point&lt;/LI&gt;&lt;LI&gt;Add a graphics layer (GL) to the map and then add the points from the labelpoints to the GL with a TextSymbol as its symbol.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a sample that you can use as a starting point for the JS API code portion:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jssamples/util_label_point.html" title="https://developers.arcgis.com/javascript/3/jssamples/util_label_point.html"&gt;Geometry Service - Points for labeling | ArcGIS API for JavaScript 3.27&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2019 14:01:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/dynamic-label-generating/m-p/804542#M5588</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-02-15T14:01:26Z</dc:date>
    </item>
  </channel>
</rss>

