Method GetSymbolAsync
GetSymbolAsync(IDictionary<String, Object>)
Asynchronously returns a symbol based on the provided attributes.
Declaration
public Task<Symbol> GetSymbolAsync(IDictionary<string, object> attributes)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, Object> | attributes | A key-value pair for the attributes required to obtain symbol from the rule engine associated to symbol dictionary. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<Symbol> | The task object representing the asynchronous save as operation. The value of the task result is a Symbol object. |
Remarks
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 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.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 100.14 |