<?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: ArcGis corrupts URLs in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-corrupts-urls/m-p/1198052#M78133</link>
    <description>&lt;P&gt;I used a different solution -&amp;nbsp;&lt;A href="https://codepen.io/karrok/pen/OJvzeEx" target="_blank"&gt;https://codepen.io/karrok/pen/OJvzeEx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I used&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;esriConfig.request.interceptors&lt;/LI-CODE&gt;&lt;P&gt;and fetched tiles on my own&lt;/P&gt;</description>
    <pubDate>Mon, 01 Aug 2022 16:06:26 GMT</pubDate>
    <dc:creator>Karrok</dc:creator>
    <dc:date>2022-08-01T16:06:26Z</dc:date>
    <item>
      <title>ArcGis corrupts URLs</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-corrupts-urls/m-p/1197284#M78101</link>
      <description>&lt;P&gt;How can I send a request "as is" without additional URL encoding?&lt;/P&gt;&lt;P&gt;Example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Correct request -&lt;/P&gt;&lt;P&gt;&lt;A href="https://planetarycomputer.microsoft.com/api/data/v1/mosaic/tiles/7557a0b9c1e010154c6c34b5616ce374/WebMercatorQuad/10/174/408@1x.png?pixel_selection=first&amp;amp;assets=red&amp;amp;assets=green&amp;amp;assets=blue&amp;amp;collection=landsat-c2-l2&amp;amp;color_formula=gamma+RGB+2.7%2C+saturation+1.5%2C+sigmoidal+RGB+15+0.55" target="_blank"&gt;https://planetarycomputer.microsoft.com/api/data/v1/mosaic/tiles/7557a0b9c1e010154c6c34b5616ce374/WebMercatorQuad/10/174/408@1x.png?pixel_selection=first&amp;amp;assets=red&amp;amp;assets=green&amp;amp;assets=blue&amp;amp;collection=landsat-c2-l2&amp;amp;color_formula=gamma+RGB+2.7%2C+saturation+1.5%2C+sigmoidal+RGB+15+0.55&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Corrupted request -&amp;nbsp;&lt;A href="https://planetarycomputer.microsoft.com/api/data/v1/mosaic/tiles/7557a0b9c1e010154c6c34b5616ce374/WebMercatorQuad/10/174/408@1x.png?pixel_selection=first&amp;amp;assets=red&amp;amp;assets=green&amp;amp;assets=blue&amp;amp;collection=landsat-c2-l2&amp;amp;color_formula=gamma%2BRGB%2B2.7%2C%2Bsaturation%2B1.5%2C%2Bsigmoidal%2BRGB%2B15%2B0.55" target="_blank"&gt;https://planetarycomputer.microsoft.com/api/data/v1/mosaic/tiles/7557a0b9c1e010154c6c34b5616ce374/WebMercatorQuad/10/174/408@1x.png?pixel_selection=first&amp;amp;assets=red&amp;amp;assets=green&amp;amp;assets=blue&amp;amp;collection=landsat-c2-l2&amp;amp;color_formula=gamma%2BRGB%2B2.7%2C%2Bsaturation%2B1.5%2C%2Bsigmoidal%2BRGB%2B15%2B0.55&lt;/A&gt;&lt;/P&gt;&lt;P&gt;CodePen:&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/karrok/pen/bGvYKrg" target="_blank"&gt;https://codepen.io/karrok/pen/bGvYKrg&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 10:25:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-corrupts-urls/m-p/1197284#M78101</guid>
      <dc:creator>Karrok</dc:creator>
      <dc:date>2022-07-29T10:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGis corrupts URLs</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-corrupts-urls/m-p/1197340#M78103</link>
      <description>&lt;P&gt;Is there a way you can start with a partial URL and then programmatically set the color_formula?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 13:43:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-corrupts-urls/m-p/1197340#M78103</guid>
      <dc:creator>TimDietz</dc:creator>
      <dc:date>2022-07-29T13:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGis corrupts URLs</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-corrupts-urls/m-p/1197482#M78106</link>
      <description>&lt;P&gt;What do you mean by "start with partial"? Did you try to open the correct link with and without&amp;nbsp;&lt;SPAN&gt;color_formula?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If it's possible to apply the coloring setting "on the fly" somewhere in fetchTile, please show me how to do it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, I assume that applying such changes for each tile will have poor performance&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 17:23:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-corrupts-urls/m-p/1197482#M78106</guid>
      <dc:creator>Karrok</dc:creator>
      <dc:date>2022-07-29T17:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGis corrupts URLs</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-corrupts-urls/m-p/1197495#M78107</link>
      <description>&lt;P&gt;Yes.&amp;nbsp; Try&amp;nbsp;&lt;A href="https://planetarycomputer.microsoft.com/api/data/v1/mosaic/tiles/7557a0b9c1e010154c6c34b5616ce374/WebMercatorQuad/10/174/408@1x.png?pixel_selection=first&amp;amp;assets=red&amp;amp;assets=green&amp;amp;assets=blue&amp;amp;collection=landsat-c2-l2" target="_blank"&gt;https://planetarycomputer.microsoft.com/api/data/v1/mosaic/tiles/7557a0b9c1e010154c6c34b5616ce374/WebMercatorQuad/10/174/408@1x.png?pixel_selection=first&amp;amp;assets=red&amp;amp;assets=green&amp;amp;assets=blue&amp;amp;collection=landsat-c2-l2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I do not work with this API so I can't show you.&amp;nbsp; I am just throwing out possibilities.&amp;nbsp; You might have to get the help from someone who does know this API.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 17:31:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-corrupts-urls/m-p/1197495#M78107</guid>
      <dc:creator>TimDietz</dc:creator>
      <dc:date>2022-07-29T17:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGis corrupts URLs</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-corrupts-urls/m-p/1197552#M78109</link>
      <description>&lt;P&gt;As for me with and without&amp;nbsp;&lt;SPAN&gt;color_formula tile looks totally different.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The question is why arcgis request performs url encoding, I need to skip it, try to run a simple plain JS -&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var httpRequest = new XMLHttpRequest();
