Find symbols within the mil2525d specification that match a keyword.
Use case
You can use support for military symbology to allow users to report changes in the field using the correct military symbols.
How to use the sample
By default, leaving the fields blank and hitting search will find all symbols.
To search for certain symbols, enter text into one or more search boxes and click 'Search for symbols'. Results are shown in a list. Pressing 'Clear' will reset the search.
How it works
Create a symbol dictionary with the mil2525d specification by passing the string "mil2525d" and the path to a .stylx file to the SymbolDictionary constructor.
Create SymbolStyleSearchParameters.
Add members to the names, tags, symbolClasses, categories, and keys list fields of the search parameters.
Search for symbols using the parameters with DictionarySymbolStyle::searchSymbols(SymbolStyleSearchParameters).
Get the Symbol from the list of returned SymbolStyleSearchResultListModels.
Relevant API
DictionarySymbolStyle
Symbol
SymbolStyleSearchParameters
SymbolStyleSearchResultListModel
Offline Data
Read more about how to set up the sample's offline data here.
This sample features the mil2525D specification. The ArcGIS Maps SDK for Qt supports other military symbology standards, including mil2525C and mil2525B(change 2). See the Military Symbology Styles overview on ArcGIS Solutions for Defense for more information about support for military symbology.
While developing, you can omit the path to the .stylx style file; the ArcGIS Maps SDK for Qt will refer to a copy installed with the SDK. For production, you should take care to deploy the proper style files and explicitly specify the path to that file when creating the symbol dictionary. See the Military Symbology Styles overview on ArcGIS Solutions for Defense for more information about support for military symbology.