How to Use the BingMapsTask in Windows Phone 7 ?

The BingMapsTask is one of the Launcher that the Windows Phone Developers can use to launch the Bing Maps App .

The Search term can be provided to the BingMapsTask object which will be marked on the map .

It is also necessary to include the assembly System.Device to the Windows Phone Project and then include the following namespace

using Microsoft.Phone.Tasks;
using System.Device.Location;
//Add the following statements to your code.
BingMapsTask Map = new BingMapsTask();
Map.SearchTerm = "Koramangala , Bangalore";
Map.ZoomLevel = 2;
Map.Show();

You can also specify the ZoomLevel for the Map which sets the initial zoom level of the map

How to Use the BingMapsTask in Windows Phone 7 ?
How to Use the BingMapsTask in Windows Phone 7 ?

 

    1 Comment

  1. Goko
    March 15, 2012
    Reply

    If i put coordinates instate of name will this work?

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

In this post, you’ll learn about the Win32 Error “0x000019E5 – ERROR_COULD_NOT_RESIZE_LOG” that you get when debugging system erors in...
In this post, you’ll learn about the error “CO_E_DBERROR 0x8004E02B” that is returned when working with COM based APIs or...
In this post, you’ll learn about the Win32 Error “0x000019D0 – ERROR_LOG_BLOCK_VERSION” that you get when debugging system erors in...