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

Contenu connexe

Similaire à Windows Phone 7 Bing Maps Control

Making it fit - DroidCon Paris 18 june 2013
Making it fit - DroidCon Paris 18 june 2013Making it fit - DroidCon Paris 18 june 2013
Making it fit - DroidCon Paris 18 june 2013
Paris Android User Group
 
Android Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NC
Android Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NCAndroid Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NC
Android Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NC
Jim Tochterman
 
Technology Of The Geospatial Web Nov3
Technology Of The Geospatial Web Nov3Technology Of The Geospatial Web Nov3
Technology Of The Geospatial Web Nov3
Michael Maclennan
 

Similaire à Windows Phone 7 Bing Maps Control (20)

How data rules the world: Telemetry in Battlefield Heroes
How data rules the world: Telemetry in Battlefield HeroesHow data rules the world: Telemetry in Battlefield Heroes
How data rules the world: Telemetry in Battlefield Heroes
 
02 create first-map
02 create first-map02 create first-map
02 create first-map
 
Google maps
Google mapsGoogle maps
Google maps
 
Google maps
Google mapsGoogle maps
Google maps
 
State of the Art Web Mapping with Open Source
State of the Art Web Mapping with Open SourceState of the Art Web Mapping with Open Source
State of the Art Web Mapping with Open Source
 
Developing Spatial Applications with Google Maps and CARTO
Developing Spatial Applications with Google Maps and CARTODeveloping Spatial Applications with Google Maps and CARTO
Developing Spatial Applications with Google Maps and CARTO
 
ESRI Developer Summit 2008 - Microsoft Virtual Earth
ESRI Developer Summit 2008 - Microsoft Virtual EarthESRI Developer Summit 2008 - Microsoft Virtual Earth
ESRI Developer Summit 2008 - Microsoft Virtual Earth
 
Pycon2011
Pycon2011Pycon2011
Pycon2011
 
Rendering OpenStreetMap Data using Mapnik
Rendering OpenStreetMap Data using MapnikRendering OpenStreetMap Data using Mapnik
Rendering OpenStreetMap Data using Mapnik
 
GIS in the Rockies 2011: Building Distributed JavaScript Map Widgets with Ope...
GIS in the Rockies 2011: Building Distributed JavaScript Map Widgets with Ope...GIS in the Rockies 2011: Building Distributed JavaScript Map Widgets with Ope...
GIS in the Rockies 2011: Building Distributed JavaScript Map Widgets with Ope...
 
Beholding the giant pyramid of application development; why Ajax applications...
Beholding the giant pyramid of application development; why Ajax applications...Beholding the giant pyramid of application development; why Ajax applications...
Beholding the giant pyramid of application development; why Ajax applications...
 
Making it fit - DroidCon Paris 18 june 2013
Making it fit - DroidCon Paris 18 june 2013Making it fit - DroidCon Paris 18 june 2013
Making it fit - DroidCon Paris 18 june 2013
 
Using KML for Thematic Mapping
Using KML for Thematic MappingUsing KML for Thematic Mapping
Using KML for Thematic Mapping
 
Android Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NC
Android Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NCAndroid Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NC
Android Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NC
 
R Spatial Analysis using SP
R Spatial Analysis using SPR Spatial Analysis using SP
R Spatial Analysis using SP
 
SenchaCon 2016: Developing COSMOS Using Sencha Ext JS 5 - Shenglin Xu
SenchaCon 2016: Developing COSMOS Using Sencha Ext JS 5 - Shenglin XuSenchaCon 2016: Developing COSMOS Using Sencha Ext JS 5 - Shenglin Xu
SenchaCon 2016: Developing COSMOS Using Sencha Ext JS 5 - Shenglin Xu
 
The 'right' choices in GIS - Grontmij
The 'right' choices in GIS - GrontmijThe 'right' choices in GIS - Grontmij
The 'right' choices in GIS - Grontmij
 
Google Maps JS API
Google Maps JS APIGoogle Maps JS API
Google Maps JS API
 
Technology Of The Geospatial Web Nov3
Technology Of The Geospatial Web Nov3Technology Of The Geospatial Web Nov3
Technology Of The Geospatial Web Nov3
 
A mobile web app for Android in 75 minutes
A mobile web app for Android in 75 minutesA mobile web app for Android in 75 minutes
A mobile web app for Android in 75 minutes
 

Dernier

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Dernier (20)

From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 

Windows Phone 7 Bing Maps Control

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

Notes de l'éditeur

  1. Google: No known use of Parcel centroids; Put geocoding limits on daily usage
  2. GoogleCollects their own data in North America; uses TeleAtlas for international coverage (inferior and based on satellite photos)Lack information about route direction, one way streets, turn restrictions, time-based turn restrictionsLacks many road attributes such as bridge heights, speed limits, turn restrictions and route optimization for many areas. Full Google list of coverage.
  3. Details: http://www.bing.com/community/blogs/maps/archive/2010/08/03/bing-s-bringing-sexy-maps.aspx
  4. Google: Uses satellite photos exclusively (Up to 1 meter per pixel); Partner: GeoEyeUnder Google they sometimes aggregate Government imagery that while sometimes high resolution can be quite old (5-10 years). I would also add that lots of their imagery is 5-10 years of age. Some streetside approaches 5 years of age. No published refresh plan for any of their imagery.
  5. Google: Shortest, fastest, walking, transit
  6. Google: YP points of interest available via map API
  7. More on Azure
  8. REST Services - Client to Cloud or Server to Cloud requests