<?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: Please help: &amp;quot;On click&amp;quot; or &amp;quot;onDraw&amp;quot; handler issues in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/please-help-amp-quot-on-click-amp-quot-or-amp-quot/m-p/109429#M10167</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Good Morning Steve,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I much appreciate your response. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Thank you for the tip on giving all dynamiclayers unique names.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. I'm not quite clear on the second part about conflating the following into a single function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.connect(map, 'onLoad', function(theMap) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //resize the map when the browser resizes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.connect(dijit.byId('map'), 'resize', map,map.resize);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.connect(map,"onLoad",mapReady);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you meant removing the : &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;&amp;nbsp; //resize the map when the browser resizes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;&amp;nbsp; dojo.connect(dijit.byId('map'), 'resize', map,map.resize);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from the mapReady function, I have done that without any apparent consequences to the application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3.&amp;nbsp; Now for the real problem (s).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let me try and better explain what I'm finding.&amp;nbsp; If I use the Identify "SELECT" button to draw a selecting box within a map&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; parcel the attributes are added to the top region grid.&amp;nbsp; I am able to use the scroll wheel to zoom in and out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If I then use the find "SEARCH" box to find an address or parcel, all relevant addresses/parcels are listed in the grid at the&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; bottom region. Clicking on a grid row will zoom to that location. I can zoom in and out using the scroll wheel or the slider. I can&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; also select another grid row and zoom to that record.&amp;nbsp; However, if I use the identify "SELECT" button after zooming to a grid &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; row I can no longer zoom to another grid row and the "zoom in and out" functions suffer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I know I have a problem with the &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //identify portion&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function onDrawEnd(extent){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; toolBar.deactivate();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; executeIdentifyTask(extent);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and the onClick handler.&amp;nbsp; I have tried changing the onDrawEnd references to onClick&amp;nbsp; but it didn't work.&amp;nbsp; Perhaps I need to do &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; away with the "SELECT" function&amp;nbsp; altogether?&amp;nbsp; What would be the best way?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanking you for your help and advice,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dorothea&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Aug 2012 15:28:13 GMT</pubDate>
    <dc:creator>DorotheaKnigge</dc:creator>
    <dc:date>2012-08-15T15:28:13Z</dc:date>
    <item>
      <title>Please help: &amp;quot;On click&amp;quot; or &amp;quot;onDraw&amp;quot; handler issues</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/please-help-amp-quot-on-click-amp-quot-or-amp-quot/m-p/109427#M10165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello from a frustrated beginner,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a "find" datagrid which is working well.&amp;nbsp; I also have an "identify" grid with muliple tabs for identifying such things as school districts, precincts, and etc which functions by first clicking a "select" button.&amp;nbsp; The Identify portion works well by itself. It also works the the first time it is used with the selected record of the "find" datagrid&amp;nbsp; but thereafter it causes problems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be awesome if the two could be used interchangeably. Could someone help me sort out my code and the "On click" or "On draw' handler?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or perhaps there is a better way?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for any help or suggestions,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dorothea&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 19:30:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/please-help-amp-quot-on-click-amp-quot-or-amp-quot/m-p/109427#M10165</guid>
      <dc:creator>DorotheaKnigge</dc:creator>
      <dc:date>2012-08-14T19:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Please help: "On click" or "onDraw" handler issues</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/please-help-amp-quot-on-click-amp-quot-or-amp-quot/m-p/109428#M10166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Welcome to the JS API!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you provide further information on exactly what is going wrong? Are you able to link to your site?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are a few potential problems in your code. Minor errors include:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var dynamicMapServiceLayer = new esri.layers.ArcGISDynamicMapServiceLayer("http://xxxxxxxxx/ArcGIS/rest/services/Hillshade/MapServer"); 
map.addLayer(dynamicMapServiceLayer); 
&amp;nbsp; 
var dynamicMapServiceLayer = new esri.layers.ArcGISDynamicMapServiceLayer("http://xxxxxxxxx/ArcGIS/rest/services/WaterBodies_WebMercatorAux/MapServer",{"opacity":0.9}); 
map.addLayer(dynamicMapServiceLayer);&lt;/PRE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Without a unique name, you won't be able to do anything further with these layers. It would be better to name them uniquely.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;dojo.connect(map, 'onLoad', function(theMap) {
&amp;nbsp; //resize the map when the browser resizes
&amp;nbsp; dojo.connect(dijit.byId('map'), 'resize', map,map.resize);
});

