<?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: Highlight features on a featurelayer after query in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-features-on-a-featurelayer-after-query/m-p/363234#M33678</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using API 4.2 though&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jan 2017 20:52:15 GMT</pubDate>
    <dc:creator>EvonFranklin</dc:creator>
    <dc:date>2017-01-12T20:52:15Z</dc:date>
    <item>
      <title>Highlight features on a featurelayer after query</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-features-on-a-featurelayer-after-query/m-p/363232#M33676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I highlight features on a featurelayer after query is run?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 20:41:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-features-on-a-featurelayer-after-query/m-p/363232#M33676</guid>
      <dc:creator>EvonFranklin</dc:creator>
      <dc:date>2017-01-12T20:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight features on a featurelayer after query</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-features-on-a-featurelayer-after-query/m-p/363233#M33677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use featurelayer.selectFeatures&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As in this sample:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jssamples/fl_selection.html" title="https://developers.arcgis.com/javascript/3/jssamples/fl_selection.html"&gt;Select features within a two minute drive time | ArcGIS API for JavaScript 3.19&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 20:49:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-features-on-a-featurelayer-after-query/m-p/363233#M33677</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-01-12T20:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight features on a featurelayer after query</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-features-on-a-featurelayer-after-query/m-p/363234#M33678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using API 4.2 though&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 20:52:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-features-on-a-featurelayer-after-query/m-p/363234#M33678</guid>
      <dc:creator>EvonFranklin</dc:creator>
      <dc:date>2017-01-12T20:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight features on a featurelayer after query</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-features-on-a-featurelayer-after-query/m-p/363235#M33679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Evon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sorry I did not see any tags or text saying that. Currently there is no selectFeatures method on FeatureLayer so the option you have is to add a graphic based on the geometry result from the query with your desired symbology assigned.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 21:08:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-features-on-a-featurelayer-after-query/m-p/363235#M33679</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-01-12T21:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight features on a featurelayer after query</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-features-on-a-featurelayer-after-query/m-p/363236#M33680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok I have begun looking into adding graphics, but after adding graphics to the "map.graphics.add(graphic)" I see no changes being reflected on the map. I check the console for the geometry and it seems to have data present for each graphic but I am not sure if they are being displayed elsewhere or there is another issue preventing the graphics from being displayed. The query is successful and returns 63 results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 21:12:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-features-on-a-featurelayer-after-query/m-p/363236#M33680</guid>
      <dc:creator>EvonFranklin</dc:creator>
      <dc:date>2017-01-12T21:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight features on a featurelayer after query</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-features-on-a-featurelayer-after-query/m-p/363237#M33681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Evon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I personally would create my own graphicslayer. You need to ensure that your returned geometry is in the map wkid and that you are creating new graphic object not just adding the ones returned from the Query.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 21:33:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-features-on-a-featurelayer-after-query/m-p/363237#M33681</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-01-12T21:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight features on a featurelayer after query</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-features-on-a-featurelayer-after-query/m-p/363238#M33682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will continue to do some testing with this, is there a sample you could point me to? I am currently creating a new graphic adding the needed attributes then adding it to a new graphics layer I created and added to the map via "map.add(grphLayer);"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 21:37:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-features-on-a-featurelayer-after-query/m-p/363238#M33682</guid>
      <dc:creator>EvonFranklin</dc:creator>
      <dc:date>2017-01-12T21:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight features on a featurelayer after query</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-features-on-a-featurelayer-after-query/m-p/363239#M33683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Evon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;There is this sample:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=get-started-graphics" title="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=get-started-graphics"&gt;ArcGIS API for JavaScript Sandbox&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But not specific to adding from a query result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 21:45:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-features-on-a-featurelayer-after-query/m-p/363239#M33683</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-01-12T21:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight features on a featurelayer after query</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-features-on-a-featurelayer-after-query/m-p/363240#M33684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your tips and advice, I will continue to experiment with this, I realize now that 4.x is really new so many things are left out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 21:49:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-features-on-a-featurelayer-after-query/m-p/363240#M33684</guid>
      <dc:creator>EvonFranklin</dc:creator>
      <dc:date>2017-01-12T21:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight features on a featurelayer after query</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-features-on-a-featurelayer-after-query/m-p/363241#M33685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried the sample code and it does work, so there may be an issue with the geometry being returned from my service however how do I then debug my geometry to see what it shape it returns or check if it is a valid shape? I have logged the geometry and there are values present.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 16:20:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-features-on-a-featurelayer-after-query/m-p/363241#M33685</guid>
      <dc:creator>EvonFranklin</dc:creator>
      <dc:date>2017-01-13T16:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight features on a featurelayer after query</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-features-on-a-featurelayer-after-query/m-p/363242#M33686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Evon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Are you setting the Query.outSpatialReference?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 16:27:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-features-on-a-featurelayer-after-query/m-p/363242#M33686</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-01-13T16:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight features on a featurelayer after query</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-features-on-a-featurelayer-after-query/m-p/363243#M33687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the query this is what I have&amp;nbsp;&lt;/P&gt;&lt;P&gt;var queryTask = new QueryTask({&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;url:urlLink&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;});&lt;BR /&gt; var query = new Query();&lt;BR /&gt; var geometry = null;&lt;BR /&gt; query.returnGeometry = true;&lt;BR /&gt; query.outFields = ["*"];&lt;BR /&gt; query.where = "CONST_NAME LIKE '%"+searchString+"%'";&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 16:32:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-features-on-a-featurelayer-after-query/m-p/363243#M33687</guid>
      <dc:creator>EvonFranklin</dc:creator>
      <dc:date>2017-01-13T16:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight features on a featurelayer after query</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-features-on-a-featurelayer-after-query/m-p/363244#M33688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to set the&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;outSpatialReference to the views spatialReference&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 16:45:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-features-on-a-featurelayer-after-query/m-p/363244#M33688</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-01-13T16:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight features on a featurelayer after query</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-features-on-a-featurelayer-after-query/m-p/363245#M33689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Should the URL for the QueryTask be to a&amp;nbsp;&lt;/P&gt;&lt;P&gt;"..../FeatureServer/1" or "..../MapServer/1" ending&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 16:53:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-features-on-a-featurelayer-after-query/m-p/363245#M33689</guid>
      <dc:creator>EvonFranklin</dc:creator>
      <dc:date>2017-01-13T16:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight features on a featurelayer after query</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-features-on-a-featurelayer-after-query/m-p/363246#M33690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;either is fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 17:04:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-features-on-a-featurelayer-after-query/m-p/363246#M33690</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-01-13T17:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight features on a featurelayer after query</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-features-on-a-featurelayer-after-query/m-p/363247#M33691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok I changed it to FeatureServer and added the spatialRef and it seems to be working now, however it did not show an error in the console which worries me as these silent errors are hard to debug. Thanks much for your help &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 17:08:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-features-on-a-featurelayer-after-query/m-p/363247#M33691</guid>
      <dc:creator>EvonFranklin</dc:creator>
      <dc:date>2017-01-13T17:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight features on a featurelayer after query</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-features-on-a-featurelayer-after-query/m-p/363248#M33692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Evon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;It really was not an error at all the graphic were just being added to the map in their native WKID which was different from the maps wkid so they were probably over in Africa somewhere. You just need to understand that if the map&amp;nbsp;service is in a spatial reference other than the views then you need to specify that the querys outspatialreference needs to be the same as the views.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 17:37:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-features-on-a-featurelayer-after-query/m-p/363248#M33692</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-01-13T17:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight features on a featurelayer after query</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-features-on-a-featurelayer-after-query/m-p/363249#M33693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I over looked this fact based on the other layers that were being drawn over more or less the correct region. I have learnt something today for sure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 18:47:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/highlight-features-on-a-featurelayer-after-query/m-p/363249#M33693</guid>
      <dc:creator>EvonFranklin</dc:creator>
      <dc:date>2017-01-13T18:47:07Z</dc:date>
    </item>
  </channel>
</rss>

