<?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: Query, Highlight and Attributes. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-highlight-and-attributes/m-p/254781#M23637</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks a lot! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Feb 2012 21:22:00 GMT</pubDate>
    <dc:creator>CesarRevilla</dc:creator>
    <dc:date>2012-02-08T21:22:00Z</dc:date>
    <item>
      <title>Query, Highlight and Attributes.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-highlight-and-attributes/m-p/254777#M23633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. I use a &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;onMouseMove&lt;/SPAN&gt;&lt;SPAN&gt; event to display attributes in a html span.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. I use a highlight function to show the selected polygon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. I use URL Parameters to make a Query or a Find to select a polygon directly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. This selected polygon is centered, zoomed and &lt;/SPAN&gt;&lt;STRONG&gt;highlighted&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5. The Query Result or the Find Result don't contains &lt;/SPAN&gt;&lt;STRONG&gt;attributes&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6. &lt;/SPAN&gt;&lt;STRONG&gt;PROBLEM:&lt;/STRONG&gt;&lt;SPAN&gt; The &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;onMouseMove&lt;/SPAN&gt;&lt;SPAN&gt; event over this highlighted object can't display the attributes of the original Graphic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a solution?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;orzundher&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 20:10:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-highlight-and-attributes/m-p/254777#M23633</guid>
      <dc:creator>CesarRevilla</dc:creator>
      <dc:date>2012-02-08T20:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Query, Highlight and Attributes.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-highlight-and-attributes/m-p/254778#M23634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For 1, do you mean that you're listening to the onMouseMove event on a feature layer or graphic layer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ithink the problem is that the graphic highlight which is returned by the query/find draws as the top layer on the map, so the onMouseMove event doesn't react (since the mouse is over the new graphic, rather than the layer underneath.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could retrieve attributes in the query/find, attach them to the new graphic, and listen to the onMouseMove event on this new graphic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is that what you mean?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 20:19:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-highlight-and-attributes/m-p/254778#M23634</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2012-02-08T20:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Query, Highlight and Attributes.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-highlight-and-attributes/m-p/254779#M23635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Steve,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;right! in this case I can't copy the attributes to the "graphic highlight", and &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;onMouseMove&lt;/SPAN&gt;&lt;SPAN&gt; can't get the attributes from the "underneathed graphic".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I retrieve the attributes in the query/find, to attach them to the new graphic?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thankyou,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;orzundher&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 20:58:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-highlight-and-attributes/m-p/254779#M23635</guid>
      <dc:creator>CesarRevilla</dc:creator>
      <dc:date>2012-02-08T20:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Query, Highlight and Attributes.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-highlight-and-attributes/m-p/254780#M23636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;How can I retrieve the attributes in the query/find, to attach them to the new graphic?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/query.htm" rel="nofollow" target="_blank"&gt;Query&lt;/A&gt;&lt;SPAN&gt;, you can specify outFields, which are the fields which are returned in the query results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then you can use &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;graphic.attributes = query.attributes&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 21:12:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-highlight-and-attributes/m-p/254780#M23636</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2012-02-08T21:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Query, Highlight and Attributes.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-highlight-and-attributes/m-p/254781#M23637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks a lot! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 21:22:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-highlight-and-attributes/m-p/254781#M23637</guid>
      <dc:creator>CesarRevilla</dc:creator>
      <dc:date>2012-02-08T21:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Query, Highlight and Attributes.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-highlight-and-attributes/m-p/254782#M23638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks a lot! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No problems. Another (simpler) option may be to make a graphic which only has a border (no fill). That way, (I think) the onMouseOver event will continue to fire on the underlying dataset.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 21:24:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-highlight-and-attributes/m-p/254782#M23638</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2012-02-08T21:24:17Z</dc:date>
    </item>
  </channel>
</rss>

