<?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: Can a layer change the infowindow size? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-a-layer-change-the-infowindow-size/m-p/9176#M841</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do this. I don't know if there are additional ways of doing this but I do this using a click event handler for each layer:&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; theLayer.on("click", function(evt) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.resize(350, 275);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you wanted to reset the infoWindow back to a default size, you can do that in a similar manner:&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; map.infoWindow.on("hide", function(evt) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.resize(400,300);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just tweak the height/widths until you're happy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 20:22:29 GMT</pubDate>
    <dc:creator>SteveCole</dc:creator>
    <dc:date>2021-12-10T20:22:29Z</dc:date>
    <item>
      <title>Can a layer change the infowindow size?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-a-layer-change-the-infowindow-size/m-p/9175#M840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A layer (or even individual graphics) can have an info template that describes the content of the infowindow, but I want different layers to have different size info windows.&amp;nbsp; Is it possible for layers to specify the size of the info window used when clicking on their graphics?&amp;nbsp; Mostly I want to make sure that layers that don't specify a size don't get the super-wide info window I want for one of my layers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 17:13:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-a-layer-change-the-infowindow-size/m-p/9175#M840</guid>
      <dc:creator>DavidElies</dc:creator>
      <dc:date>2015-04-08T17:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can a layer change the infowindow size?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-a-layer-change-the-infowindow-size/m-p/9176#M841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do this. I don't know if there are additional ways of doing this but I do this using a click event handler for each layer:&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; theLayer.on("click", function(evt) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.resize(350, 275);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you wanted to reset the infoWindow back to a default size, you can do that in a similar manner:&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; map.infoWindow.on("hide", function(evt) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.resize(400,300);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just tweak the height/widths until you're happy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:22:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-a-layer-change-the-infowindow-size/m-p/9176#M841</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2021-12-10T20:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Can a layer change the infowindow size?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-a-layer-change-the-infowindow-size/m-p/9177#M842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's a clever way of adjusting the infowindow size.&amp;nbsp; I was hoping there was a way for a layer to request that on its own (similar to the way the info template works).&amp;nbsp; I will do this if there is no API way of making this happen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 18:33:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-a-layer-change-the-infowindow-size/m-p/9177#M842</guid>
      <dc:creator>DavidElies</dc:creator>
      <dc:date>2015-04-08T18:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can a layer change the infowindow size?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-a-layer-change-the-infowindow-size/m-p/9178#M843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's the way I've always done it but I don't know if it's the right way. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 18:42:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-a-layer-change-the-infowindow-size/m-p/9178#M843</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2015-04-08T18:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Can a layer change the infowindow size?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-a-layer-change-the-infowindow-size/m-p/9179#M844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I know this is the only way to do it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 18:44:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-a-layer-change-the-infowindow-size/m-p/9179#M844</guid>
      <dc:creator>TimWitt2</dc:creator>
      <dc:date>2015-04-08T18:44:17Z</dc:date>
    </item>
  </channel>
</rss>

