<?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 Leaflet dynamicMapLayer - tile vs export in Open Source Mapping Libraries Ques.</title>
    <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/leaflet-dynamicmaplayer-tile-vs-export/m-p/1374897#M644</link>
    <description>&lt;P&gt;Hi, I have a map service that I am trying to display on my basemap using Leaflet. The map service is public and is hosted by an ArcGIS Enterprise site. It works, but sometimes the images are quite slow to load. Whereas on ArcGIS Online there's no issue at all. I notice that the two systems use two very different methods to pull the images. If you go to ArcGIS Online, eg&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.arcgis.com/home/webmap/viewer.html?url=https%3A%2F%2Fpublicmap01.co.st-clair.il.us%2Farcgis%2Frest%2Fservices%2FImagery23%2FMapServer&amp;amp;source=sd" target="_blank"&gt;https://www.arcgis.com/home/webmap/viewer.html?url=https%3A%2F%2Fpublicmap01.co.st-clair.il.us%2Farcgis%2Frest%2Fservices%2FImagery23%2FMapServer&amp;amp;source=sd&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and start zooming in, you'll notice it pulls images with URLs like&amp;nbsp;&lt;A href="https://publicmap01.co.st-clair.il.us/arcgis/rest/services/Imagery23/MapServer/tile/12/1572/1022" target="_blank"&gt;https://publicmap01.co.st-clair.il.us/arcgis/rest/services/Imagery23/MapServer/tile/12/1572/1022&lt;/A&gt;&amp;nbsp;These load extremely fast because I'm assuming they are cached in some way.&lt;/P&gt;&lt;P&gt;But esri-leaflet does something quite different, loading images like&amp;nbsp;&lt;A href="https://publicmap01.co.st-clair.il.us/arcgis/rest/services/Imagery23/MapServer/export?bbox=-10031764.351122944%2C4658368.486921257%2C-10031413.218524259%2C4658176.200021977&amp;amp;size=588%2C322&amp;amp;dpi=96&amp;amp;format=png32&amp;amp;transparent=true&amp;amp;bboxSR=3857&amp;amp;imageSR=3857&amp;amp;f=image" target="_blank"&gt;https://publicmap01.co.st-clair.il.us/arcgis/rest/services/Imagery23/MapServer/export?bbox=-10031764.351122944%2C4658368.486921257%2C-10031413.218524259%2C4658176.200021977&amp;amp;size=588%2C322&amp;amp;dpi=96&amp;amp;format=png32&amp;amp;transparent=true&amp;amp;bboxSR=3857&amp;amp;imageSR=3857&amp;amp;f=image&lt;/A&gt;&amp;nbsp;which often takes several seconds.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to have esri-leaflet use the cached tiles instead? Codesandbox example:&amp;nbsp;&lt;A href="https://codesandbox.io/p/sandbox/frosty-pine-qmsdwh" target="_blank"&gt;https://codesandbox.io/p/sandbox/frosty-pine-qmsdwh&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jan 2024 16:58:18 GMT</pubDate>
    <dc:creator>DanielDormont</dc:creator>
    <dc:date>2024-01-26T16:58:18Z</dc:date>
    <item>
      <title>Leaflet dynamicMapLayer - tile vs export</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/leaflet-dynamicmaplayer-tile-vs-export/m-p/1374897#M644</link>
      <description>&lt;P&gt;Hi, I have a map service that I am trying to display on my basemap using Leaflet. The map service is public and is hosted by an ArcGIS Enterprise site. It works, but sometimes the images are quite slow to load. Whereas on ArcGIS Online there's no issue at all. I notice that the two systems use two very different methods to pull the images. If you go to ArcGIS Online, eg&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.arcgis.com/home/webmap/viewer.html?url=https%3A%2F%2Fpublicmap01.co.st-clair.il.us%2Farcgis%2Frest%2Fservices%2FImagery23%2FMapServer&amp;amp;source=sd" target="_blank"&gt;https://www.arcgis.com/home/webmap/viewer.html?url=https%3A%2F%2Fpublicmap01.co.st-clair.il.us%2Farcgis%2Frest%2Fservices%2FImagery23%2FMapServer&amp;amp;source=sd&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and start zooming in, you'll notice it pulls images with URLs like&amp;nbsp;&lt;A href="https://publicmap01.co.st-clair.il.us/arcgis/rest/services/Imagery23/MapServer/tile/12/1572/1022" target="_blank"&gt;https://publicmap01.co.st-clair.il.us/arcgis/rest/services/Imagery23/MapServer/tile/12/1572/1022&lt;/A&gt;&amp;nbsp;These load extremely fast because I'm assuming they are cached in some way.&lt;/P&gt;&lt;P&gt;But esri-leaflet does something quite different, loading images like&amp;nbsp;&lt;A href="https://publicmap01.co.st-clair.il.us/arcgis/rest/services/Imagery23/MapServer/export?bbox=-10031764.351122944%2C4658368.486921257%2C-10031413.218524259%2C4658176.200021977&amp;amp;size=588%2C322&amp;amp;dpi=96&amp;amp;format=png32&amp;amp;transparent=true&amp;amp;bboxSR=3857&amp;amp;imageSR=3857&amp;amp;f=image" target="_blank"&gt;https://publicmap01.co.st-clair.il.us/arcgis/rest/services/Imagery23/MapServer/export?bbox=-10031764.351122944%2C4658368.486921257%2C-10031413.218524259%2C4658176.200021977&amp;amp;size=588%2C322&amp;amp;dpi=96&amp;amp;format=png32&amp;amp;transparent=true&amp;amp;bboxSR=3857&amp;amp;imageSR=3857&amp;amp;f=image&lt;/A&gt;&amp;nbsp;which often takes several seconds.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to have esri-leaflet use the cached tiles instead? Codesandbox example:&amp;nbsp;&lt;A href="https://codesandbox.io/p/sandbox/frosty-pine-qmsdwh" target="_blank"&gt;https://codesandbox.io/p/sandbox/frosty-pine-qmsdwh&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 16:58:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/leaflet-dynamicmaplayer-tile-vs-export/m-p/1374897#M644</guid>
      <dc:creator>DanielDormont</dc:creator>
      <dc:date>2024-01-26T16:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Leaflet dynamicMapLayer - tile vs export</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/leaflet-dynamicmaplayer-tile-vs-export/m-p/1375001#M645</link>
      <description>&lt;P&gt;Hm. I partly answered my own question. If I use `esri.tiledMapLayer` instead of `esri.dynamicMapLayer` with the exact same URL, I see the tiled images.&lt;/P&gt;&lt;P&gt;So I guess my real question is, when displaying data from a map service, when should you use dynamicMapLayer vs tiledMapLayer?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 18:59:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/leaflet-dynamicmaplayer-tile-vs-export/m-p/1375001#M645</guid>
      <dc:creator>DanielDormont</dc:creator>
      <dc:date>2024-01-26T18:59:12Z</dc:date>
    </item>
  </channel>
</rss>

