Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Bing Maps for Windows Phone 7<br />Chris Pendleton<br />(Ex) Bing Maps Technical Evangelist<br />Microsoft Corporation<br ...
Agenda <br />Bing Maps <br />Content<br />APIs<br />Infrastructure<br />Windows Phone 7 Control<br />Classes<br />Coding<b...
Content: Geocoding<br />Over 85 million parcel centroids in US<br />Parcel centroids in Japan and Germany now live<br />Pa...
Content: Maps<br />Road data mostly from NAVTEQ. <br />Highway or Capital coverage for every country in the world; street ...
Content: Maps<br />New Map Style<br />
Content: Aerial<br />Uses a combination of satellite and aerial photos up to 12 inches per pixel.<br />Flying Global Ortho...
Content: Routing<br />Shortest, fastest, walking and traffic-based<br />Offers route geometry for spatial queries<br />
Content: Search<br />Yellow Page listings available via map API<br />Nearly 20 million listings available<br />
Developer APIs<br />AJAX API<br />Silverlight Control<br />SOAP Service<br />ReST Service<br />Bing Map App API<br />Spati...
Infrastructure<br />Content (tiles and controls) worldwide deployment across Azure Content Delivery Network<br />Services ...
Windows Phone 7 Bing Maps Control<br />Native to WP7 SDK (Woohoo!)<br />Based on Bing Maps Silverlight Control<br />Some f...
New Classes<br />
Maps.Platform Classes<br />
Setting Centerpoint (C#)<br />using Microsoft.Phone.Controls.Maps;<br />using System.Device.Location;<br />namespace Windo...
Change Map Styles (C#)<br />using Microsoft.Phone.Controls.Maps;<br />using System.Device.Location;<br />namespace Windows...
Set Map Properties (XAML)<br />…<br />xmlns:my="clr-namespace:Microsoft.Phone.Controls.Maps;assembly=Microsoft.Phone.Contr...
Hello World <br />1. Load Map<br />
Switch Map Modes <br />Loads Map Control<br />Specifies Center Point<br />Specifies Map Mode<br />Button switches map styl...
Locate Me Using GPS<br />Load Map<br />Access GPS<br />Re-center and Zoom Map<br />
Using Shapes<br />Load Map<br />Re-center and Zoom Map<br />Draw Polygon<br />
Which API is Right for You?<br />Surface<br />Silverlight Control<br />AJAX Map Control<br />Mobile<br />REST Services<br ...
Next Steps<br />Download WP7 SDK<br />Get a Bing Maps Key at BingMapsPortal.com<br />Reference the WP7 Docs<br />Reference...
Q&A<br />Yes, it’s free for native mobile apps (all platforms)<br />Yes, it’s free on the web…for the most of you<br />Yes...
© 2010 Microsoft Corporation. All rights reserved.<br />This presentation is for informational purposes only. Microsoft ma...
Upcoming SlideShare
Loading in …5
×

Windows Phone 7 Bing Maps Control

9,514 views

Published on

I presented this deck to the Seattle Silverlight User's Group on Oct. 6, 2010. It convers the Bing Maps Control for Windows Phone 7

Published in: Technology
  • Be the first to comment

Windows Phone 7 Bing Maps Control

  1. 1. Bing Maps for Windows Phone 7<br />Chris Pendleton<br />(Ex) Bing Maps Technical Evangelist<br />Microsoft Corporation<br />@ChrisPendleton<br />
  2. 2. Agenda <br />Bing Maps <br />Content<br />APIs<br />Infrastructure<br />Windows Phone 7 Control<br />Classes<br />Coding<br />Q&A<br />
  3. 3. Content: Geocoding<br />Over 85 million parcel centroids in US<br />Parcel centroids in Japan and Germany now live<br />Parcels provide a high level of accuracy<br />Falls back to interpolation<br />Bulk geocoding available<br />No daily limits on geocoding<br />
  4. 4. Content: Maps<br />Road data mostly from NAVTEQ. <br />Highway or Capital coverage for every country in the world; street level data for 37 countries<br />Full Bing list of coverage. <br />
  5. 5. Content: Maps<br />New Map Style<br />
  6. 6. Content: Aerial<br />Uses a combination of satellite and aerial photos up to 12 inches per pixel.<br />Flying Global Ortho Project to provide 12 inch resolution photos for all 48 lower states and W. Europe<br />Refresh rate every 2-3 years<br />Partner: Digital Globe<br />
  7. 7. Content: Routing<br />Shortest, fastest, walking and traffic-based<br />Offers route geometry for spatial queries<br />
  8. 8. Content: Search<br />Yellow Page listings available via map API<br />Nearly 20 million listings available<br />
  9. 9. Developer APIs<br />AJAX API<br />Silverlight Control<br />SOAP Service<br />ReST Service<br />Bing Map App API<br />Spatial Data API<br />
  10. 10. Infrastructure<br />Content (tiles and controls) worldwide deployment across Azure Content Delivery Network<br />Services deployed across Azure Dynamic Compute Network<br />
  11. 11. Windows Phone 7 Bing Maps Control<br />Native to WP7 SDK (Woohoo!)<br />Based on Bing Maps Silverlight Control<br />Some features removed (for perf)<br />Some features added (for device)<br />Some class changes (for conflict)<br />
  12. 12. New Classes<br />
  13. 13. Maps.Platform Classes<br />
  14. 14. Setting Centerpoint (C#)<br />using Microsoft.Phone.Controls.Maps;<br />using System.Device.Location;<br />namespace WindowsPhoneApplication1<br />{<br /> public partial class MainPage : PhoneApplicationPage<br /> {<br /> // Constructor<br /> public MainPage()<br /> {<br />InitializeComponent();<br /> map1.SetView(new GeoCoordinate(42.123, -120.123), 17); <br /> }<br />}<br />}<br />
  15. 15. Change Map Styles (C#)<br />using Microsoft.Phone.Controls.Maps;<br />using System.Device.Location;<br />namespace WindowsPhoneApplication1<br />{<br />…<br />private void button1_Click(object sender, RoutedEventArgs e)<br /> {<br /> if (map1.Mode is RoadMode) <br /> {<br /> map1.Mode = new AerialMode(true); <br />}<br /> else<br /> {<br /> map1.Mode = new RoadMode();<br /> }<br /> }<br />…<br />}<br />
  16. 16. Set Map Properties (XAML)<br />…<br />xmlns:my="clr-namespace:Microsoft.Phone.Controls.Maps;assembly=Microsoft.Phone.Controls.Maps"><br /> <!--LayoutRoot is the root grid where all page content is placed--><br /> <Grid x:Name="LayoutRoot" Background="Transparent"><br /> <Grid.RowDefinitions><br /> <RowDefinition Height="Auto"/><br /> <RowDefinition Height="*"/><br /> </Grid.RowDefinitions><br /> <!--TitlePanel contains the name of the application and page title--><br /> <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28"><br /> <TextBlock x:Name="ApplicationTitle" Text="CP's Mapplication" Style="{StaticResourcePhoneTextNormalStyle}"/><br /> <TextBlock x:Name="PageTitle" Text="My Maps!" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/><br /> </StackPanel><br /> <!--ContentPanel - place additional content here--><br /> <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0"><br /> <my:Map Height="503" HorizontalAlignment="Left" Margin="9,6,0,0" Name="map1" VerticalAlignment="Top" Width="447" ZoomBarVisibility="Visible" Mode="Aerial" CredentialsProvider=“[BINGMAPSKEY]"/><br /> <Button Content="Switch Map Styles" Height="72" HorizontalAlignment="Left" Margin="69,534,0,0" Name="button1" VerticalAlignment="Top" Width="337" Click="button1_Click" /><br /> </Grid><br /> </Grid><br />
  17. 17. Hello World <br />1. Load Map<br />
  18. 18. Switch Map Modes <br />Loads Map Control<br />Specifies Center Point<br />Specifies Map Mode<br />Button switches map style<br />
  19. 19. Locate Me Using GPS<br />Load Map<br />Access GPS<br />Re-center and Zoom Map<br />
  20. 20. Using Shapes<br />Load Map<br />Re-center and Zoom Map<br />Draw Polygon<br />
  21. 21. Which API is Right for You?<br />Surface<br />Silverlight Control<br />AJAX Map Control<br />Mobile<br />REST Services<br />PC<br />Bing Maps Platform<br />SOAP Services<br />End User<br />MapPoint Web <br />Services<br />Customer Servers<br />Browser<br />+<br />Map App SDK<br />Data Source<br />www.bing.com/maps<br />
  22. 22. Next Steps<br />Download WP7 SDK<br />Get a Bing Maps Key at BingMapsPortal.com<br />Reference the WP7 Docs<br />Reference the Bing Maps Silverlight Control docs<br />Build a killer app!<br />
  23. 23. Q&A<br />Yes, it’s free for native mobile apps (all platforms)<br />Yes, it’s free on the web…for the most of you<br />Yes, it’s free for education and NFP<br />It’s all free unless…you exceed usage thresholds on the web <br />
  24. 24. © 2010 Microsoft Corporation. All rights reserved.<br />This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.<br />

×