wpf-devexpress-dot-xpf-dot-map-d187c6a6.md
This class allows showing the mini map on the MapControl.
Namespace : DevExpress.Xpf.Map
Assembly : DevExpress.Xpf.Map.v25.2.dll
NuGet Package : DevExpress.Wpf.Map
public class MiniMap :
MapElement,
IOverlayInfo,
IMapView,
IMapViewCore,
ICoordinateSystemProvider,
IInvalidKeyPanelHolder,
IUnitConverterProvider,
IItemVisibilityCalculatorProvider
Public Class MiniMap
Inherits MapElement
Implements IOverlayInfo,
IMapView,
IMapViewCore,
ICoordinateSystemProvider,
IInvalidKeyPanelHolder,
IUnitConverterProvider,
IItemVisibilityCalculatorProvider
The following members return MiniMap objects:
To add a mini map to the map, do the following.
MiniMap object and assign it to the MapControl.MiniMap property.MiniMap object.<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>
Object DispatcherObject DependencyObject Visual UIElement FrameworkElement Control MapElement MiniMap
See Also