<?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: How to diagnose error rendering Esri_2020_Land_Cover_V2 in Leaflet? in Open Source Mapping Libraries Ques.</title>
    <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/how-to-diagnose-error-rendering-esri-2020-land/m-p/1081727#M124</link>
    <description>&lt;P&gt;A solution is outlined here with a live demo and code sample:&amp;nbsp;&lt;A href="https://github.com/Esri/esri-leaflet/issues/726#issuecomment-884481812" target="_blank"&gt;https://github.com/Esri/esri-leaflet/issues/726#issuecomment-884481812&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Jul 2021 14:08:49 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-07-22T14:08:49Z</dc:date>
    <item>
      <title>How to diagnose error rendering Esri_2020_Land_Cover_V2 in Leaflet?</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/how-to-diagnose-error-rendering-esri-2020-land/m-p/1079636#M119</link>
      <description>&lt;P&gt;Dear Community.&lt;BR /&gt;&lt;BR /&gt;I am trying to load in ESRI's new 10m land cover data to a Leaflet map, but having trouble.&amp;nbsp; I can call the WMS and receive a response, e.g.:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;`d3.json('&lt;A href="https://tiledimageservices.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/Esri_2020_Land_Cover_V2/ImageServer?f=json" target="_blank" rel="noopener"&gt;https://tiledimageservices.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/Esri_2020_Land_Cover_V2/ImageServer?f=json&lt;/A&gt;')`&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;returns an Object:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;A&gt;Object {&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;DIV class="observablehq--field"&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN class="observablehq--key"&gt;currentVersion&lt;/SPAN&gt;: &lt;SPAN&gt;&lt;SPAN class="observablehq--number"&gt;10.81&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV class="observablehq--field"&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN class="observablehq--key"&gt;name&lt;/SPAN&gt;: &lt;SPAN&gt;&lt;SPAN class="observablehq--string"&gt;"Esri_2020_Land_Cover_V2"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV class="observablehq--field"&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN class="observablehq--key"&gt;serviceDescription&lt;/SPAN&gt;: &lt;SPAN&gt;&lt;SPAN class="observablehq--string"&gt;""&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV class="observablehq--field"&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN class="observablehq--key"&gt;description&lt;/SPAN&gt;: &lt;SPAN&gt;&lt;SPAN class="observablehq--string"&gt;""&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV class="observablehq--field"&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN class="observablehq--key"&gt;type&lt;/SPAN&gt;: &lt;SPAN&gt;&lt;SPAN class="observablehq--string"&gt;"ImageServer"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV class="observablehq--field"&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN class="observablehq--key"&gt;capabilities&lt;/SPAN&gt;: &lt;SPAN&gt;&lt;SPAN class="observablehq--string"&gt;"Image,TilesOnly"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV class="observablehq--field"&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN class="observablehq--key"&gt;copyrightText&lt;/SPAN&gt;: &lt;SPAN&gt;&lt;SPAN class="observablehq--string"&gt;""&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV class="observablehq--field"&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN class="observablehq--key"&gt;serviceItemId&lt;/SPAN&gt;: &lt;SPAN&gt;&lt;SPAN class="observablehq--string"&gt;"d6642f8a4f6d4685a24ae2dc0c73d4ac"&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;...&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;However, when I try using esri.imageMapLayer to reference the resource, I start getting errors.&amp;nbsp; &amp;nbsp;E.g. this code returns a 400 'Bad Request'&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Esri_2020_Land_Cover = () =&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;esri.imageMapLayer({ // I think we must use .imageMapLayer b/c the REST API service is an ImageServer rather than a map server&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;url: '&lt;A href="https://tiledimageservices.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/Esri_2020_Land_Cover_V2/ImageServer" target="_blank" rel="noopener"&gt;https://tiledimageservices.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/Esri_2020_Land_Cover_V2/ImageServerhttps://coast.noaa.gov/arcgis/rest/services/Imagery/3Band_CIR_8Bit_Imagery/ImageServer?f=json&lt;/A&gt;',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;attribution:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;'Esri_2020_Land_Cover_V2 ImageServer'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;//maxZoom: 17&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;})&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV class="observablehq--field"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="observablehq--field"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;The browser network tells me that the request fails at:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://tiledimageservices.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/Esri_2020_Land_Cover_V2/ImageServer/exportImage?bbox=-8029098.325131485%2C5067545.664222334%2C-8021454.622302968%2C5062768.34995451&amp;amp;size=400%2C250&amp;amp;format=jpgpng&amp;amp;transparent=true&amp;amp;bboxSR=3857&amp;amp;imageSR=3857&amp;amp;f=image" target="_blank" rel="noopener"&gt;https://tiledimageservices.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/Esri_2020_Land_Cover_V2/ImageServer/exportImage?bbox=-8029098.325131485%2C5067545.664222334%2C-8021454.622302968%2C5062768.34995451&amp;amp;size=400%2C250&amp;amp;format=jpgpng&amp;amp;transparent=true&amp;amp;bboxSR=3857&amp;amp;imageSR=3857&amp;amp;f=image&lt;/A&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV class="observablehq--field"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="observablehq--field"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;This looks like a server-side issue?&amp;nbsp; If so, how can I flag it to the ESRI team? It would be great to be able to use this fantastic new layer dynamically...&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV class="observablehq--field"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="observablehq--field"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;It's noteworthy that this same pattern works just fine for similar ArcGIS image server layers, e.g.&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Band_CIR_image = () =&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;esri.imageMapLayer({ // I think we must use .imageMapLayer b/c the REST API service is an ImageServer rather than a map server&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;url: '&lt;A href="https://coast.noaa.gov/arcgis/rest/services/Imagery/3Band_CIR_8Bit_Imagery/ImageServer?f=json" target="_blank" rel="noopener"&gt;https://coast.noaa.gov/arcgis/rest/services/Imagery/3Band_CIR_8Bit_Imagery/ImageServer?f=json&lt;/A&gt;',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;attribution:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;'NOAA Office for Coastal Management: &lt;A href="https://coast.noaa.gov/arcgis/rest/services/Imagery/3Band_CIR_8Bit_Imagery/ImageServer" target="_blank" rel="noopener"&gt;https://coast.noaa.gov/arcgis/rest/services/Imagery/3Band_CIR_8Bit_Imagery/ImageServer&lt;/A&gt;'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;//maxZoom: 17&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;})&lt;/FONT&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 25 Aug 2023 20:15:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/how-to-diagnose-error-rendering-esri-2020-land/m-p/1079636#M119</guid>
      <dc:creator>aaronkyle</dc:creator>
      <dc:date>2023-08-25T20:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to diagnose error rendering Esri_2020_Land_Cover_V2 in Leaflet?</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/how-to-diagnose-error-rendering-esri-2020-land/m-p/1079790#M120</link>
      <description>&lt;P&gt;Hi, thanks for the question. It looks like that service is a "Tiled Imagery Layer" (see that on the &lt;A href="https://www.arcgis.com/home/item.html?id=d6642f8a4f6d4685a24ae2dc0c73d4ac" target="_self"&gt;item details page&lt;/A&gt;). Given that, I think it would probably be better to use&amp;nbsp;&lt;SPAN&gt;L.esri.tiledMapLayer().&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I tested using L.esri.tiledMapLayer():&amp;nbsp;&lt;A href="https://codepen.io/gavinr/pen/QWvvdpm?editors=0010" target="_blank" rel="noopener"&gt;https://codepen.io/gavinr/pen/QWvvdpm?editors=0010&lt;/A&gt;&amp;nbsp;If you open the developer console, you'll see the message "L.esri.TiledMapLayer is using a non-mercator spatial reference". In other words, the service is published in a non-web-mercator WKID. Specifically it's using WGS84 (4326). So the first task will be to get that 4326 layer onto your map. See these resources:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="http://esri.github.io/esri-leaflet/examples/non-mercator-projection.html" target="_blank" rel="noopener"&gt;http://esri.github.io/esri-leaflet/examples/non-mercator-projection.html&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://leafletjs.com/reference-1.7.1.html#map-crs" target="_blank" rel="noopener"&gt;https://leafletjs.com/reference-1.7.1.html#map-crs&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://leafletjs.com/reference-1.7.1.html#crs-l-crs-epsg4326" target="_blank" rel="noopener"&gt;https://leafletjs.com/reference-1.7.1.html#crs-l-crs-epsg4326&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Additionally, if you look more at that service, you'll notice the format is&amp;nbsp;LERC2D. I do not think L.esri.tiledMapLayer() will currently support that. There was a discussion on supporting this in Esri Leaflet:&amp;nbsp;&lt;A href="https://github.com/Esri/esri-leaflet/issues/726" target="_blank" rel="noopener"&gt;https://github.com/Esri/esri-leaflet/issues/726&lt;/A&gt;&lt;/P&gt;&lt;P&gt;That issue was closed due to lack of activity, but perhaps with interest in this new service (and others like it)&amp;nbsp; now is the time. If you'd like to chime in on that issue or create a new one, your feedback (or code contributions, if you figure out how to do it) would be appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 18:20:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/how-to-diagnose-error-rendering-esri-2020-land/m-p/1079790#M120</guid>
      <dc:creator>GavinRehkemper</dc:creator>
      <dc:date>2021-07-16T18:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to diagnose error rendering Esri_2020_Land_Cover_V2 in Leaflet?</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/how-to-diagnose-error-rendering-esri-2020-land/m-p/1079972#M121</link>
      <description>&lt;P&gt;I Gavin! Thank you for your time and help!&amp;nbsp; I see that your CodePen was still not able to load the layer? Switching to `&lt;SPAN&gt;tiledMapLayer` s gives me a 404 on called resources, e.g.:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;tiledimageservices.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/Esri_2020_Land_Cover_V2/ImageServer/tile/13/3060/2455&lt;/P&gt;&lt;P&gt;(plus a stack of about 5 other failed requests). This still looks like a server-side issue?&lt;/P&gt;&lt;P&gt;Thanks also for your notes and guidance on projections. I am new to this and learning.&amp;nbsp; WGS(84) (4326) is (in my understanding) the correct default for Leaflet, so that shouldn't be an issue?&lt;/P&gt;&lt;P&gt;Thank you for pointing me to the GitHub issues. I'll also raise an additional comment there.&lt;/P&gt;&lt;P&gt;It's weird, b/c I have no issue with similar layers.&amp;nbsp; Here's an example:&lt;/P&gt;&lt;P&gt;&lt;A href="https://observablehq.com/@ambassadors/3band_cir_8bit_imagery" target="_blank"&gt;https://observablehq.com/@ambassadors/3band_cir_8bit_imagery&lt;/A&gt;&lt;/P&gt;&lt;P&gt;From your comments, I still have to learn more to distinguish how / in what format different layers are served.&amp;nbsp; It's still a bit cryptic to me &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; thank you for your time and guidance!&lt;/P&gt;&lt;P&gt;Happy for more help to diagnose and resolve!&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Aaron&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jul 2021 01:50:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/how-to-diagnose-error-rendering-esri-2020-land/m-p/1079972#M121</guid>
      <dc:creator>aaronkyle</dc:creator>
      <dc:date>2021-07-17T01:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to diagnose error rendering Esri_2020_Land_Cover_V2 in Leaflet?</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/how-to-diagnose-error-rendering-esri-2020-land/m-p/1080866#M122</link>
      <description>&lt;P&gt;Aaron, thanks for commenting as well in the related GitHub issue for esri-leaflet. I've continued with some fresh comments over there.&amp;nbsp;&lt;A href="https://github.com/Esri/esri-leaflet/issues/726" target="_blank" rel="noopener nofollow noreferrer"&gt;https://github.com/Esri/esri-leaflet/issues/726&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;But yes, we'll need to get Leaflet into WGS84 (wkid 4326) instead of its default Spherical Mercator (wkid 3857). Then, we'll look into experimenting with decoding LERC tiles manually.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 15:20:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/how-to-diagnose-error-rendering-esri-2020-land/m-p/1080866#M122</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-07-20T15:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to diagnose error rendering Esri_2020_Land_Cover_V2 in Leaflet?</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/how-to-diagnose-error-rendering-esri-2020-land/m-p/1081237#M123</link>
      <description>&lt;P&gt;Dear Jacob, Gavin and Community:&lt;BR /&gt;I really appreciate your time and help on this!&amp;nbsp; Having re-worked through Gavin's initial reply, I learned a lot about diagnosing errors (I found the console messages I initially missed in my first reply), determining map service types, etc.&amp;nbsp; This is all very helpful!&amp;nbsp; Thank you.&amp;nbsp; I caught another message form Jacob via GitHub [&lt;A href="https://github.com/Esri/esri-leaflet/issues/726" target="_blank"&gt;https://github.com/Esri/esri-leaflet/issues/726&lt;/A&gt;]: it's incredible the help you're sharing! Thank you so much.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jul 2021 12:05:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/how-to-diagnose-error-rendering-esri-2020-land/m-p/1081237#M123</guid>
      <dc:creator>aaronkyle</dc:creator>
      <dc:date>2021-07-21T12:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to diagnose error rendering Esri_2020_Land_Cover_V2 in Leaflet?</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/how-to-diagnose-error-rendering-esri-2020-land/m-p/1081727#M124</link>
      <description>&lt;P&gt;A solution is outlined here with a live demo and code sample:&amp;nbsp;&lt;A href="https://github.com/Esri/esri-leaflet/issues/726#issuecomment-884481812" target="_blank"&gt;https://github.com/Esri/esri-leaflet/issues/726#issuecomment-884481812&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 14:08:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/how-to-diagnose-error-rendering-esri-2020-land/m-p/1081727#M124</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-07-22T14:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to diagnose error rendering Esri_2020_Land_Cover_V2 in Leaflet?</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/how-to-diagnose-error-rendering-esri-2020-land/m-p/1081834#M125</link>
      <description>&lt;P&gt;Wow Jacob!&amp;nbsp; This is beautiful (and very complex).&amp;nbsp; Thank you!&lt;BR /&gt;For fun, here's your code ported to an Observable notebook--properly attributed and licensed &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;&lt;A href="https://observablehq.com/@aaronkyle/esri-2020-land-cover" target="_blank"&gt;https://observablehq.com/@aaronkyle/esri-2020-land-cover&lt;/A&gt;&lt;BR /&gt;Thanks for your generosity and expertise!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 16:51:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/how-to-diagnose-error-rendering-esri-2020-land/m-p/1081834#M125</guid>
      <dc:creator>aaronkyle</dc:creator>
      <dc:date>2021-07-22T16:51:19Z</dc:date>
    </item>
  </channel>
</rss>

