<?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: WmsLayer extract getMap request URL in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wmslayer-extract-getmap-request-url/m-p/173046#M4289</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think you can use the following code: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#WmsLayerSimple" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#WmsLayerSimple&lt;/A&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp; var l = MyMap.Layers["OtherWMSLayer"] as WmsLayer; &amp;nbsp;&amp;nbsp; l.GetUrl(MyMap.Extent, (int)MyMap.ActualWidth,(int) MyMap.ActualHeight, (a, b, c, d) =&amp;gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var url = a; &amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Feb 2012 16:36:27 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2012-02-09T16:36:27Z</dc:date>
    <item>
      <title>WmsLayer extract getMap request URL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wmslayer-extract-getmap-request-url/m-p/173045#M4288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using the WmsLayer to quite a nice result. I use a getCapabilities request to get a list of available layer IDs and present them to the user then add those selected (via a ListBox or some such GUI) to the Layers property for my WmsLayer. I've been letting the class determine version numbers and all the other usual parameters. The thing I'd like to accomplish is at some point get the full getMap URL the WmsLayer is presumably using to get these images back from the server and plot them. I'd like to record this and print this to sections of the UI and log files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to get this URL?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 16:04:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wmslayer-extract-getmap-request-url/m-p/173045#M4288</guid>
      <dc:creator>ZachPride</dc:creator>
      <dc:date>2012-02-09T16:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: WmsLayer extract getMap request URL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wmslayer-extract-getmap-request-url/m-p/173046#M4289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think you can use the following code: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#WmsLayerSimple" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#WmsLayerSimple&lt;/A&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp; var l = MyMap.Layers["OtherWMSLayer"] as WmsLayer; &amp;nbsp;&amp;nbsp; l.GetUrl(MyMap.Extent, (int)MyMap.ActualWidth,(int) MyMap.ActualHeight, (a, b, c, d) =&amp;gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var url = a; &amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 16:36:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wmslayer-extract-getmap-request-url/m-p/173046#M4289</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2012-02-09T16:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: WmsLayer extract getMap request URL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wmslayer-extract-getmap-request-url/m-p/173047#M4290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ah, those delegate params contain a lot of useful data! Thanks for showing me how that works!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a problem however. When I debug wherein I do some simple assignments to variables I get a unhandled exception. It's under the ManagedRuntimeError category, as a XmlException: Data at the root level is invalid. Are there any ideas why this comes up? My skills in lambda expressions aren't so hot so I may be implementing something incorrectly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 19:45:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wmslayer-extract-getmap-request-url/m-p/173047#M4290</guid>
      <dc:creator>ZachPride</dc:creator>
      <dc:date>2012-02-09T19:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: WmsLayer extract getMap request URL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wmslayer-extract-getmap-request-url/m-p/173048#M4291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here is what I'm attempting to use to get at the onComplete params:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
newWmsLayer.GetUrl(MyMap.Extent, (int)MyMap.ActualWidth, (int)MyMap.ActualHeight, (a, b, c, d) =&amp;gt; { onGetUrlComplete(a, b, c, d); });

...

private void onGetUrlComplete(string url, int x, int y, ESRI.ArcGIS.Client.Geometry.Envelope env)
&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; MessageBox.Show(url);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Obviously I'm going to do some more useful functions rather than show a MessageBox, that's just for a quick test.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:57:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wmslayer-extract-getmap-request-url/m-p/173048#M4291</guid>
      <dc:creator>ZachPride</dc:creator>
      <dc:date>2021-12-11T08:57:03Z</dc:date>
    </item>
  </channel>
</rss>

