Example E3606
Visible to All Users

Map for WPF - Load Image Tiles to a Map

The example shows how to connect a map to the Bing Maps imagery service and load image tiles. It also shows how to configure main map settings like the center point and zoom level.

Map

Note that if you run this sample as is, you will get a warning message saying that the specified Bing Maps key is invalid. To learn more about Bing Map keys, please refer to the How to: Get a Bing Maps Key tutorial.

Files to Review

Documentation

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

Example Code

Wpf_MapControl_Lesson1/MainWindow.xaml
XAML
<Window xmlns:dxm="http://schemas.devexpress.com/winfx/2008/xaml/map" x:Class="Wpf_MapControl_Lesson1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525"> <Grid> <dxm:MapControl CenterPoint="45,18" ZoomLevel="4" > <dxm:MapControl.MiniMap> <dxm:MiniMap Alignment="TopRight"> <dxm:MiniMap.Behavior> <dxm:FixedMiniMapBehavior CenterPoint="45, 18"/> </dxm:MiniMap.Behavior> <dxm:MiniMapImageTilesLayer> <dxm:BingMapDataProvider BingKey="YOUR BING KEY"/> </dxm:MiniMapImageTilesLayer> </dxm:MiniMap> </dxm:MapControl.MiniMap> <dxm:ImageLayer> <dxm:ImageLayer.DataProvider> <dxm:BingMapDataProvider BingKey="YOUR BING KEY"/> </dxm:ImageLayer.DataProvider> </dxm:ImageLayer> </dxm:MapControl> </Grid> </Window>

Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.