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

via WindowsPhoneRocks.com

If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

Leave a Reply


x

Interesting BlogPosts to read

Download - Pokemon Go for for Windows 10 (Third Party app)
Pokemon Go is one of the popular AR games for android and iOS devices and now , the game is made ava...
Open Wordpad from command line in Windows
You can use the command "Write" from command line in Windows to open the WordPad application.D:\>...
Popular cross-platform (android and iOS) to-do list app
In this blog post, we will cover some of the popular to-do list app that is available on different p...