<?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: WebTiledLayer Template Modification in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/webtiledlayer-template-modification/m-p/1021367#M9725</link>
    <description>&lt;P&gt;I have logged an enhancement request on our internal tracker.&amp;nbsp; We will consider adding support for updating/refreshing WebTiledLayer in the future, now that there's a specific use-case for this extra functionality.&amp;nbsp; Thank you for the suggestion!&lt;/P&gt;&lt;P&gt;It wouldn't be &lt;EM&gt;quite&lt;/EM&gt; as simple as changing URL on new requests -- there's also cache invalidation, canceling in-flight requests, and redrawing involved -- but it's absolutely doable.&amp;nbsp; This scenario just isn't implemented in Runtime yet.&lt;/P&gt;&lt;P&gt;Today, your best bet is to create different WebTiledLayers for different templates.&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jan 2021 00:44:34 GMT</pubDate>
    <dc:creator>MatveiStefarov</dc:creator>
    <dc:date>2021-01-29T00:44:34Z</dc:date>
    <item>
      <title>WebTiledLayer Template Modification</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/webtiledlayer-template-modification/m-p/1021101#M9714</link>
      <description>&lt;P&gt;I am attempting to use a WebTiledLayer and a query param to toggle labelling on and off based off the user's preferences, i.e. labels=0 or labels=1 to toggle them on and off.&amp;nbsp; The problem is, I apparently can't do this after the layer has been loaded.&amp;nbsp; Is there any way to get around this limitation, or what is the correct way if I needed to change that template on the fly?&lt;/P&gt;&lt;P&gt;Should I not be able to change that and trigger a reload on the layer in the map?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 17:11:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/webtiledlayer-template-modification/m-p/1021101#M9714</guid>
      <dc:creator>NathanRaley</dc:creator>
      <dc:date>2021-01-28T17:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: WebTiledLayer Template Modification</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/webtiledlayer-template-modification/m-p/1021198#M9718</link>
      <description>&lt;P&gt;Hello Nathan!&amp;nbsp; It is true, the&amp;nbsp;TemplateUri of a WebTiledLayer cannot be changed after the layer is loaded.&lt;/P&gt;&lt;P&gt;You may be able to intercept and rewrite network requests with the global &lt;A href="https://developers.arcgis.com/net/wpf/api-reference/html/E_Esri_ArcGISRuntime_Http_ArcGISHttpClientHandler_HttpRequestBegin.htm" target="_self"&gt;ArcGISHttpClientHandler.HttpRequestBegin event&lt;/A&gt;, but I don't think it will solve your problem. Intercepting network requests will only affect new tile requests. It will not refresh any previously-requested, cached tiles.&lt;/P&gt;&lt;P&gt;Have you tried creating two WebTiledLayers, one with labels=0 and another with labels=1? Your application can toggle layer visibility so that only one is visible at a time. That's the best workaround that I can think of.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 19:44:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/webtiledlayer-template-modification/m-p/1021198#M9718</guid>
      <dc:creator>MatveiStefarov</dc:creator>
      <dc:date>2021-01-28T19:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: WebTiledLayer Template Modification</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/webtiledlayer-template-modification/m-p/1021202#M9719</link>
      <description>&lt;P&gt;What is the reasoning behind not allowing the template to change?&amp;nbsp; It's merely changing the requests being sent is it not?&amp;nbsp; I'm not sure why it should be able to be updated and then trigger a refresh on the tiles, or at the very least make future requests honor the new template.&lt;BR /&gt;&lt;BR /&gt;I was trying to avoid doubling up on all of our layers.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 19:37:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/webtiledlayer-template-modification/m-p/1021202#M9719</guid>
      <dc:creator>NathanRaley</dc:creator>
      <dc:date>2021-01-28T19:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: WebTiledLayer Template Modification</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/webtiledlayer-template-modification/m-p/1021367#M9725</link>
      <description>&lt;P&gt;I have logged an enhancement request on our internal tracker.&amp;nbsp; We will consider adding support for updating/refreshing WebTiledLayer in the future, now that there's a specific use-case for this extra functionality.&amp;nbsp; Thank you for the suggestion!&lt;/P&gt;&lt;P&gt;It wouldn't be &lt;EM&gt;quite&lt;/EM&gt; as simple as changing URL on new requests -- there's also cache invalidation, canceling in-flight requests, and redrawing involved -- but it's absolutely doable.&amp;nbsp; This scenario just isn't implemented in Runtime yet.&lt;/P&gt;&lt;P&gt;Today, your best bet is to create different WebTiledLayers for different templates.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 00:44:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/webtiledlayer-template-modification/m-p/1021367#M9725</guid>
      <dc:creator>MatveiStefarov</dc:creator>
      <dc:date>2021-01-29T00:44:34Z</dc:date>
    </item>
  </channel>
</rss>

