MapItemAttributeMapping Class
The mapping of an attribute applied to a map item.
Namespace: DevExpress.Xpf.Map
Assembly: DevExpress.Xpf.Map.v18.2.dll
Declaration
Remarks
See the Provide Data Using Vector Item Attributes topic to learn more.
Example
To associate additional info with vector items generated by a DataSourceAdapterBase class descendant, use MapItemAttributeMapping
objects, specify their MapItemAttributeMapping.Member (the data source members’ names) and MapItemAttributeMapping.Name (names of attributes which will be generated based on specified members), and add these objects to the DataSourceAdapterBase.AttributeMappings collection.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-customize-a-mini-maps-layers-t200327.
<dxm:ListSourceDataAdapter.AttributeMappings>
<dxm:MapItemAttributeMapping Member="Year" Name="Year"/>
<dxm:MapItemAttributeMapping Member="Name" Name="Name"/>
<dxm:MapItemAttributeMapping Member="Description" Name="Description"/>
</dxm:ListSourceDataAdapter.AttributeMappings>
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the MapItemAttributeMapping class.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.