MapControl.MiniMap Property
Gets or sets the mini map of the map control.
Namespace: DevExpress.Xpf.Map
Assembly: DevExpress.Xpf.Map.v18.2.dll
Declaration
Property Value
Type | Description |
---|---|
MiniMap | A MiniMap object. |
Example
To add a mini map to the map, do the following.
- Create a MiniMap object and assign it to the
MapControl.MiniMap
property. - Add MiniMapLayerBase class descendant object to the MiniMap.Layers collection to display them on the mini map.
- Customize the appearance of the mini map. Use the Height, Width and MiniMap.Alignment properties of the MiniMap object.
- Configure the mini map’s behavior. To do this, specify the MiniMap.Behavior property.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/mapcontrol-mini-map-video-application-t181443.
<dxm:MapControl.MiniMap>
<dxm:MiniMap Height="210" Width="280" Alignment="TopRight">
<dxm:MiniMap.Behavior>
<dxm:FixedMiniMapBehavior ZoomLevel="3">
<dxm:FixedMiniMapBehavior.CenterPoint>
<dxm:GeoPoint Longitude="146" Latitude="-38"/>
</dxm:FixedMiniMapBehavior.CenterPoint>
</dxm:FixedMiniMapBehavior>
</dxm:MiniMap.Behavior>
<dxm:MiniMapImageTilesLayer>
<dxm:BingMapDataProvider BingKey="{Binding Source={StaticResource bingKey}}"/>
</dxm:MiniMapImageTilesLayer>
<dxm:MiniMapVectorLayer ShapeFill="Red">
<dxm:ListSourceDataAdapter DataSource="{Binding Source={StaticResource data}, XPath=Ship}">
<dxm:ListSourceDataAdapter.ItemSettings>
<dxm:MapDotSettings Size="10"/>
</dxm:ListSourceDataAdapter.ItemSettings>
<dxm:ListSourceDataAdapter.Mappings>
<dxm:MapItemMappingInfo Longitude="Longitude" Latitude="Latitude"/>
</dxm:ListSourceDataAdapter.Mappings>
</dxm:ListSourceDataAdapter>
</dxm:MiniMapVectorLayer>
</dxm:MiniMap>
</dxm:MapControl.MiniMap>
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the MiniMap property.
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.
See Also