<?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: Custom Layer with Runtime SDK in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/custom-layer-with-runtime-sdk/m-p/602124#M7375</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct - returning the raw image data isn't supported in the current runtime. You could spin up a simple local http service using '&lt;SPAN style="color: #333333; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px;"&gt;HttpListener'&lt;/SPAN&gt; to route the requests through on localhost. That also gives you some nice thread isolation. There's quite a few samples online showing how to make a simple little localhost server that starts up with your app.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jan 2016 18:40:50 GMT</pubDate>
    <dc:creator>dotMorten_esri</dc:creator>
    <dc:date>2016-01-28T18:40:50Z</dc:date>
    <item>
      <title>Custom Layer with Runtime SDK</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/custom-layer-with-runtime-sdk/m-p/602118#M7369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how can I write my own custom layer? I was able to get this working before using the dynamic layer in the wpf sdk but it doesn't seem to be supported anymore with the new runtime engine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 19:13:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/custom-layer-with-runtime-sdk/m-p/602118#M7369</guid>
      <dc:creator>AndreaWeeg</dc:creator>
      <dc:date>2016-01-26T19:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Layer with Runtime SDK</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/custom-layer-with-runtime-sdk/m-p/602119#M7370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Could you provide more details what you would like to achieve and I'll have a look on the options. Especially if the targeted functionality is tile or graphic based.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Antti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 09:55:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/custom-layer-with-runtime-sdk/m-p/602119#M7370</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2016-01-28T09:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Layer with Runtime SDK</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/custom-layer-with-runtime-sdk/m-p/602120#M7371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have data from other sources that i need to display, i am drawing it out as a bitmap image that i was able to return to the map using the dynamiclayer abstract class but now the same code doesn't work with this new runtime engine. I think its supported in the java runtime, ios runtime and javascript but not in .net.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 13:37:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/custom-layer-with-runtime-sdk/m-p/602120#M7371</guid>
      <dc:creator>AndreaWeeg</dc:creator>
      <dc:date>2016-01-28T13:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Layer with Runtime SDK</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/custom-layer-with-runtime-sdk/m-p/602121#M7372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm also interested in this. Previously I could overlay a WPF object as a map layer to display some dynamic (local) raster information. This functionality as it exists in the .NET runtime isn't completely adequate because it requires that I use a MapOverlay which exists above the rest of the map layers. It would be great to be able to place such a layer inside the z-ordering stack of the other layers rather than forcing it to the top above more important situational layers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 16:46:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/custom-layer-with-runtime-sdk/m-p/602121#M7372</guid>
      <dc:creator>AaronHigh</dc:creator>
      <dc:date>2016-01-28T16:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Layer with Runtime SDK</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/custom-layer-with-runtime-sdk/m-p/602122#M7373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can inherit from DynamnicMapServiceLayer to create a custom layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; public class CustomLayer : Esri.ArcGISRuntime.Layers.DynamicMapServiceLayer
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public CustomLayer() : base() { } 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; protected override Task&amp;lt;DynamicLayerInitializationInfo&amp;gt; OnInitializeDynamicLayerRequestedAsync()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DynamicLayerInitializationInfo info = new DynamicLayerInitializationInfo(SpatialReferences.Wgs84)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SupportsRotation = false,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SupportsWrapAround = false,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Extent = new Envelope(-180, -90, 180, 90, SpatialReferences.Wgs84),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return Task.FromResult(info);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; protected override Task&amp;lt;Uri&amp;gt; GetImageUriAsync(ImageParameters properties, System.Threading.CancellationToken token)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string url = string.Format(CultureInfo.InvariantCulture, 
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.domain.com%2FMyMapService%3Fbbox%3D" target="_blank"&gt;http://www.domain.com/MyMapService?bbox=&lt;/A&gt;&lt;SPAN&gt;{0},{1},{2},{3}&amp;amp;width={4}&amp;amp;height={5}",&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; properties.Extent.XMin, properties.Extent.YMin, properties.Extent.XMax, properties.Extent.XMax,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; properties.Width, properties.Height);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return Task.FromResult(new Uri(url));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:40:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/custom-layer-with-runtime-sdk/m-p/602122#M7373</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2021-12-12T16:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Layer with Runtime SDK</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/custom-layer-with-runtime-sdk/m-p/602123#M7374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yeah but that returns a url, I need to return the image itself. There is a GetImageAsync method that can be overwritten in the dynamiclayer that I was using to do that, but that doesn't work anymore since in this version the constructor is internal so I can't inherit the abstract class anymore.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 18:35:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/custom-layer-with-runtime-sdk/m-p/602123#M7374</guid>
      <dc:creator>AndreaWeeg</dc:creator>
      <dc:date>2016-01-28T18:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Layer with Runtime SDK</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/custom-layer-with-runtime-sdk/m-p/602124#M7375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct - returning the raw image data isn't supported in the current runtime. You could spin up a simple local http service using '&lt;SPAN style="color: #333333; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px;"&gt;HttpListener'&lt;/SPAN&gt; to route the requests through on localhost. That also gives you some nice thread isolation. There's quite a few samples online showing how to make a simple little localhost server that starts up with your app.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 18:40:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/custom-layer-with-runtime-sdk/m-p/602124#M7375</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2016-01-28T18:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Layer with Runtime SDK</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/custom-layer-with-runtime-sdk/m-p/602125#M7376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that's the path I started going down this morning &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;. Do you think they'll be support for this in a future release? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 18:44:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/custom-layer-with-runtime-sdk/m-p/602125#M7376</guid>
      <dc:creator>AndreaWeeg</dc:creator>
      <dc:date>2016-01-28T18:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Layer with Runtime SDK</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/custom-layer-with-runtime-sdk/m-p/602126#M7377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are no plans for extending this in the 10.2.x releases.&lt;/P&gt;&lt;P&gt;This might be added to a future Quartz release, but custom dynamic layers aren't currently supported in Quartz at all. I'll take it as feedback for future enhancements&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 18:49:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/custom-layer-with-runtime-sdk/m-p/602126#M7377</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2016-01-28T18:49:21Z</dc:date>
    </item>
  </channel>
</rss>

