Select to view content in your preferred language

WMS layer - Styles Property not found???

651
4
09-06-2013 08:05 AM
stevemclaughlin
Occasional Contributor
I'm currently trying to get a WMSLayer to display a map layer with a style applied to it.
There is no Style property for a WMS Layer.  How can I add a style property?  Is ESRI planning on adding this?
Is the source now available?  Can I add this functionality?
thanks,
steve
Tags (2)
0 Kudos
4 Replies
YueWu1
by Esri Regular Contributor
Esri Regular Contributor
0 Kudos
stevemclaughlin
Occasional Contributor
Hi Steve,

Please check this link may help you.
https://developers.arcgis.com/en/flex/api-reference/index.html?com/esri/ags/layers/WMSLayer.html&com...


Thanks, that's just a link to the api documentation, and there is no 'styles'  property, is there something I missed?
0 Kudos
YueWu1
by Esri Regular Contributor
Esri Regular Contributor
Hi Steve,

Based on my knowledge, Flex API for WMSLayer don't have a style property.
Would you please elaborate more detail about what specific thing you want to do for style, maybe there are some other property can do the same function just a different name.

Also, I assume if you want to change the WMSLayer, you can change from <script> side.
Check this link may you need looking:
http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jssamples_start.htm#jssa...
0 Kudos
BjornSvensson
Esri Regular Contributor
...WMS Layer.  How can I add a style property? 


Just add it to the URL parameter, for example
"http://www.example.com/whatever/WMS?STYLES=FancyStyle";
0 Kudos