Google Maps for Windows Phone 7 using Bing Map Control - CodeProject

 

bing maps control for windows phone 7

This article is going to describe how to use the Bing Map control in Windows Phone 7 using Silverlight. Getting Started Creating a Windows Phone Application: Open Visual Studio Go to File => New => Project; Select Silverlight for Windows Phone from the Installed templates and choose Windows Phone Application; Enter the Name and choose the. Feb 03,  · Google maps for Windows Phone 7 using Bing map Control is an issue that has been debated over and over on the WP 7/gobelajar.cf community forums /5(52). Mar 24,  · This software development kit (SDK) provides the binaries and programming reference for the Bing Maps Silverlight Control. You can use this control to .


How to Use the Bing Map Control in Windows Phone 7


Microsoft launched Bing Maps in recent times which is a direct competitor to Google Maps. Bing Maps being relatively new has of course less data and lesser depth in Maps than Google Maps which is in this field for quite a few years. Often, developers want to incorporate Google Maps in their Windows Phone application which seems quite impossible as the Map Control provided by Microsoft is compatible with Bing Maps.

But the thing that we don't know is that Map Control is so flexible that we could display almost any Map on it thanks to Microsoft for providing us the flexibility. So in this manner we are not bound to show just Bing Maps but we could also use any other map like Google Maps which is covered in this article. Basically Map Control is shipped with default imagery of Bing Maps for which we only need to provide Developer Credentials available from Bing Website and we are ready to use the Bing Maps.

Map Control has all the basic functionality already built in like zooming and navigating into the Map. All we need is to just drop the control, provide credentials and here we go. For Google Maps, we need to first understand the way Map Control works, well it basically continuously calls a method Uri GetUri int x, int y, int zoomLevel which returns a Uri which contains the image of the tile to be displayed.

A tile is an image of x defined by its X and Y position in the grid bing maps control for windows phone 7 the map of the world on a specific zoom level. All we have to do is to write a class that inherits from Microsoft. TileSource that contains a overridden method Uri GetUri int x, int y, int zoomLevel which will display our custom tile which in our case is Google Maps Tile.

First, we need to define an Enum that contains all the modes of maps that Google Maps supports. We will use this Enum later when we will inspect the mode of our Map.

Next we move on towards writing the class that we discussed above that will contain Uri GetUri int x, int y, bing maps control for windows phone 7, int zoomLevel and some utility methods that we have created for our convenience.

First, we need the following two namespaces to MainPage. We will keep or Map Mode to Mercator which tells the control not to load any default imagery for the Map. We have used 5 layers as we want to change the Mode of Map as per user's selection of RadioButton s. One could also show more than one layer at the same time by playing around with the Opacity property of different layers.

If you want to keep the Mode staticyou will only be needing one layer. Each layer has its Tile Source which in this case is bing maps control for windows phone 7 class GoogleTile.

Finally to provide users with some basic functionality of changing Mode and Zooming in and out, we wire up some event handlers. So we are ready to take off with just a few lines of code, we are now able to use Google Maps with Bing Map Control provided by Microsoft in Windows Phone Developer tools thanks to Microsoft for flexible and generic nature of the Map Control, bing maps control for windows phone 7. In future, I plan to provide a more detailed tutorial containing all the features that Google Map provides including directions and routes.

 

Bing Maps Goes Mobile - For Free | Maps Blog

 

bing maps control for windows phone 7

 

Calculate and draw route on Bing Maps control. Ask Question Asked 7 years, 10 months ago. Editing a route in Bing Maps Windows Phone 7: In-App or BingMapsDirectionsTask. 2. Bing maps control hangs the back navigation. 0. Obtaining Localised results from bing maps. 0. Feb 03,  · Google maps for Windows Phone 7 using Bing map Control is an issue that has been debated over and over on the WP 7/gobelajar.cf community forums /5(52). This article is going to describe how to use the Bing Map control in Windows Phone 7 using Silverlight. Getting Started Creating a Windows Phone Application: Open Visual Studio Go to File => New => Project; Select Silverlight for Windows Phone from the Installed templates and choose Windows Phone Application; Enter the Name and choose the.