createWithStyleNameAndPortal

fun createWithStyleNameAndPortal(styleName: String, portal: Portal? = null): SymbolStyle

Creates a new symbol style object using the registered style name of the Esri web style on the portal. Esri provides a set of web symbol styles "out of the box" for localized use with ArcGIS Online and Enterprise. Users can use this constructor only if you are creating a symbol style using the Esri web style's unique name on your portal or arcgis.com. If null is passed for portal parameter, ArcGIS online is used as the default portal. An overview of esri web styles and symbols currently in production is available for 3D and 2D. Tip: Click on the symbol icon to find its associated style name. Esri registered style names can also be found in the json of symbol web style. As an example see item json for EsriThematicShapesStyle hosted on ArcGIS Online.

Return

a SymbolStyle

Since

200.1.0

Parameters

styleName

the registered Esri symbol style name. This cannot be a custom web style name.

portal

a Portal hosting the Esri web style. If null is passed, ArcGIS online is used as the default portal.