Cloud Training (Online)




How to Launch Maps Application (Built-In) from Windows Phone 8 App?

The Windows Phone 8 SDK provides a launcher “MapsTask” which can be used by the developers to launch the built in maps application in the Windows Phone App.

How to Launch Maps Application (Built-In) from Windows Phone 8 App?

To launch the Maps Application in Windows Phone App, just create an instance of MapsTask and set the optional properties and then call the Show method of the MapsTask object.

The Center property of the Maps Control can be used to set the Current coordinate. The search term can also be specified which will result in the map to display the results of the search term.

MapsTask maps = new MapsTask();

maps.Center = new GeoCoordinate(13.0022, 077.5980);

maps.ZoomLevel = 9;

maps.SearchTerm = "Movie";

maps.Show();

How to Launch Maps Application (Built-In) from Windows Phone 8 App?

How to Launch Maps Application (Built-In) from Windows Phone 8 App?

Senthil Kumar B
Senthil Kumar is a former Microsoft MVP (Most Valuable Professional). He is a Co-Author of the book "Windows 10 Development Recipes using JavaScript and CSS" for Apress Publication. He is a technical presenter, blogger, mentor and a Geek.  Senthil is a regular speaker is various local user groups. He has presented at conferences like Great Indian Developer Summit (GIDS) & Microsoft DevCamps. You can reach out to him via his Twitter handle @isenthil.