how to set geoserver's wms styles

3091
2
Jump to solution
11-03-2015 03:13 AM
dfsjclouddfsj
New Contributor

hi everyone,My English is not good.I have a geoserver‘s wms,user ArcGIS Runtime SDK for Android how to set the wms’s styles,

String wmsURL = "http://www.dfsjcloud.com:8082/geoserver/precip/wms";

String[] layer = {"precip:chinarivers"};

WMSLayer wmsLayer = new WMSLayer(wmsURL, layer);

mMapView.addLayer(wmsLayer);

but how to set the wms's styles. thanks.

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
DanO_Neill
Occasional Contributor III

Currently we don't support describing the appearance of WMS map layers through style layer descriptors.  You are are correctly adding a WMS layer and you can get some information from the layer through the WMSLayerInfo class like legend, sublayers, etc. if supported on the WMS, but unfortunately styling is not supported in the API at this time.  I do encourage you to use the ArcGIS Ideas portal to propose support in Runtime SDK's if you want your idea considered for new functionality in future releases. 

View solution in original post

0 Kudos
2 Replies
DanO_Neill
Occasional Contributor III

Currently we don't support describing the appearance of WMS map layers through style layer descriptors.  You are are correctly adding a WMS layer and you can get some information from the layer through the WMSLayerInfo class like legend, sublayers, etc. if supported on the WMS, but unfortunately styling is not supported in the API at this time.  I do encourage you to use the ArcGIS Ideas portal to propose support in Runtime SDK's if you want your idea considered for new functionality in future releases. 

0 Kudos
dfsjclouddfsj
New Contributor

Thank you very much.

0 Kudos