httpRequest.open('GET', 'https://planetarycomputer.microsoft.com/api/data/v1/mosaic/tiles/7557a0b9c1e010154c6c34b5616ce374/WebMercatorQuad/10/174/408@1x.png?pixel_selection=first&amp;amp;assets=red&amp;amp;assets=green&amp;amp;assets=blue&amp;amp;collection=landsat-c2-l2&amp;amp;color_formula=gamma+RGB+2.7%2C+saturation+1.5%2C+sigmoidal+RGB+15+0.55');
httpRequest.send();&lt;/LI-CODE&gt;&lt;P&gt;correct tile will be loaded, no errors, no url encoding&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 18:25:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-corrupts-urls/m-p/1197552#M78109</guid>
      <dc:creator>Karrok</dc:creator>
      <dc:date>2022-07-29T18:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGis corrupts URLs</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-corrupts-urls/m-p/1197555#M78110</link>
      <description>&lt;P&gt;From&amp;nbsp;&lt;A href="https://doc.arcgis.com/en/arcgis-online/reference/use-url-parameters.htm" target="_blank" rel="noopener"&gt;https://doc.arcgis.com/en/arcgis-online/reference/use-url-parameters.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;"All query parameters must be encoded. URL encoding ensures that valid characters are sent to &lt;SPAN class=""&gt;ArcGIS Online&lt;/SPAN&gt;. Encoding replaces invalid characters with &lt;SPAN class=""&gt;%&lt;/SPAN&gt; followed by their hex equivalent."&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 18:36:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-corrupts-urls/m-p/1197555#M78110</guid>
      <dc:creator>TimDietz</dc:creator>
      <dc:date>2022-07-29T18:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGis corrupts URLs</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-corrupts-urls/m-p/1197563#M78111</link>
      <description>&lt;P&gt;ok, but I'm sending a request not to "&lt;SPAN&gt;ArcGIS Online&lt;/SPAN&gt;", right?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 18:49:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-corrupts-urls/m-p/1197563#M78111</guid>
      <dc:creator>Karrok</dc:creator>
      <dc:date>2022-07-29T18:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGis corrupts URLs</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-corrupts-urls/m-p/1197571#M78112</link>
      <description>&lt;P&gt;Yes, and that's why I said you&amp;nbsp;&lt;SPAN&gt;might have to get the help from someone who does know this API.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 19:01:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-corrupts-urls/m-p/1197571#M78112</guid>
      <dc:creator>TimDietz</dc:creator>
      <dc:date>2022-07-29T19:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGis corrupts URLs</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-corrupts-urls/m-p/1198029#M78125</link>
      <description>&lt;P&gt;I believe the issue is that the color_formula you're trying to use is already encoded.&amp;nbsp; Using decodeURIComponents produces the following parameter:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;gamma+RGB+2.7,+saturation+1.5,+sigmoidal+RGB+15+0.55&lt;/LI-CODE&gt;&lt;P&gt;As shown in the previous example I would recommend you try to configure the base part of the url (before the ? char) and all the parameters separately so you have better control of the URL being requested.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 15:24:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-corrupts-urls/m-p/1198029#M78125</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2022-08-01T15:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGis corrupts URLs</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-corrupts-urls/m-p/1198047#M78132</link>
      <description>&lt;P&gt;...but that doesn't quite give us the final solution as those parameters still have undesired encoding of the '+' sign for spaces.&amp;nbsp; Here's a code pen showing how to configure the parameters correctly:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://codepen.io/john-grayson/pen/ExEozep" target="_blank"&gt;https://codepen.io/john-grayson/pen/ExEozep&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 15:55:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-corrupts-urls/m-p/1198047#M78132</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2022-08-01T15:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGis corrupts URLs</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-corrupts-urls/m-p/1198052#M78133</link>
      <description>&lt;P&gt;I used a different solution -&amp;nbsp;&lt;A href="https://codepen.io/karrok/pen/OJvzeEx" target="_blank"&gt;https://codepen.io/karrok/pen/OJvzeEx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I used&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;esriConfig.request.interceptors&lt;/LI-CODE&gt;&lt;P&gt;and fetched tiles on my own&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 16:06:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-corrupts-urls/m-p/1198052#M78133</guid>
      <dc:creator>Karrok</dc:creator>
      <dc:date>2022-08-01T16:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGis corrupts URLs</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-corrupts-urls/m-p/1198224#M78138</link>
      <description>&lt;P&gt;I would recommend against the use of the interceptor for this use case.&amp;nbsp; Just make sure you specify the parameters correctly and you can just extend the BaseTileLayer, which will help a lot as you try to use other parameters and options from these services.&amp;nbsp; Using the interceptor to ignore improperly formatted URL parameters might lead to other issues as you try other settings.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 19:55:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-corrupts-urls/m-p/1198224#M78138</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2022-08-01T19:55:58Z</dc:date>
    </item>
  </channel>
</rss>

