<?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: Any way to hide an infoWindow on a mouse click? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/any-way-to-hide-an-infowindow-on-a-mouse-click/m-p/477928#M44419</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi David,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the map's onClick handler isn't being initiated because it's not sitting inside a function. Try moving that listener immediately underneath the map declaration (eg around line 368).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;&lt;P align="left"&gt;&lt;SPAN style="color:#333333;"&gt;I'll also want to hide the infoWindow if scale changes beyond the visible scale range for the layer&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a bit trickier since the API doesn't directly tell you whether a layer is "on but outside its scale range". See the post &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/55058-How-to-determine-whether-a-layer-is-on-but-outside-the-scale-range?p=189519#post189519"&gt;here&lt;/A&gt;&lt;SPAN&gt; for some pointers you may be able to use.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You may need to hard-code something in your code, then check the current scale range on each zoom change.&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>Tue, 22 May 2012 21:41:28 GMT</pubDate>
    <dc:creator>StephenLead</dc:creator>
    <dc:date>2012-05-22T21:41:28Z</dc:date>
    <item>
      <title>Any way to hide an infoWindow on a mouse click?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/any-way-to-hide-an-infowindow-on-a-mouse-click/m-p/477913#M44404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Was curious if anyone's found a way to hide an infoWindow when a user clicks outside the infoWindow (instead of having to click the "x" or click on another map graphic which displays another infoWindow.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried setting a dojo.connect event handlers like dojo.connect(map, "onClick", map.infoWindow.hide()); but that doesn't seem to work.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jay&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 May 2012 15:21:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/any-way-to-hide-an-infowindow-on-a-mouse-click/m-p/477913#M44404</guid>
      <dc:creator>JayGregory</dc:creator>
      <dc:date>2012-05-13T15:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to hide an infoWindow on a mouse click?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/any-way-to-hide-an-infowindow-on-a-mouse-click/m-p/477914#M44405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I tried setting a dojo.connect event handlers like dojo.connect(map, "onClick", map.infoWindow.hide()); but that doesn't seem to work.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try this instead:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
dojo.connect(map, "onClick", function() {
&amp;nbsp; map.infoWindow.hide();
});
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:07:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/any-way-to-hide-an-infowindow-on-a-mouse-click/m-p/477914#M44405</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2021-12-11T21:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to hide an infoWindow on a mouse click?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/any-way-to-hide-an-infowindow-on-a-mouse-click/m-p/477915#M44406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the suggestion.&amp;nbsp; That just seems to hide the infoWindow as soon as it's shown - it's only up for a second.&amp;nbsp; I also tried &lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;dojo.connect(map.infoWindow, "onShow", function() {
 dojo.connect(map, "onClick", function() {
&amp;nbsp; map.infoWindow.hide();
 });
 });&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and that didn't seem to work either.&amp;nbsp; Same behavior - just hides the infoWindow right away.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jay&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:07:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/any-way-to-hide-an-infowindow-on-a-mouse-click/m-p/477915#M44406</guid>
      <dc:creator>JayGregory</dc:creator>
      <dc:date>2021-12-11T21:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to hide an infoWindow on a mouse click?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/any-way-to-hide-an-infowindow-on-a-mouse-click/m-p/477916#M44407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;That just seems to hide the infoWindow as soon as it's shown - it's only up for a second.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It sounds like you might be using a mouse click on the map to open the infoWindow in the first place? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What's displayed in the infoWindow - can you trigger it to open when you click on something else( a feature, graphic, or layer) instead?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 01:48:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/any-way-to-hide-an-infowindow-on-a-mouse-click/m-p/477916#M44407</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2012-05-14T01:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to hide an infoWindow on a mouse click?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/any-way-to-hide-an-infowindow-on-a-mouse-click/m-p/477917#M44408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The infoWindow only shows when you click on a graphic.&amp;nbsp; But clicking on a graphic would then also constitute a click on the map, which fires the infoWindow.hide() function too, hence the hiding.&amp;nbsp; I tried setting a handler to only connect the infoWindo.hide() on a mouse click _once_ the infoWindow is shown.&amp;nbsp; And then as soon as the infoWindow is hidden, diconnect the event handler.&amp;nbsp; But that didn't work either.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 02:41:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/any-way-to-hide-an-infowindow-on-a-mouse-click/m-p/477917#M44408</guid>
      <dc:creator>JayGregory</dc:creator>
      <dc:date>2012-05-14T02:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to hide an infoWindow on a mouse click?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/any-way-to-hide-an-infowindow-on-a-mouse-click/m-p/477918#M44409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;But clicking on a graphic would then also constitute a click on the map&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can trap for that using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;dojo.connect(map, "onClick", function(evt) { &amp;nbsp; if(!evt.graphic) { &amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("map click"); &amp;nbsp; } });&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 03:09:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/any-way-to-hide-an-infowindow-on-a-mouse-click/m-p/477918#M44409</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2012-05-14T03:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to hide an infoWindow on a mouse click?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/any-way-to-hide-an-infowindow-on-a-mouse-click/m-p/477919#M44410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a way to do this yet?&amp;nbsp; I have the InfoWindow closing automatically by a number of different events,&amp;nbsp; using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp; function hideInfoWindow(){
