<?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: How to simulate mouse click in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-simulate-mouse-click/m-p/438400#M40366</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case, the maps layers can change very often, so I could handle every cases and query the right thing, but in a sens, it duplicate the code that is already writted in the ArcGIS API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway it would have been a good way in an other case than mine, so thanks !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 05 Jun 2016 11:34:09 GMT</pubDate>
    <dc:creator>RobinChappatte</dc:creator>
    <dc:date>2016-06-05T11:34:09Z</dc:date>
    <item>
      <title>How to simulate mouse click</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-simulate-mouse-click/m-p/438397#M40363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;(Please excuse my english)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I need to simulate a user mouse click on the map.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I tried with this kind of method but it seem not to work: &lt;A href="http://stackoverflow.com/questions/6157929/how-to-simulate-a-mouse-click-using-javascript" title="http://stackoverflow.com/questions/6157929/how-to-simulate-a-mouse-click-using-javascript"&gt;http://stackoverflow.com/questions/6157929/how-to-simulate-a-mouse-click-using-javascript&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I think it's because a script-lauched mouse click is an untrusted event and ArcGIS only listen to the trusted event (launched by an user).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I need it because my map is in an invisible iframe, and i send the click coords to it from the main page.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;How could I do this ?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;(nativ method ? JS hack ? I looked for it but found nothing...)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Thank you in advance for yours answers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Robin Chappatte&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 12:26:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-simulate-mouse-click/m-p/438397#M40363</guid>
      <dc:creator>RobinChappatte</dc:creator>
      <dc:date>2016-06-02T12:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to simulate mouse click</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-simulate-mouse-click/m-p/438398#M40364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the click event in the invisible map used for?&amp;nbsp; If it is to trigger a seperate identify or query, then rather just use the query or identify task directly from the REST endpoint.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 12:32:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-simulate-mouse-click/m-p/438398#M40364</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2016-06-02T12:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to simulate mouse click</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-simulate-mouse-click/m-p/438399#M40365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This also works (from &lt;A href="https://community.esri.com/thread/104993" target="_blank"&gt;Programmatically fire map's click event&lt;/A&gt; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #222222; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;map.emit('click', {mapPoint: new esri.geometry.Point(myLong,myLat, esri.SpatialReference({wkid:102100}))});

&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:37:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-simulate-mouse-click/m-p/438399#M40365</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2021-12-11T19:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to simulate mouse click</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-simulate-mouse-click/m-p/438400#M40366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case, the maps layers can change very often, so I could handle every cases and query the right thing, but in a sens, it duplicate the code that is already writted in the ArcGIS API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway it would have been a good way in an other case than mine, so thanks !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Jun 2016 11:34:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-simulate-mouse-click/m-p/438400#M40366</guid>
      <dc:creator>RobinChappatte</dc:creator>
      <dc:date>2016-06-05T11:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to simulate mouse click</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-simulate-mouse-click/m-p/438401#M40367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll try it monday, thank-you very much !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: It work just fine, thank you !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Jun 2016 11:34:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-simulate-mouse-click/m-p/438401#M40367</guid>
      <dc:creator>RobinChappatte</dc:creator>
      <dc:date>2016-06-05T11:34:59Z</dc:date>
    </item>
  </channel>
</rss>

