<?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 do you get default &amp;quot;onclick&amp;quot; behavior from the map object using webappbuilder?  Currently i'm using the main.js file to hook up the events. in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-default-quot-onclick-quot-behavior/m-p/541891#M14285</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kyle,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; You should add your map click event in the MapManager.js or a custom Widget.js, depending on what you are wanting to do:&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; font-size: 14px;"&gt;clickeventhandler = &lt;/SPAN&gt;this.map.on("click", function(){&lt;/P&gt;&lt;P&gt;alert("map clicked"):&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to stay away from using dojo.connect as it has been superseded by "on"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jul 2016 15:25:02 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2016-07-29T15:25:02Z</dc:date>
    <item>
      <title>How do you get default "onclick" behavior from the map object using webappbuilder?  Currently i'm using the main.js file to hook up the events.</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-default-quot-onclick-quot-behavior/m-p/541890#M14284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have built sites before using the JS API but am new to webappbuilder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having difficulty finding any documentation on how to set up the "onClick" behavior of the map object.&amp;nbsp; Currently i'm using something like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clickeventhandler = dojo.connect(this.map, "onclick", function (evt)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&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; alert("map clicked");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 15:08:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-default-quot-onclick-quot-behavior/m-p/541890#M14284</guid>
      <dc:creator>kyleknoche</dc:creator>
      <dc:date>2016-07-29T15:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get default "onclick" behavior from the map object using webappbuilder?  Currently i'm using the main.js file to hook up the events.</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-default-quot-onclick-quot-behavior/m-p/541891#M14285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kyle,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; You should add your map click event in the MapManager.js or a custom Widget.js, depending on what you are wanting to do:&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; font-size: 14px;"&gt;clickeventhandler = &lt;/SPAN&gt;this.map.on("click", function(){&lt;/P&gt;&lt;P&gt;alert("map clicked"):&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to stay away from using dojo.connect as it has been superseded by "on"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 15:25:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-do-you-get-default-quot-onclick-quot-behavior/m-p/541891#M14285</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-07-29T15:25:02Z</dc:date>
    </item>
  </channel>
</rss>

