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.
Solved! Go to Solution.
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.
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.
Thank you very much.