<?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: FeatureLayer click event handler event object not as expected. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-click-event-handler-event-object-not/m-p/302308#M27757</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tried you solution but no luck still getting the same result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]29452[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any other ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Nov 2013 00:59:34 GMT</pubDate>
    <dc:creator>YvesRichard</dc:creator>
    <dc:date>2013-11-29T00:59:34Z</dc:date>
    <item>
      <title>FeatureLayer click event handler event object not as expected.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-click-event-handler-event-object-not/m-p/302306#M27755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am binding a simple click handler to a FeatureLayer using the new 'on' strategy. All works fine in all browser except latest Firefox (25.0.1). The event object returned to the handler only has the ClientX &amp;amp; ClientY properties. To make things even more confusing looking at the esri docs here: &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jsapi/featurelayer-amd.html#click"&gt;https://developers.arcgis.com/en/javascript/jsapi/featurelayer-amd.html#click&lt;/A&gt;&lt;SPAN&gt; says that the handler should not expect a event object which contradicts the docs for the connect style handlers: &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jsapi/featurelayer-amd.html#onclick"&gt;https://developers.arcgis.com/en/javascript/jsapi/featurelayer-amd.html#onclick&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. how can i get around the Firefox issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Can you explain this discrepancy in the docs?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards, Yves&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;p.s. using esri js sdk ver 3.7&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]29446[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Nov 2013 16:46:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-click-event-handler-event-object-not/m-p/302306#M27755</guid>
      <dc:creator>YvesRichard</dc:creator>
      <dc:date>2013-11-28T16:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer click event handler event object not as expected.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-click-event-handler-event-object-not/m-p/302307#M27756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One thing I would try is to &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Change:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;on(layer, "click", function(evt) {})&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;layer.on("click", function(evt) {});&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Based om dojo/on document, on(layer, "click", ...) is applied to dom elements, which means it considers layer as a dom element instead of an esri/layers/FeatureLayer. Use layer.on("click", ...) to define the callback function for FeatureLayer.onClick event.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2013 00:46:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-click-event-handler-event-object-not/m-p/302307#M27756</guid>
      <dc:creator>JasonZou</dc:creator>
      <dc:date>2013-11-29T00:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer click event handler event object not as expected.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-click-event-handler-event-object-not/m-p/302308#M27757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tried you solution but no luck still getting the same result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]29452[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any other ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2013 00:59:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-click-event-handler-event-object-not/m-p/302308#M27757</guid>
      <dc:creator>YvesRichard</dc:creator>
      <dc:date>2013-11-29T00:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer click event handler event object not as expected.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-click-event-handler-event-object-not/m-p/302309#M27758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yves,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jssamples/fl_dgrid.html"&gt;this sample&lt;/A&gt;&lt;SPAN&gt;, we dig into the returned object for the graphic associated with the click event using 'e.graphic'.&amp;nbsp; you're unable to do the same?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;heres a conceptual article that details the differences between the objects returned by on style event listeners and connect style event listeners&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jshelp/inside_events.html"&gt;https://developers.arcgis.com/en/javascript/jshelp/inside_events.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 14:31:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-click-event-handler-event-object-not/m-p/302309#M27758</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2013-12-02T14:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer click event handler event object not as expected.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-click-event-handler-event-object-not/m-p/302310#M27759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;haha my bad!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was just hovering over the evt variable which only showed the clientX &amp;amp; clientY values and I thought that those where the only properties on the object but on closer inspection all the esri properties are present.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On my second note about the docs though... shouldn't the click handler be served a mouse event? In the docs it says it doesn't receive one. (see attached image)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your time. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]29498[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 16:22:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-click-event-handler-event-object-not/m-p/302310#M27759</guid>
      <dc:creator>YvesRichard</dc:creator>
      <dc:date>2013-12-02T16:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer click event handler event object not as expected.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-click-event-handler-event-object-not/m-p/302311#M27760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;yeah, we'll have to correct the doc for the on style click event.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 16:26:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-click-event-handler-event-object-not/m-p/302311#M27760</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2013-12-02T16:26:55Z</dc:date>
    </item>
  </channel>
</rss>

