Skip to main content
A newer version of this page is available. .

MiniMapImageTilesLayer Class

A layer that displays image tiles, obtained from one of the supported map providers, on the mini map.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v18.1.dll

Declaration

public class MiniMapImageTilesLayer :
    MiniMapLayerBase

Example

This example demonstrates how to customize mini map layers.

To do this, create the required MiniMapLayerBase class descendant objects, configure them and add them to the MiniMap.Layers collection.

    mapControl.MiniMap = CreateMiniMap(data);
MiniMap CreateMiniMap(object data) {

    MiniMap miniMap = new MiniMap() {
        Height = 200,
        Width = 300,
        Behavior = new FixedMiniMapBehavior() {
            CenterPoint = new GeoPoint(-35, 140),
            ZoomLevel = 3
        }
    };

    MiniMapImageTilesLayer mapLayer = new MiniMapImageTilesLayer() {
        DataProvider = new BingMapDataProvider() {
            BingKey = bingKey,
            Kind = BingMapKind.Area
        }
    };

    MiniMapVectorItemsLayer vectorLayer = new MiniMapVectorItemsLayer();
    ListSourceDataAdapter adapter = new ListSourceDataAdapter();
    adapter.DataSource = data;
    adapter.Mappings.Latitude = "Latitude";
    adapter.Mappings.Longitude = "Longitude";
    adapter.DefaultMapItemType = MapItemType.Dot;
    adapter.PropertyMappings.Add(
        new MapDotSizeMapping() { DefaultValue = 10 }
    );
    vectorLayer.Data = adapter;
    vectorLayer.ItemStyle.Fill = Color.FromArgb(74, 212, 255);
    vectorLayer.ItemStyle.Stroke = Color.Gray;

    miniMap.Layers.Add(mapLayer);
    miniMap.Layers.Add(vectorLayer);
    return miniMap;
}

The following code snippets (auto-collected from DevExpress Examples) contain references to the MiniMapImageTilesLayer 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.

Inheritance

See Also