dojo.connect(map,"onLoad",mapReady);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;These should be conflated into a single function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I think your main problem is here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;function onDrawEnd(extent){
&amp;nbsp;&amp;nbsp; toolBar.deactivate();
&amp;nbsp;&amp;nbsp; executeIdentifyTask(extent);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;executeIdentifyTask is expecting a point location, and you've given it a rectangular extent. When you use the line:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
clickHandler = dojo.connect(map, "onClick", executeIdentifyTask);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the onClick handler passes the point clicked by the user. This is what the identifyTask is expecting:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
function executeIdentifyTask(geom) {
&amp;nbsp;&amp;nbsp; identifyParams.geometry = geom;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:34:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/please-help-amp-quot-on-click-amp-quot-or-amp-quot/m-p/109428#M10166</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2021-12-11T06:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Please help: "On click" or "onDraw" handler issues</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/please-help-amp-quot-on-click-amp-quot-or-amp-quot/m-p/109429#M10167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Good Morning Steve,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I much appreciate your response. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Thank you for the tip on giving all dynamiclayers unique names.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. I'm not quite clear on the second part about conflating the following into a single function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.connect(map, 'onLoad', function(theMap) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //resize the map when the browser resizes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.connect(dijit.byId('map'), 'resize', map,map.resize);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.connect(map,"onLoad",mapReady);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you meant removing the : &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;&amp;nbsp; //resize the map when the browser resizes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;&amp;nbsp; dojo.connect(dijit.byId('map'), 'resize', map,map.resize);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from the mapReady function, I have done that without any apparent consequences to the application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3.&amp;nbsp; Now for the real problem (s).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let me try and better explain what I'm finding.&amp;nbsp; If I use the Identify "SELECT" button to draw a selecting box within a map&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; parcel the attributes are added to the top region grid.&amp;nbsp; I am able to use the scroll wheel to zoom in and out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If I then use the find "SEARCH" box to find an address or parcel, all relevant addresses/parcels are listed in the grid at the&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; bottom region. Clicking on a grid row will zoom to that location. I can zoom in and out using the scroll wheel or the slider. I can&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; also select another grid row and zoom to that record.&amp;nbsp; However, if I use the identify "SELECT" button after zooming to a grid &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; row I can no longer zoom to another grid row and the "zoom in and out" functions suffer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I know I have a problem with the &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //identify portion&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function onDrawEnd(extent){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; toolBar.deactivate();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; executeIdentifyTask(extent);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and the onClick handler.&amp;nbsp; I have tried changing the onDrawEnd references to onClick&amp;nbsp; but it didn't work.&amp;nbsp; Perhaps I need to do &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; away with the "SELECT" function&amp;nbsp; altogether?&amp;nbsp; What would be the best way?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanking you for your help and advice,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dorothea&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 15:28:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/please-help-amp-quot-on-click-amp-quot-or-amp-quot/m-p/109429#M10167</guid>
      <dc:creator>DorotheaKnigge</dc:creator>
      <dc:date>2012-08-15T15:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Please help: "On click" or "onDraw" handler issues</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/please-help-amp-quot-on-click-amp-quot-or-amp-quot/m-p/109430#M10168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Dorothea,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's really hard (for me, at least!) to debug this properly without being able to run it. Is there any chance you can put this on a public site so we can test it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;However, if I use the identify "SELECT" button after zooming to a grid row I can no longer zoom to another grid row and the "zoom in and out" functions suffer.&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It sounds like there's a problem with the event listeners, which are getting out of sync or otherwise failing. This would (probably) be easier to debug by stepping through it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you haven't already done so, try installing Firefox and &lt;/SPAN&gt;&lt;A href="http://getfirebug.com/" rel="nofollow noopener noreferrer" target="_blank"&gt;Firebug&lt;/A&gt;&lt;SPAN&gt;, which will allow you to step through your code to ascertain where the problem lies.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try putting a breakpoint inside the routine you suspect is causing the problem, and step through it to see which line throws the error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I know I have a problem with the &lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
//identify portion
function onDrawEnd(extent){
&amp;nbsp; toolBar.deactivate();
&amp;nbsp; executeIdentifyTask(extent);
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;and the onClick handler. I have tried changing the onDrawEnd references to onClick but it didn't work. Perhaps I need to do &lt;BR /&gt;away with the "SELECT" function altogether? What would be the best way?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you step into executeIdentifyTask in this case, you'll probably see that &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;extent&lt;/SPAN&gt;&lt;SPAN&gt; is a rectangle, whereas this function is expecting a &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;point&lt;/SPAN&gt;&lt;SPAN&gt;. You'll need to adjust your logic so that you're generating a point with which to identify.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not being able to run your code, I don't understand why you're running the identify after the drawing ends, but hopefully since you understand what you're trying to do, this will make sense.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:34:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/please-help-amp-quot-on-click-amp-quot-or-amp-quot/m-p/109430#M10168</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2021-12-11T06:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Please help: "On click" or "onDraw" handler issues</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/please-help-amp-quot-on-click-amp-quot-or-amp-quot/m-p/109431#M10169</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;Thank you for taking a look at this. At this point I don't think I can put it in a public place but I will check again with IT.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will try debugging with Firebug and let you know what I discover.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please let me know if you come up with other possible ideas on how to solve the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dorothea&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 18:59:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/please-help-amp-quot-on-click-amp-quot-or-amp-quot/m-p/109431#M10169</guid>
      <dc:creator>DorotheaKnigge</dc:creator>
      <dc:date>2012-08-16T18:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Please help: "On click" or "onDraw" handler issues</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/please-help-amp-quot-on-click-amp-quot-or-amp-quot/m-p/109432#M10170</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;I have since changed my project from using an identify grid to using an Identify info window with tabs.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did, however, discover that on starting the identify function I was clearing the graphics of my find function which of course kept me from selecting another grid row and zooming to it.&amp;nbsp; I can't believe I didn't catch that earlier.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you again:)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dorothea&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 13:57:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/please-help-amp-quot-on-click-amp-quot-or-amp-quot/m-p/109432#M10170</guid>
      <dc:creator>DorotheaKnigge</dc:creator>
      <dc:date>2012-09-05T13:57:44Z</dc:date>
    </item>
  </channel>
</rss>

