<SPAN class=""><A href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" style="color: #00629b; text-decoration: none;" rel="nofollow noopener noreferrer" target="_blank">Object</A></SPAN>
GetMap
GetFeatureInfo
customLayerParameters
resourceInfo
"customLayerParameters" : { "styles": "pointsymbolizer", "SLD": "https://.../point_pointSymbolizer.xml" }
It looks like custom styles are not supported in ESRI's WMSLayer implementation, so your only option is likely to create a custom WMS Layer type that you can use instead. This will allow you to manually set the STYLES parameter. See this sample: https://developers.arcgis.com/javascript/jssamples/layers_custom_wms.html
dojo.connect(map, "onLoad", function(){ wmsLayer = new esri.layers.WMSLayer("http://oyster.ncbo.cgsrvr.com/geoserver/ODT/wms"); wmsLayer.setVisibleLayers([3]); wmsLayer.setImageFormat("format"); wmsLayer.setOpacity(0.75); dojo.forEach(wmsLayer.layerInfos, function(layerInfo) { console.log(layerInfo.title); }); map.addLayer(wmsLayer); });
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.