<?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 Javascript API v2.5 WMSLayer Image Format Bug in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-v2-5-wmslayer-image-format-bug/m-p/327453#M30229</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When upgrading to 2.5, it seems that the setImageFormat is ignored by the api. When I set the image format to png, the actual request goes out as .jpeg. The same code using version 2.4 of the api, works as expected. Here is the code for the wms service:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;topoBaseLayer = new esri.layers.WMSLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://wms.ess-ws.nrcan.gc.ca/wms/toporama_en" rel="nofollow" target="_blank"&gt;http://wms.ess-ws.nrcan.gc.ca/wms/toporama_en&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;topoBaseLayer.setVisibleLayers(["limits", "vegetation", "builtup_areas", "designated_areas", "hydrography", "hypsography", "water_saturated_soils", "landforms", "constructions", "water_features", "road_network", "railway", "populated_places", "structures", "power_network", "feature_names"]);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;topoBaseLayer.setImageFormat("png");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The network traffic generated by v2.5 is shown in 2.5.jpg and the network traffic generated by v2.4 is shown in 2.4.jpg.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just wondering if this is a bug in the new version or if I'm somehow not sending the request properly.&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;Kurtis.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Oct 2011 16:19:37 GMT</pubDate>
    <dc:creator>KurtisPoettcker</dc:creator>
    <dc:date>2011-10-20T16:19:37Z</dc:date>
    <item>
      <title>Javascript API v2.5 WMSLayer Image Format Bug</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-v2-5-wmslayer-image-format-bug/m-p/327453#M30229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When upgrading to 2.5, it seems that the setImageFormat is ignored by the api. When I set the image format to png, the actual request goes out as .jpeg. The same code using version 2.4 of the api, works as expected. Here is the code for the wms service:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;topoBaseLayer = new esri.layers.WMSLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://wms.ess-ws.nrcan.gc.ca/wms/toporama_en" rel="nofollow" target="_blank"&gt;http://wms.ess-ws.nrcan.gc.ca/wms/toporama_en&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;topoBaseLayer.setVisibleLayers(["limits", "vegetation", "builtup_areas", "designated_areas", "hydrography", "hypsography", "water_saturated_soils", "landforms", "constructions", "water_features", "road_network", "railway", "populated_places", "structures", "power_network", "feature_names"]);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;topoBaseLayer.setImageFormat("png");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The network traffic generated by v2.5 is shown in 2.5.jpg and the network traffic generated by v2.4 is shown in 2.4.jpg.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just wondering if this is a bug in the new version or if I'm somehow not sending the request properly.&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;Kurtis.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 16:19:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-v2-5-wmslayer-image-format-bug/m-p/327453#M30229</guid>
      <dc:creator>KurtisPoettcker</dc:creator>
      <dc:date>2011-10-20T16:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript API v2.5 WMSLayer Image Format Bug</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-v2-5-wmslayer-image-format-bug/m-p/327454#M30230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Looks like a bug, thanks for reporting this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the meantime, here's a workaround:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var topoBaseLayer = new esri.layers.WMSLayer("http://wms.ess-ws.nrcan.gc.ca/wms/toporama_en");
topoBaseLayer.setVisibleLayers(["limits", "vegetation", "builtup_areas", "designated_areas", "hydrography", "hypsography", "water_saturated_soils", "landforms", "constructions", "water_features", "road_network", "railway", "populated_places", "structures", "power_network", "feature_names"]);
dojo.connect(topoBaseLayer, 'onLoad', function(lyr) {
&amp;nbsp; lyr.setImageFormat("png");
});
map.addLayer(topoBaseLayer);
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:30:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-v2-5-wmslayer-image-format-bug/m-p/327454#M30230</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2021-12-11T15:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript API v2.5 WMSLayer Image Format Bug</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-v2-5-wmslayer-image-format-bug/m-p/327455#M30231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: abadata&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks so much for the quick reply Derek.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The fix works great.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I appreciate the help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kurtis.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 19:10:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-v2-5-wmslayer-image-format-bug/m-p/327455#M30231</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-10-20T19:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript API v2.5 WMSLayer Image Format Bug</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-v2-5-wmslayer-image-format-bug/m-p/327456#M30232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Gladly. We'll either fix this or update the docs for the next release(2.6).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 19:32:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-v2-5-wmslayer-image-format-bug/m-p/327456#M30232</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-10-20T19:32:19Z</dc:date>
    </item>
  </channel>
</rss>

