3 out of 7 rated this helpful - Rate this topic

Using the Silverlight Map Control on Windows Phone 7

Bing Services

A version of the Bing Maps Silverlight Control is available for Windows Phone 7 which allows developers to make the enhanced mapping experience of Silverlight available to Windows Phone users. This topic includes information to get started using the Windows Phone version of the Bing Maps Silverlight Control.

Getting Started

The following steps will get you started developing your Bing Maps Silverlight Control application for Windows Phone.

Bing Maps Silverlight Control for Windows Phone

Use the Windows Phone Class Library Reference for information about the types and members of the Bing Maps Silverlight Control for Windows Phone. The Bing Maps Silverlight Control for Windows Phone API is very similar to the desktop version of the API. However, in order to facilitate Windows Phone development, some changes were made to the Windows Phone version of the Bing Maps Silverlight Control.

Ff955762.Important(en-us,MSDN.10).gifImportant:
The namespace names of the Bing Maps Silverlight Control for Windows Phone are different than the names of the desktop version of the control. The Windows Phone map control has the following namespaces: Microsoft.Phone.Controls.Maps, Microsoft.Phone.Controls.Maps.AutomationPeers, Microsoft.Phone.Controls.Maps.Core, Microsoft.Phone.Controls.Maps.Design, Microsoft.Phone.Controls.Maps.Overlays, and Microsoft.Phone.Controls.Maps.Platform.

Other major changes include:

  • Wherever a Location object is found in the desktop map control API, a System.Device.Location.GeoCoordinate type needs to be used in the Windows Phone map control. Note that GeoCoordinate has a range limit on Latitude and Longitude and if you don’t specify a value, it defaults to NaN. Location.Latitude and Longitude defaults to 0 and has no checks for Latitude and Longitude.

  • To support flick and touch actions, the Windows Phone map control API has new event argument classes: MapDragEventArgs and MapFlickEventArgs. In addition, the MapPan, MapResolved, and MapZoom events have been added to the MapBase and MapCore classes, as well as new MapMode members OnMapDrag, OnMapFlick, and OnMapZoom.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.