getSymbol

suspend fun getSymbol(attributes: Map<String, Any?>): Result<Symbol>

Asynchronously returns a symbol based on the provided attributes. This function is useful for obtaining a single, multi-layer symbol from supplied attributes. This is commonly used to create symbols and graphics on-the-fly. For example, with mil2525d, you may want to obtain a symbol where "symbolset" is 40, "modifier1" is "Incident Qualifier : Accident", "echelon" is "Army", and so on. All of these key/value pairs can be used to obtain the specific symbol that you need. Once you have that symbol, you can apply it to a com.arcgismaps.mapping.view.Graphic or Renderer, obtain its swatch image, or serialize to JSON. If the DictionarySymbolStyle is not loaded then initiating this task will start the load cycle.

Return

A Result with Symbol.

Since

200.1.0

Parameters

attributes

Map of String type key and Any value. It is a key value pair for the attributes required to obtain symbol from the rule engine associated to Dictionary symbol style.