&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.hide();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I can't find an "event" for clicking on the map anywhere to close the infoWindow.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:07:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/any-way-to-hide-an-infowindow-on-a-mouse-click/m-p/477919#M44410</guid>
      <dc:creator>DavidTreering</dc:creator>
      <dc:date>2021-12-11T21:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to hide an infoWindow on a mouse click?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/any-way-to-hide-an-infowindow-on-a-mouse-click/m-p/477920#M44411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Steven!&amp;nbsp; That did it!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 00:53:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/any-way-to-hide-an-infowindow-on-a-mouse-click/m-p/477920#M44411</guid>
      <dc:creator>JayGregory</dc:creator>
      <dc:date>2012-05-15T00:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to hide an infoWindow on a mouse click?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/any-way-to-hide-an-infowindow-on-a-mouse-click/m-p/477921#M44412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks Steven!&amp;nbsp; That did it!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm pretty new to JS and I didn't quite get this yet.&amp;nbsp; Can you explain what I need to do to this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp; dojo.connect(map, "onClick", function(evt) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(!evt.graphic) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("map click");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hideInfoWindow();
&amp;nbsp; });
&amp;nbsp;&amp;nbsp; function hideInfoWindow(){
&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.hide();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:07:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/any-way-to-hide-an-infowindow-on-a-mouse-click/m-p/477921#M44412</guid>
      <dc:creator>DavidTreering</dc:creator>
      <dc:date>2021-12-11T21:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to hide an infoWindow on a mouse click?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/any-way-to-hide-an-infowindow-on-a-mouse-click/m-p/477922#M44413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In your case, the hideInfoWindow() is executing outside the if statement - that is, no matter if you clicked on a graphic or not.&amp;nbsp; You need to move the hide statement inside the if statement, although you can make it simpler by just attaching this handler instead - no need to call the extra function just to execute one line of code.&amp;nbsp;&amp;nbsp; The !evt.graphic means "if you didn't click on a graphic".&amp;nbsp; Hope that helps!&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;dojo.connect(map, "onClick", function(evt) {
&amp;nbsp; if(!evt.graphic) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.hide();
&amp;nbsp; }
});&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:07:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/any-way-to-hide-an-infowindow-on-a-mouse-click/m-p/477922#M44413</guid>
      <dc:creator>JayGregory</dc:creator>
      <dc:date>2021-12-11T21:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to hide an infoWindow on a mouse click?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/any-way-to-hide-an-infowindow-on-a-mouse-click/m-p/477923#M44414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Still not working.&amp;nbsp; Is a polygon tiled layer used as a basemap considered a graphic?&amp;nbsp; Or only the dynamic feature layer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 18:25:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/any-way-to-hide-an-infowindow-on-a-mouse-click/m-p/477923#M44414</guid>
      <dc:creator>DavidTreering</dc:creator>
      <dc:date>2012-05-15T18:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to hide an infoWindow on a mouse click?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/any-way-to-hide-an-infowindow-on-a-mouse-click/m-p/477924#M44415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is a polygon tiled layer used as a basemap considered a graphic?&amp;nbsp; Or only the dynamic feature layer?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi David,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No, a tiled or dynamic layer isn't considered a graphic. A feature layer is, as is a graphics layer, or a single graphic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you post your whole code, or a link to your site?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 00:18:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/any-way-to-hide-an-infowindow-on-a-mouse-click/m-p/477924#M44415</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2012-05-16T00:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to hide an infoWindow on a mouse click?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/any-way-to-hide-an-infowindow-on-a-mouse-click/m-p/477925#M44416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Steve, Here's my code...this is a work in progress.&amp;nbsp; Not everything works.&amp;nbsp; Please let me know if my services are coming through alright or if you cannot see them load.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 13:59:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/any-way-to-hide-an-infowindow-on-a-mouse-click/m-p/477925#M44416</guid>
      <dc:creator>DavidTreering</dc:creator>
      <dc:date>2012-05-16T13:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to hide an infoWindow on a mouse click?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/any-way-to-hide-an-infowindow-on-a-mouse-click/m-p/477926#M44417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'll also want to hide the infoWindow if scale changes beyond the visible scale range for the layer.&amp;nbsp;&amp;nbsp; Hmmmm.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I appreciate your time, and any ideas would be a great help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 15:54:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/any-way-to-hide-an-infowindow-on-a-mouse-click/m-p/477926#M44417</guid>
      <dc:creator>DavidTreering</dc:creator>
      <dc:date>2012-05-17T15:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to hide an infoWindow on a mouse click?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/any-way-to-hide-an-infowindow-on-a-mouse-click/m-p/477927#M44418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've tried opening it up.&amp;nbsp; Can you try again?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 21:29:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/any-way-to-hide-an-infowindow-on-a-mouse-click/m-p/477927#M44418</guid>
      <dc:creator>DavidTreering</dc:creator>
      <dc:date>2012-05-22T21:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to hide an infoWindow on a mouse click?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/any-way-to-hide-an-infowindow-on-a-mouse-click/m-p/477928#M44419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi David,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the map's onClick handler isn't being initiated because it's not sitting inside a function. Try moving that listener immediately underneath the map declaration (eg around line 368).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;&lt;P align="left"&gt;&lt;SPAN style="color:#333333;"&gt;I'll also want to hide the infoWindow if scale changes beyond the visible scale range for the layer&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a bit trickier since the API doesn't directly tell you whether a layer is "on but outside its scale range". See the post &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/55058-How-to-determine-whether-a-layer-is-on-but-outside-the-scale-range?p=189519#post189519"&gt;here&lt;/A&gt;&lt;SPAN&gt; for some pointers you may be able to use.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You may need to hard-code something in your code, then check the current scale range on each zoom change.&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>Tue, 22 May 2012 21:41:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/any-way-to-hide-an-infowindow-on-a-mouse-click/m-p/477928#M44419</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2012-05-22T21:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to hide an infoWindow on a mouse click?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/any-way-to-hide-an-infowindow-on-a-mouse-click/m-p/477929#M44420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Try moving that listener immediately underneath the map declaration&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That worked, thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll try to &lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;hard-code something in your code, then check the current scale range on each zoom change&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;, and post what I do.&amp;nbsp; I'll probably choose to store variables rather than send a query every onZoomChange.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 15:46:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/any-way-to-hide-an-infowindow-on-a-mouse-click/m-p/477929#M44420</guid>
      <dc:creator>DavidTreering</dc:creator>
      <dc:date>2012-05-23T15:46:54Z</dc:date>
    </item>
  </channel>
</rss>

