<?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 Customizing the Measurement tool (Javascript) in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customizing-the-measurement-tool-javascript/m-p/4508#M430</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need a tool much like the Measurement tool, which &lt;/P&gt;&lt;P&gt;1) allows user to draw a polygon&lt;/P&gt;&lt;P&gt;2) depending on which feature layers are visible on the map&lt;/P&gt;&lt;P&gt;3) query the feature layers with custom sql to return a count (sum)&lt;/P&gt;&lt;P&gt;4) display this result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems like if can:&lt;/P&gt;&lt;P&gt;1) Modify the Measurement tool to add an additional unit of measure&lt;/P&gt;&lt;P&gt;2) Intercept the measure event to reroute it as a sql against a featurelayer or featurelayers&lt;/P&gt;&lt;P&gt;3) When the result of query returns, use the value(s) to set the display on the Measurement tool&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible with the existing API?&lt;/P&gt;&lt;P&gt;If not is there a way to get access to the widget source code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Sep 2014 20:04:08 GMT</pubDate>
    <dc:creator>WorkPlayce</dc:creator>
    <dc:date>2014-09-11T20:04:08Z</dc:date>
    <item>
      <title>Customizing the Measurement tool (Javascript)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customizing-the-measurement-tool-javascript/m-p/4508#M430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need a tool much like the Measurement tool, which &lt;/P&gt;&lt;P&gt;1) allows user to draw a polygon&lt;/P&gt;&lt;P&gt;2) depending on which feature layers are visible on the map&lt;/P&gt;&lt;P&gt;3) query the feature layers with custom sql to return a count (sum)&lt;/P&gt;&lt;P&gt;4) display this result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems like if can:&lt;/P&gt;&lt;P&gt;1) Modify the Measurement tool to add an additional unit of measure&lt;/P&gt;&lt;P&gt;2) Intercept the measure event to reroute it as a sql against a featurelayer or featurelayers&lt;/P&gt;&lt;P&gt;3) When the result of query returns, use the value(s) to set the display on the Measurement tool&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible with the existing API?&lt;/P&gt;&lt;P&gt;If not is there a way to get access to the widget source code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 20:04:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customizing-the-measurement-tool-javascript/m-p/4508#M430</guid>
      <dc:creator>WorkPlayce</dc:creator>
      <dc:date>2014-09-11T20:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing the Measurement tool (Javascript)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customizing-the-measurement-tool-javascript/m-p/4509#M431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Work,&lt;/P&gt;&lt;P&gt;I don't know your exact use case, but you can achieve this without extending measurement widget. Consider below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Draw toolbar to capture user polygon. &lt;A href="https://developers.arcgis.com/javascript/jsapi/draw-amd.html" title="https://developers.arcgis.com/javascript/jsapi/draw-amd.html"&gt;draw-amd | API Reference | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Get Visible layer Ids &lt;A href="https://developers.arcgis.com/javascript/jsapi/arcgisdynamicmapservicelayer-amd.html#visiblelayers" title="https://developers.arcgis.com/javascript/jsapi/arcgisdynamicmapservicelayer-amd.html#visiblelayers"&gt;arcgisdynamicmapservicelayer-amd | API Reference | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Use Query for count in query task to get your count &lt;A href="https://developers.arcgis.com/javascript/jsapi/querytask-amd.html#executeforcount" title="https://developers.arcgis.com/javascript/jsapi/querytask-amd.html#executeforcount"&gt;querytask-amd | API Reference | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 04:37:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customizing-the-measurement-tool-javascript/m-p/4509#M431</guid>
      <dc:creator>RiyasDeen</dc:creator>
      <dc:date>2014-09-12T04:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing the Measurement tool (Javascript)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customizing-the-measurement-tool-javascript/m-p/4510#M432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Requirements have changed.  I need to create a Query task for selection.&lt;/P&gt;&lt;P&gt;I have done this and the query returns with list of selected objects, but the features are not being highlighted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ArcGIS Javascript API says:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selects features from the FeatureLayer. Layer properties like layer definition and time definition are honored. The selection method defines how query results are passed to the selection. The feature layer will highlight the current selection if a selection symbol has been defined. Whenever possible, the feature layer will perform the query operation on the client (browser).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I need to define selection symbols on the featurelayer?|&lt;/P&gt;&lt;P&gt;Do you have any code snippets?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Sep 2014 21:14:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customizing-the-measurement-tool-javascript/m-p/4510#M432</guid>
      <dc:creator>WorkPlayce</dc:creator>
      <dc:date>2014-09-13T21:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing the Measurement tool (Javascript)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customizing-the-measurement-tool-javascript/m-p/4511#M433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Work,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes you have to set selection symbol. &lt;STRONG&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;featureLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;setSelectionSymbol&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;symbol&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;Check out this sample. &lt;A href="https://developers.arcgis.com/javascript/jssamples/query_buffer.html" title="https://developers.arcgis.com/javascript/jssamples/query_buffer.html"&gt;Select with Feature Layer | ArcGIS API for JavaScript&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 01:31:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customizing-the-measurement-tool-javascript/m-p/4511#M433</guid>
      <dc:creator>RiyasDeen</dc:creator>
      <dc:date>2014-09-15T01:31:25Z</dc:date>
    </item>
  </channel>
</rss>

