<?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: Issue on Closing InfoTemplate Programmatically in ArcGIS API for JS in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-on-closing-infotemplate-programmatically-in/m-p/169579#M15722</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Jeremie, it was very helpful. Can you please also let me know how I can change the highlight box around the marker on click to something like Target sign, as well?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Sep 2015 06:38:56 GMT</pubDate>
    <dc:creator>BruceGreen</dc:creator>
    <dc:date>2015-09-04T06:38:56Z</dc:date>
    <item>
      <title>Issue on Closing InfoTemplate Programmatically in ArcGIS API for JS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-on-closing-infotemplate-programmatically-in/m-p/169577#M15720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to hide a layer on the map like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var point = new esri.geometry.Point(-106.61, 35.1107);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; point = esri.geometry.geographicToWebMercator(point);
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var symbol = new esri.symbol.PictureMarkerSymbol("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https://cdn1.iconfinder.com/data/icons/Map-Markers-Icons-Demo-PNG/128/Map-Marker-Marker-Outside-Chartreuse.png" target="_blank"&gt;https://cdn1.iconfinder.com/data/icons/Map-Markers-Icons-Demo-PNG/128/Map-Marker-Marker-Outside-Chartreuse.png&lt;/A&gt;&lt;SPAN&gt;", 32, 32);&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pointInfoTemplate = new InfoTemplate(); 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pointInfoTemplate.setTitle("Project Details");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pointInfoTemplate.setContent('&amp;lt;div&amp;gt;Some Att Here&amp;lt;/div&amp;gt; ');
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var graphic = new esri.Graphic(point, symbol).setInfoTemplate(pointInfoTemplate);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layer1 = new esri.layers.GraphicsLayer();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layer1.add(graphic);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.addLayer(layer1);


&amp;nbsp;&amp;nbsp;&amp;nbsp; $("#hide").on("click", function(){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layer1.hide();
&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which works fine but the `InfoTemplate()` remains in the map (in case of it being opened)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="mappp.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/125182_mappp.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:48:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-on-closing-infotemplate-programmatically-in/m-p/169577#M15720</guid>
      <dc:creator>BruceGreen</dc:creator>
      <dc:date>2021-12-11T08:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Issue on Closing InfoTemplate Programmatically in ArcGIS API for JS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-on-closing-infotemplate-programmatically-in/m-p/169578#M15721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can hide the infoWindow with&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;map.infoWindow.hide()&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 06:30:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-on-closing-infotemplate-programmatically-in/m-p/169578#M15721</guid>
      <dc:creator>JeremieCornet1</dc:creator>
      <dc:date>2015-09-04T06:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Issue on Closing InfoTemplate Programmatically in ArcGIS API for JS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-on-closing-infotemplate-programmatically-in/m-p/169579#M15722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Jeremie, it was very helpful. Can you please also let me know how I can change the highlight box around the marker on click to something like Target sign, as well?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 06:38:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-on-closing-infotemplate-programmatically-in/m-p/169579#M15722</guid>
      <dc:creator>BruceGreen</dc:creator>
      <dc:date>2015-09-04T06:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Issue on Closing InfoTemplate Programmatically in ArcGIS API for JS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-on-closing-infotemplate-programmatically-in/m-p/169580#M15723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Behrouz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is definitely possible - as a matter of fact, someone had the same question - &lt;A href="https://community.esri.com/thread/163700"&gt;Change the highlight symbol for a selection&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3101"&gt;Robert Scheitlin, GISP&lt;/A&gt;​ provided some example code on how to do this in that thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 15:04:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-on-closing-infotemplate-programmatically-in/m-p/169580#M15723</guid>
      <dc:creator>ChrisSmith7</dc:creator>
      <dc:date>2015-09-04T15:04:16Z</dc:date>
    </item>
  </channel>
</rss>

