DictionarySymbolStyle.withPortalItem constructor

DictionarySymbolStyle.withPortalItem(
  1. PortalItem portalItem
)

Creates a new dictionary symbol style object from a portal item. The portal item must contain a dictionary style.

If you have the item id of a style file, you can search the portal to find the item using its item id. Use this constructor if you have a reference to a portal item.

Parameters:

  • portalItem — A PortalItem that contains a dictionary style.