<?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 Unable to access default parameters when event is dispatched using on.emit() in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-access-default-parameters-when-event-is/m-p/90447#M8232</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm adding a Raphael area on top of ESRI map surface area to render some graphics I needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I instantiate the Raphael instance with equal width and height as that of map, Events are not triggered on the map surface.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I mean when I click on the empty area on the Raphael surface I want the click event to be invoked on the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For doing that I added a click event on the Raphael Instance Canvas and from the event listener dispatching the click event on the&amp;nbsp; map(Events on the map registered using '&lt;/SPAN&gt;&lt;STRONG&gt;dojo.on()&lt;/STRONG&gt;&lt;SPAN&gt;' so that they can be dispatched using '&lt;/SPAN&gt;&lt;STRONG&gt;on.emit()&lt;/STRONG&gt;&lt;SPAN&gt;' method).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But by doing so I could invoke the handler registered for the click event on the map but, When I try to access the properties of the&amp;nbsp; click event for example say '&lt;/SPAN&gt;&lt;STRONG&gt;event.mapPoint&lt;/STRONG&gt;&lt;SPAN&gt;' error is being thrown(Access of undefined property) which is a valid error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Because the event handler gets values that are passed from the &lt;/SPAN&gt;&lt;STRONG&gt;on.emit()'s&lt;/STRONG&gt;&lt;SPAN&gt; third parameter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to invoke the listener with the default or original values that are passed when the listener is invoked when an user&amp;nbsp; clicks directly on the map area.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can some body tell me how to do that? I'm using 3.4 version of ArcGIS Js API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 May 2013 11:50:57 GMT</pubDate>
    <dc:creator>ShashankA</dc:creator>
    <dc:date>2013-05-14T11:50:57Z</dc:date>
    <item>
      <title>Unable to access default parameters when event is dispatched using on.emit()</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-access-default-parameters-when-event-is/m-p/90447#M8232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm adding a Raphael area on top of ESRI map surface area to render some graphics I needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I instantiate the Raphael instance with equal width and height as that of map, Events are not triggered on the map surface.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I mean when I click on the empty area on the Raphael surface I want the click event to be invoked on the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For doing that I added a click event on the Raphael Instance Canvas and from the event listener dispatching the click event on the&amp;nbsp; map(Events on the map registered using '&lt;/SPAN&gt;&lt;STRONG&gt;dojo.on()&lt;/STRONG&gt;&lt;SPAN&gt;' so that they can be dispatched using '&lt;/SPAN&gt;&lt;STRONG&gt;on.emit()&lt;/STRONG&gt;&lt;SPAN&gt;' method).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But by doing so I could invoke the handler registered for the click event on the map but, When I try to access the properties of the&amp;nbsp; click event for example say '&lt;/SPAN&gt;&lt;STRONG&gt;event.mapPoint&lt;/STRONG&gt;&lt;SPAN&gt;' error is being thrown(Access of undefined property) which is a valid error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Because the event handler gets values that are passed from the &lt;/SPAN&gt;&lt;STRONG&gt;on.emit()'s&lt;/STRONG&gt;&lt;SPAN&gt; third parameter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to invoke the listener with the default or original values that are passed when the listener is invoked when an user&amp;nbsp; clicks directly on the map area.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can some body tell me how to do that? I'm using 3.4 version of ArcGIS Js API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 11:50:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-access-default-parameters-when-event-is/m-p/90447#M8232</guid>
      <dc:creator>ShashankA</dc:creator>
      <dc:date>2013-05-14T11:50:57Z</dc:date>
    </item>
  </channel>
</rss>

