<?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 Looking for WMS with SLD sample in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/looking-for-wms-with-sld-sample/m-p/359969#M8516</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't see any working samples of requesting WMS layers with Style Layer Descriptors in the Flex API documentation. I am trying to apply my own SLD to an external WMS service.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone done this successfully? If so, any samples in Flex would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Jun 2011 17:34:31 GMT</pubDate>
    <dc:creator>KyleDraganov</dc:creator>
    <dc:date>2011-06-01T17:34:31Z</dc:date>
    <item>
      <title>Looking for WMS with SLD sample</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/looking-for-wms-with-sld-sample/m-p/359969#M8516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't see any working samples of requesting WMS layers with Style Layer Descriptors in the Flex API documentation. I am trying to apply my own SLD to an external WMS service.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone done this successfully? If so, any samples in Flex would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2011 17:34:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/looking-for-wms-with-sld-sample/m-p/359969#M8516</guid>
      <dc:creator>KyleDraganov</dc:creator>
      <dc:date>2011-06-01T17:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for WMS with SLD sample</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/looking-for-wms-with-sld-sample/m-p/359970#M8517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; to use SLD with WMS layer you can do:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myLayerWMS.proxyURL = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://mySite.com/proxy.php" rel="nofollow" target="_blank"&gt;http://mySite.com/proxy.php&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myLayerWMS.url = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://myGisServer/services/myServce/MapServer/WMSServer?SLD=url_to_xml" rel="nofollow" target="_blank"&gt;http://myGisServer/services/myServce/MapServer/WMSServer?SLD=url_to_xml&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in proxy.php update the url and replace "STYLES=" with "STYLES=myStyleName"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;myStyleName should be the same in xml file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in the final url you should have something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://myGisServer/services/myService/MapServer/WMSServer?BBOX=283800.83413922496%2C6313182.926376634%2C762602.3793175454%2C6753460.209299228&amp;amp;WIDTH=783&amp;amp;TRANSPARENT=TRUE&amp;amp;CRS=EPSG%3A102100&amp;amp;LAYERS=0&amp;amp;REQUEST=GetMap&amp;amp;FORMAT=image%2Fpng&amp;amp;HEIGHT=720&amp;amp;SERVICE=WMS&amp;amp;VERSION=1.3.0&amp;amp;STYLES=myStyleName&amp;amp;SLD=http://url_to_xml/myfile.xml"&gt;http://myGisServer/services/myService/MapServer/WMSServer?BBOX=283800.83413922496%2C6313182.926376634%2C762602.3793175454%2C6753460.209299228&amp;amp;WIDTH=783&amp;amp;TRANSPARENT=TRUE&amp;amp;CRS=EPSG%3A102100&amp;amp;LAYERS=0&amp;amp;REQUEST=GetMap&amp;amp;FORMAT=image%2Fpng&amp;amp;HEIGHT=720&amp;amp;SERVICE=WMS&amp;amp;VERSION=1.3.0&amp;amp;STYLES=myStyleName&amp;amp;SLD=http://url_to_xml/myfile.xml&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 11:14:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/looking-for-wms-with-sld-sample/m-p/359970#M8517</guid>
      <dc:creator>SorinAndrei</dc:creator>
      <dc:date>2012-02-16T11:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for WMS with SLD sample</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/looking-for-wms-with-sld-sample/m-p/359971#M8518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm currently trying to get a WMSLayer to display a map layer with a style applied to it.&amp;nbsp; No one ever responded to this thread, so I wanted to see if anyone has used the method described above with success.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is the proxy totally necessary?&amp;nbsp; It seems like it's just there to insert the style name into the URL.&amp;nbsp; Does the ArcGIS api not provide any method for inserting the style name into the URL?&amp;nbsp; I see that "styleName" is an attribute of the WMSLayer component, but it doesn't seem to actually set the STYLES parameter within the generated map URL.&amp;nbsp; If "styleName" doesn't set the STYLE parameter, then what does it do?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 16:40:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/looking-for-wms-with-sld-sample/m-p/359971#M8518</guid>
      <dc:creator>JasonCantrell</dc:creator>
      <dc:date>2013-02-21T16:40:15Z</dc:date>
    </item>
  </channel>
</rss>

