SlideShare a Scribd company logo
Paper Maps
Digital Maps
Digital Static Maps
AJAX Maps
Flash Maps
Silverlight Maps
Navigating the Map
How data flows
How data flows
Leveraging XAML โ€“ Get A Map
Leveraging XAML โ€“ Get A Map
<UserControl x:Class=quot;VirtualEarthSilverlight.Pagequot;
xmlns=quot;http://schemas.microsoft.com/winfx/2006/xaml/presentat
   ionquot;
 xmlns:x=quot;http://schemas.microsoft.com/winfx/2006/xamlquot;
 xmlns:m=quot;clr-
   namespace:Microsoft.VirtualEarth.MapControl;assembly=Micro
   soft.VirtualEarth.MapControlquot;>
    <Grid x:Name=quot;LayoutRootquot; Background=quot;Whitequot;>
        <m:Map/>
    </Grid>
</UserControl>
Leveraging XAML โ€“ Get A Map



xmlns:m=quot;clr-
  namespace:Microsoft.VirtualEarth.MapControl;assembly=Micro
  soft.VirtualEarth.MapControlquot;

      <m:Map/>
Leveraging XAML โ€“ Configuring the Mapplication
Leveraging XAML โ€“ Configuring the Mapplication
<UserControl
 x:Class=quot;VirtualEarthSilverlight.Pageโ€œ
   xmlns=quot;http://schemas.microsoft.com/winfx/2006/xaml/presen
   tationquot;
 xmlns:x=quot;http://schemas.microsoft.com/winfx/2006/xamlquot;
 xmlns:m=quot;clr-
   namespace:Microsoft.VirtualEarth.MapControl;assembly=Micro
   soft.VirtualEarth.MapControlquot;>
   <Grid x:Name=quot;LayoutRootquot; Background=quot;Whitequot;>
        <m:Map Center=quot;36.12154022795178, -
       115.16997814178468quot; Mode=quot;AerialWithLabelsquot;
       NavigationVisibility=quot;Visiblequot; ZoomLevel=quot;17quot; />
    </Grid>
</UserControl>
Leveraging XAML โ€“ Configuring the Mapplication



xmlns:m=quot;clr-
  namespace:Microsoft.VirtualEarth.MapControl;assembly=Micro
  soft.VirtualEarth.MapControlquot;>

      <m:Map Center=quot;36.12154022795178, -
     115.16997814178468quot; Mode=quot;AerialWithLabelsquot;
     NavigationVisibility=quot;Visiblequot; ZoomLevel=quot;17quot; />
Leveraging C# โ€“ Adding Data to the Map
Leveraging C# โ€“ Adding Data to the Map
 <m:Map HorizontalAlignment=quot;Stretchquot;
   VerticalAlignment=quot;Stretchquot; x:Name=quot;MyMapquot;
   Grid.Column=quot;1quot; Grid.Row=quot;0quot;>
   <m:Map.Children>
   <m:MapLayer x:Name=quot;MyLayerquot;>
   <m:MapPolygon Fill=quot;Bluequot; Stroke=quot;Greenquot;
   StrokeThickness=quot;5quot; Locations=quot;20,-20 20,20 -20,20 -20,-
   20quot; Opacity=quot;0.7quot; />
   </m:MapLayer>
   </m:Map.Children>
</m:Map>
Leveraging C# โ€“ Adding Data to the Map
LocationCollection points = GetPoints(pointsCount, centerX,
   centerY);
MapPolygon shape = new MapPolygon();
shape.Locations = points;
shape.StrokeThickness = thickness;
shape.Stroke = new SolidColorBrush(color);
shape.Fill = new SolidColorBrush(fillColor);
MyLayer.Children.Add(shape);
Leveraging C# โ€“ Adding Data to the Map
double width = MyMap.ViewportSize.Width * 0.1;
LocationCollection points = new LocationCollection();
for (int i = 0; i < count; i++)
   {
       double j = (double)i / (double)count;
       points.Add(MyMap.ViewportPointToLocation(
       new Point(centerX + Math.Cos(j * 2.0 * Math.PI) *
       width, centerY + Math.Sin(j * 2.0 * Math.PI) *
       width)));            }
return points;
Leveraging C# โ€“ Adding Data to the Map
Leveraging C# โ€“ Adding Data to the Map
Leveraging C# โ€“ Adding Data to the Map
Leveraging C# โ€“ Adding Media to the Map
Leveraging C# โ€“ Adding Media to the Map
<m:Map x:Name=quot;myMapquot; Grid.Column=quot;0quot; Grid.Row=quot;0quot;
   Mode=quot;AerialWithLabelsquot;>
   <m:Map.Children>
       <m:MapLayer x:Name=quot;myMapLayerquot;>
       </m:MapLayer>
   </m:Map.Children>
</m:Map>
Leveraging C# โ€“ Adding Media to the Map
private void ChangeMapView(object sender, RoutedEventArgs e)
{
   myMap.View
   (MapViewSpecification)mapSpecConverter.ConvertFrom(((Butto
   n)sender).Tag);
   pushpin = CreateUIElement();
   Location pinLocation = myMap.TargetView.Center;
   PositionMethod position = PositionMethod.Center;
   myMapLayer.AddChild(pushpin, pinLocation, position);

}
Leveraging C# โ€“ Adding Media to the Map
 //Image Brush
ImageBrush imagebrush = new ImageBrush();
imagebrush.AlignmentX = AlignmentX.Center;
imagebrush.AlignmentY = AlignmentY.Center;
imagebrush.ImageSource = new BitmapImage(new Uri(@quot;Chris
   Pendleton.jpgquot;, UriKind.Relative));
imagebrush.Opacity = 1;
Leveraging C# โ€“ Adding Media to the Map
Ellipse ellipse = new Ellipse();
ellipse.Fill = new SolidColorBrush(Colors.Cyan);
ellipse.Opacity = .9;
ellipse.Stroke = new SolidColorBrush(Colors.Black);
ellipse.Height = 100.00;
ellipse.Width = 100.00;

Border border = new Border();
border.BorderBrush = new SolidColorBrush(Colors.Black);
border.BorderThickness = new Thickness(0);
border.Child = ellipse;

return border;
Leveraging C# โ€“ Adding Media to the Map
Leveraging C# โ€“ Accessing Virtual Earth WS
Leveraging C# โ€“ Accessing Virtual Earth WS
private int geocodesInProgress;
private PlatformServices.GeocodeServiceClient geocodeClient;
private PlatformServices.GeocodeServiceClient GeocodeClient{
get{
if (null == geocodeClient){
//Handle http/https
bool httpsUriScheme =
     HtmlPage.Document.DocumentUri.Scheme.Equals(Uri.UriSchemeHttps);
BasicHttpBinding binding = httpsUriScheme ? new
     BasicHttpBinding(BasicHttpSecurityMode.Transport) : new
     BasicHttpBinding(BasicHttpSecurityMode.None);
UriBuilder serviceUri = new
     UriBuilder(quot;http://dev.virtualearth.net/webservices/v1/GeocodeService/Geoc
     odeService.svcquot;);
//Create the Service Client
geocodeClient = new PlatformServices.GeocodeServiceClient(binding, new
     EndpointAddress(serviceUri.Uri));
geocodeClient.GeocodeCompleted += new
     EventHandler<PlatformServices.GeocodeCompletedEventArgs>(client_GeocodeCom
     pleted);
}
return geocodeClient;
}
}
Leveraging C# โ€“ Accessing Virtual Earth WS
private void GeocodeAddress(string address){
PlatformServices.GeocodeRequest request = new
    PlatformServices.GeocodeRequest();
request.Culture = MyMap.Culture;
request.Query = address;
request.ExecutionOptions = new PlatformServices.ExecutionOptions();
request.ExecutionOptions.SuppressFaults = true;
request.Credentials = PlatformServicesHelper.GetCredentials();
request.Options = new PlatformServices.GeocodeOptions();
// Using ObservableCollection since this is the default for Silverlight proxy
    generation.
request.Options.Filters = new
    ObservableCollection<PlatformServices.FilterBase>();
PlatformServices.ConfidenceFilter filter = new
    PlatformServices.ConfidenceFilter();
filter.MinimumConfidence = PlatformServices.Confidence.High;
    request.Options.Filters.Add(filter);
Output.Text = quot;< geocoding quot; + address + quot; >quot;;
geocodesInProgress++;
// Make asynchronous call to fetch the data ... pass state object.
GeocodeClient.GeocodeAsync(request, address);
}
Leveraging C# โ€“ Accessing Virtual Earth WS



/* Demonstrate Microsoft Virtual Earth
Silverlight Interactive SDK */


//demo
Your feedback is important!

More Related Content

What's hot

ะกะพะทะดะฐะฝะธะต ะบะฐั€ั‚ะพะณั€ะฐะผะผ ะฝะฐ ะฟั€ะธะฝั†ะธะฟะฐั… ะณั€ะฐะผะผะฐั‚ะธะบะธ ะณั€ะฐั„ะธะบะธ. ะก ะฟะพะผะพั‰ัŒัŽ R-ั€ะฐััˆะธั€ะตะฝะธั g...
ะกะพะทะดะฐะฝะธะต ะบะฐั€ั‚ะพะณั€ะฐะผะผ ะฝะฐ ะฟั€ะธะฝั†ะธะฟะฐั… ะณั€ะฐะผะผะฐั‚ะธะบะธ ะณั€ะฐั„ะธะบะธ. ะก ะฟะพะผะพั‰ัŒัŽ R-ั€ะฐััˆะธั€ะตะฝะธั g...ะกะพะทะดะฐะฝะธะต ะบะฐั€ั‚ะพะณั€ะฐะผะผ ะฝะฐ ะฟั€ะธะฝั†ะธะฟะฐั… ะณั€ะฐะผะผะฐั‚ะธะบะธ ะณั€ะฐั„ะธะบะธ. ะก ะฟะพะผะพั‰ัŒัŽ R-ั€ะฐััˆะธั€ะตะฝะธั g...
ะกะพะทะดะฐะฝะธะต ะบะฐั€ั‚ะพะณั€ะฐะผะผ ะฝะฐ ะฟั€ะธะฝั†ะธะฟะฐั… ะณั€ะฐะผะผะฐั‚ะธะบะธ ะณั€ะฐั„ะธะบะธ. ะก ะฟะพะผะพั‰ัŒัŽ R-ั€ะฐััˆะธั€ะตะฝะธั g...
Matrunich Consulting
ย 
OpenLayers Feature Frenzy
OpenLayers Feature FrenzyOpenLayers Feature Frenzy
OpenLayers Feature Frenzy
Andreas Hocevar
ย 
Lincoln ddj
Lincoln ddjLincoln ddj
Lincoln ddjTony Hirst
ย 
Geo Spatial Plot using R
Geo Spatial Plot using R Geo Spatial Plot using R
Geo Spatial Plot using R
Rupak Roy
ย 
OL3-Cesium: 3D for OpenLayers maps
OL3-Cesium: 3D for OpenLayers mapsOL3-Cesium: 3D for OpenLayers maps
OL3-Cesium: 3D for OpenLayers maps
Andreas Hocevar
ย 
Data visualization with multiple groups using ggplot2
Data visualization with multiple groups using ggplot2Data visualization with multiple groups using ggplot2
Data visualization with multiple groups using ggplot2
Rupak Roy
ย 
Solving a โ€œTransportation Planningโ€ Problem through the Programming Language โ€œCโ€
Solving a โ€œTransportation Planningโ€ Problem through the Programming Language โ€œCโ€Solving a โ€œTransportation Planningโ€ Problem through the Programming Language โ€œCโ€
Solving a โ€œTransportation Planningโ€ Problem through the Programming Language โ€œCโ€
Shahadat Hossain Shakil
ย 
Trytten computergraphics(1)
Trytten computergraphics(1)Trytten computergraphics(1)
Trytten computergraphics(1)
nriaz469
ย 
computer graphics
computer graphicscomputer graphics
computer graphicsMegabi Mamo
ย 
Python at 10.1
Python at 10.1Python at 10.1
Python at 10.1
Simon Jackson
ย 
Excel
ExcelExcel
Excel
AshokGugliya
ย 
QGIS training class 1
QGIS training class 1QGIS training class 1
QGIS training class 1
Hiroaki Sengoku
ย 
Graphics
GraphicsGraphics
Graphics
obrienduke
ย 
Cgm Lab Manual
Cgm Lab ManualCgm Lab Manual
R-ggplot2 package Examples
R-ggplot2 package ExamplesR-ggplot2 package Examples
R-ggplot2 package Examples
Dr. Volkan OBAN
ย 
Computer Graphics Practical
Computer Graphics PracticalComputer Graphics Practical
Computer Graphics PracticalNeha Sharma
ย 
Basics of Computer graphics lab
Basics of Computer graphics labBasics of Computer graphics lab
Basics of Computer graphics lab
Priya Goyal
ย 
Computer graphics
Computer graphicsComputer graphics
Computer graphicsamitsarda3
ย 
Julia Set
Julia SetJulia Set
Julia Set
Ashish Kumar
ย 

What's hot (20)

ะกะพะทะดะฐะฝะธะต ะบะฐั€ั‚ะพะณั€ะฐะผะผ ะฝะฐ ะฟั€ะธะฝั†ะธะฟะฐั… ะณั€ะฐะผะผะฐั‚ะธะบะธ ะณั€ะฐั„ะธะบะธ. ะก ะฟะพะผะพั‰ัŒัŽ R-ั€ะฐััˆะธั€ะตะฝะธั g...
ะกะพะทะดะฐะฝะธะต ะบะฐั€ั‚ะพะณั€ะฐะผะผ ะฝะฐ ะฟั€ะธะฝั†ะธะฟะฐั… ะณั€ะฐะผะผะฐั‚ะธะบะธ ะณั€ะฐั„ะธะบะธ. ะก ะฟะพะผะพั‰ัŒัŽ R-ั€ะฐััˆะธั€ะตะฝะธั g...ะกะพะทะดะฐะฝะธะต ะบะฐั€ั‚ะพะณั€ะฐะผะผ ะฝะฐ ะฟั€ะธะฝั†ะธะฟะฐั… ะณั€ะฐะผะผะฐั‚ะธะบะธ ะณั€ะฐั„ะธะบะธ. ะก ะฟะพะผะพั‰ัŒัŽ R-ั€ะฐััˆะธั€ะตะฝะธั g...
ะกะพะทะดะฐะฝะธะต ะบะฐั€ั‚ะพะณั€ะฐะผะผ ะฝะฐ ะฟั€ะธะฝั†ะธะฟะฐั… ะณั€ะฐะผะผะฐั‚ะธะบะธ ะณั€ะฐั„ะธะบะธ. ะก ะฟะพะผะพั‰ัŒัŽ R-ั€ะฐััˆะธั€ะตะฝะธั g...
ย 
OpenLayers Feature Frenzy
OpenLayers Feature FrenzyOpenLayers Feature Frenzy
OpenLayers Feature Frenzy
ย 
Lincoln ddj
Lincoln ddjLincoln ddj
Lincoln ddj
ย 
Geo Spatial Plot using R
Geo Spatial Plot using R Geo Spatial Plot using R
Geo Spatial Plot using R
ย 
OL3-Cesium: 3D for OpenLayers maps
OL3-Cesium: 3D for OpenLayers mapsOL3-Cesium: 3D for OpenLayers maps
OL3-Cesium: 3D for OpenLayers maps
ย 
Data visualization with multiple groups using ggplot2
Data visualization with multiple groups using ggplot2Data visualization with multiple groups using ggplot2
Data visualization with multiple groups using ggplot2
ย 
Solving a โ€œTransportation Planningโ€ Problem through the Programming Language โ€œCโ€
Solving a โ€œTransportation Planningโ€ Problem through the Programming Language โ€œCโ€Solving a โ€œTransportation Planningโ€ Problem through the Programming Language โ€œCโ€
Solving a โ€œTransportation Planningโ€ Problem through the Programming Language โ€œCโ€
ย 
Trytten computergraphics(1)
Trytten computergraphics(1)Trytten computergraphics(1)
Trytten computergraphics(1)
ย 
computer graphics
computer graphicscomputer graphics
computer graphics
ย 
Python at 10.1
Python at 10.1Python at 10.1
Python at 10.1
ย 
Excel
ExcelExcel
Excel
ย 
QGIS training class 1
QGIS training class 1QGIS training class 1
QGIS training class 1
ย 
Graphics
GraphicsGraphics
Graphics
ย 
Cgm Lab Manual
Cgm Lab ManualCgm Lab Manual
Cgm Lab Manual
ย 
R-ggplot2 package Examples
R-ggplot2 package ExamplesR-ggplot2 package Examples
R-ggplot2 package Examples
ย 
Computer Graphics Practical
Computer Graphics PracticalComputer Graphics Practical
Computer Graphics Practical
ย 
Basics of Computer graphics lab
Basics of Computer graphics labBasics of Computer graphics lab
Basics of Computer graphics lab
ย 
Computer graphics
Computer graphicsComputer graphics
Computer graphics
ย 
Julia Set
Julia SetJulia Set
Julia Set
ย 
Cgm Lab Manual
Cgm Lab ManualCgm Lab Manual
Cgm Lab Manual
ย 

Similar to Introducing the Microsoft Virtual Earth Silverlight Map Control CTP

Windows Phone 7 Bing Maps Control
Windows Phone 7 Bing Maps ControlWindows Phone 7 Bing Maps Control
Windows Phone 7 Bing Maps Control
Chris Pendleton
ย 
Developing Applications with Microsoft Virtual Earth
Developing Applications with Microsoft Virtual EarthDeveloping Applications with Microsoft Virtual Earth
Developing Applications with Microsoft Virtual Earth
goodfriday
ย 
Application of OpenStreetMap in Disaster Risk Management
Application of OpenStreetMap in Disaster Risk ManagementApplication of OpenStreetMap in Disaster Risk Management
Application of OpenStreetMap in Disaster Risk Management
NopphawanTamkuan
ย 
How to make a video game
How to make a video gameHow to make a video game
How to make a video game
dandylion13
ย 
Supstat nyc subway
Supstat nyc subwaySupstat nyc subway
Supstat nyc subway
Vivian S. Zhang
ย 
What are customers building with new Bing Maps capabilities
What are customers building with new Bing Maps capabilitiesWhat are customers building with new Bing Maps capabilities
What are customers building with new Bing Maps capabilities
Microsoft Tech Community
ย 
C++ Windows Forms L09 - GDI P2
C++ Windows Forms L09 - GDI P2C++ Windows Forms L09 - GDI P2
C++ Windows Forms L09 - GDI P2
Mohammad Shaker
ย 
What's the deal with Android maps?
What's the deal with Android maps?What's the deal with Android maps?
What's the deal with Android maps?
Chuck Greb
ย 
Intro to computer vision in .net
Intro to computer vision in .netIntro to computer vision in .net
Intro to computer vision in .net
Stephen Lorello
ย 
Mashup caravan android-talks
Mashup caravan android-talksMashup caravan android-talks
Mashup caravan android-talkshonjo2
ย 
Exploring Canvas
Exploring CanvasExploring Canvas
Exploring CanvasKevin Hoyt
ย 
Foliumcheatsheet
FoliumcheatsheetFoliumcheatsheet
Foliumcheatsheet
Nishant Upadhyay
ย 
How Quick Can We Be? Data Visualization Techniques for Engineers.
How Quick Can We Be? Data Visualization Techniques for Engineers. How Quick Can We Be? Data Visualization Techniques for Engineers.
How Quick Can We Be? Data Visualization Techniques for Engineers. Avni Khatri
ย 
Svcc 2013-d3
Svcc 2013-d3Svcc 2013-d3
Svcc 2013-d3
Oswald Campesato
ย 
SVCC 2013 D3.js Presentation (10/05/2013)
SVCC 2013 D3.js Presentation (10/05/2013)SVCC 2013 D3.js Presentation (10/05/2013)
SVCC 2013 D3.js Presentation (10/05/2013)
Oswald Campesato
ย 
Maps - Part 3 - Transcript.pdf
Maps - Part 3 - Transcript.pdfMaps - Part 3 - Transcript.pdf
Maps - Part 3 - Transcript.pdf
ShaiAlmog1
ย 
Move your data (Hans Rosling style) with googleVis + 1 line of R code
Move your data (Hans Rosling style) with googleVis + 1 line of R codeMove your data (Hans Rosling style) with googleVis + 1 line of R code
Move your data (Hans Rosling style) with googleVis + 1 line of R code
Jeffrey Breen
ย 
Google Maps JS API
Google Maps JS APIGoogle Maps JS API
Google Maps JS API
Alberto Simรตes
ย 

Similar to Introducing the Microsoft Virtual Earth Silverlight Map Control CTP (20)

Windows Phone 7 Bing Maps Control
Windows Phone 7 Bing Maps ControlWindows Phone 7 Bing Maps Control
Windows Phone 7 Bing Maps Control
ย 
Developing Applications with Microsoft Virtual Earth
Developing Applications with Microsoft Virtual EarthDeveloping Applications with Microsoft Virtual Earth
Developing Applications with Microsoft Virtual Earth
ย 
Application of OpenStreetMap in Disaster Risk Management
Application of OpenStreetMap in Disaster Risk ManagementApplication of OpenStreetMap in Disaster Risk Management
Application of OpenStreetMap in Disaster Risk Management
ย 
How to make a video game
How to make a video gameHow to make a video game
How to make a video game
ย 
Supstat nyc subway
Supstat nyc subwaySupstat nyc subway
Supstat nyc subway
ย 
What are customers building with new Bing Maps capabilities
What are customers building with new Bing Maps capabilitiesWhat are customers building with new Bing Maps capabilities
What are customers building with new Bing Maps capabilities
ย 
C++ Windows Forms L09 - GDI P2
C++ Windows Forms L09 - GDI P2C++ Windows Forms L09 - GDI P2
C++ Windows Forms L09 - GDI P2
ย 
What's the deal with Android maps?
What's the deal with Android maps?What's the deal with Android maps?
What's the deal with Android maps?
ย 
Intro to computer vision in .net
Intro to computer vision in .netIntro to computer vision in .net
Intro to computer vision in .net
ย 
Mashup caravan android-talks
Mashup caravan android-talksMashup caravan android-talks
Mashup caravan android-talks
ย 
Google maps
Google mapsGoogle maps
Google maps
ย 
Google maps
Google mapsGoogle maps
Google maps
ย 
Exploring Canvas
Exploring CanvasExploring Canvas
Exploring Canvas
ย 
Foliumcheatsheet
FoliumcheatsheetFoliumcheatsheet
Foliumcheatsheet
ย 
How Quick Can We Be? Data Visualization Techniques for Engineers.
How Quick Can We Be? Data Visualization Techniques for Engineers. How Quick Can We Be? Data Visualization Techniques for Engineers.
How Quick Can We Be? Data Visualization Techniques for Engineers.
ย 
Svcc 2013-d3
Svcc 2013-d3Svcc 2013-d3
Svcc 2013-d3
ย 
SVCC 2013 D3.js Presentation (10/05/2013)
SVCC 2013 D3.js Presentation (10/05/2013)SVCC 2013 D3.js Presentation (10/05/2013)
SVCC 2013 D3.js Presentation (10/05/2013)
ย 
Maps - Part 3 - Transcript.pdf
Maps - Part 3 - Transcript.pdfMaps - Part 3 - Transcript.pdf
Maps - Part 3 - Transcript.pdf
ย 
Move your data (Hans Rosling style) with googleVis + 1 line of R code
Move your data (Hans Rosling style) with googleVis + 1 line of R codeMove your data (Hans Rosling style) with googleVis + 1 line of R code
Move your data (Hans Rosling style) with googleVis + 1 line of R code
ย 
Google Maps JS API
Google Maps JS APIGoogle Maps JS API
Google Maps JS API
ย 

More from goodfriday

Narine Presentations 20051021 134052
Narine Presentations 20051021 134052Narine Presentations 20051021 134052
Narine Presentations 20051021 134052goodfriday
ย 
Triunemar05
Triunemar05Triunemar05
Triunemar05goodfriday
ย 
09 03 22 easter
09 03 22 easter09 03 22 easter
09 03 22 eastergoodfriday
ย 
Holy Week Easter 2009
Holy Week Easter 2009Holy Week Easter 2009
Holy Week Easter 2009goodfriday
ย 
Holt Park Easter 09 Swim
Holt Park Easter 09 SwimHolt Park Easter 09 Swim
Holt Park Easter 09 Swimgoodfriday
ย 
Easter Letter
Easter LetterEaster Letter
Easter Lettergoodfriday
ย 
April2009
April2009April2009
April2009goodfriday
ย 
Swarthmore Lentbrochure20092
Swarthmore Lentbrochure20092Swarthmore Lentbrochure20092
Swarthmore Lentbrochure20092goodfriday
ย 
Eastercard2009
Eastercard2009Eastercard2009
Eastercard2009goodfriday
ย 
Easterservices2009
Easterservices2009Easterservices2009
Easterservices2009goodfriday
ย 
Bulletin Current
Bulletin CurrentBulletin Current
Bulletin Currentgoodfriday
ย 
Easter2009
Easter2009Easter2009
Easter2009goodfriday
ย 
Bulletin
BulletinBulletin
Bulletingoodfriday
ย 
March 2009 Newsletter
March 2009 NewsletterMarch 2009 Newsletter
March 2009 Newslettergoodfriday
ย 
Mar 29 2009
Mar 29 2009Mar 29 2009
Mar 29 2009goodfriday
ย 
Lent Easter 2009
Lent Easter 2009Lent Easter 2009
Lent Easter 2009goodfriday
ย 
Easterpowersports09
Easterpowersports09Easterpowersports09
Easterpowersports09goodfriday
ย 
Easter Trading 09
Easter Trading 09Easter Trading 09
Easter Trading 09goodfriday
ย 
Easter Brochure 2009
Easter Brochure 2009Easter Brochure 2009
Easter Brochure 2009goodfriday
ย 
March April 2009 Calendar
March April 2009 CalendarMarch April 2009 Calendar
March April 2009 Calendargoodfriday
ย 

More from goodfriday (20)

Narine Presentations 20051021 134052
Narine Presentations 20051021 134052Narine Presentations 20051021 134052
Narine Presentations 20051021 134052
ย 
Triunemar05
Triunemar05Triunemar05
Triunemar05
ย 
09 03 22 easter
09 03 22 easter09 03 22 easter
09 03 22 easter
ย 
Holy Week Easter 2009
Holy Week Easter 2009Holy Week Easter 2009
Holy Week Easter 2009
ย 
Holt Park Easter 09 Swim
Holt Park Easter 09 SwimHolt Park Easter 09 Swim
Holt Park Easter 09 Swim
ย 
Easter Letter
Easter LetterEaster Letter
Easter Letter
ย 
April2009
April2009April2009
April2009
ย 
Swarthmore Lentbrochure20092
Swarthmore Lentbrochure20092Swarthmore Lentbrochure20092
Swarthmore Lentbrochure20092
ย 
Eastercard2009
Eastercard2009Eastercard2009
Eastercard2009
ย 
Easterservices2009
Easterservices2009Easterservices2009
Easterservices2009
ย 
Bulletin Current
Bulletin CurrentBulletin Current
Bulletin Current
ย 
Easter2009
Easter2009Easter2009
Easter2009
ย 
Bulletin
BulletinBulletin
Bulletin
ย 
March 2009 Newsletter
March 2009 NewsletterMarch 2009 Newsletter
March 2009 Newsletter
ย 
Mar 29 2009
Mar 29 2009Mar 29 2009
Mar 29 2009
ย 
Lent Easter 2009
Lent Easter 2009Lent Easter 2009
Lent Easter 2009
ย 
Easterpowersports09
Easterpowersports09Easterpowersports09
Easterpowersports09
ย 
Easter Trading 09
Easter Trading 09Easter Trading 09
Easter Trading 09
ย 
Easter Brochure 2009
Easter Brochure 2009Easter Brochure 2009
Easter Brochure 2009
ย 
March April 2009 Calendar
March April 2009 CalendarMarch April 2009 Calendar
March April 2009 Calendar
ย 

Recently uploaded

ikea_woodgreen_petscharity_cat-alogue_digital.pdf
ikea_woodgreen_petscharity_cat-alogue_digital.pdfikea_woodgreen_petscharity_cat-alogue_digital.pdf
ikea_woodgreen_petscharity_cat-alogue_digital.pdf
agatadrynko
ย 
Business Valuation Principles for Entrepreneurs
Business Valuation Principles for EntrepreneursBusiness Valuation Principles for Entrepreneurs
Business Valuation Principles for Entrepreneurs
Ben Wann
ย 
Skye Residences | Extended Stay Residences Near Toronto Airport
Skye Residences | Extended Stay Residences Near Toronto AirportSkye Residences | Extended Stay Residences Near Toronto Airport
Skye Residences | Extended Stay Residences Near Toronto Airport
marketingjdass
ย 
20240425_ TJ Communications Credentials_compressed.pdf
20240425_ TJ Communications Credentials_compressed.pdf20240425_ TJ Communications Credentials_compressed.pdf
20240425_ TJ Communications Credentials_compressed.pdf
tjcomstrang
ย 
Exploring Patterns of Connection with Social Dreaming
Exploring Patterns of Connection with Social DreamingExploring Patterns of Connection with Social Dreaming
Exploring Patterns of Connection with Social Dreaming
Nicola Wreford-Howard
ย 
Tata Group Dials Taiwan for Its Chipmaking Ambition in Gujaratโ€™s Dholera
Tata Group Dials Taiwan for Its Chipmaking Ambition in Gujaratโ€™s DholeraTata Group Dials Taiwan for Its Chipmaking Ambition in Gujaratโ€™s Dholera
Tata Group Dials Taiwan for Its Chipmaking Ambition in Gujaratโ€™s Dholera
Avirahi City Dholera
ย 
Putting the SPARK into Virtual Training.pptx
Putting the SPARK into Virtual Training.pptxPutting the SPARK into Virtual Training.pptx
Putting the SPARK into Virtual Training.pptx
Cynthia Clay
ย 
Brand Analysis for an artist named Struan
Brand Analysis for an artist named StruanBrand Analysis for an artist named Struan
Brand Analysis for an artist named Struan
sarahvanessa51503
ย 
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdfModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
fisherameliaisabella
ย 
What are the main advantages of using HR recruiter services.pdf
What are the main advantages of using HR recruiter services.pdfWhat are the main advantages of using HR recruiter services.pdf
What are the main advantages of using HR recruiter services.pdf
HumanResourceDimensi1
ย 
Digital Transformation and IT Strategy Toolkit and Templates
Digital Transformation and IT Strategy Toolkit and TemplatesDigital Transformation and IT Strategy Toolkit and Templates
Digital Transformation and IT Strategy Toolkit and Templates
Aurelien Domont, MBA
ย 
RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...
RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...
RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...
BBPMedia1
ย 
Attending a job Interview for B1 and B2 Englsih learners
Attending a job Interview for B1 and B2 Englsih learnersAttending a job Interview for B1 and B2 Englsih learners
Attending a job Interview for B1 and B2 Englsih learners
Erika906060
ย 
falcon-invoice-discounting-a-premier-platform-for-investors-in-india
falcon-invoice-discounting-a-premier-platform-for-investors-in-indiafalcon-invoice-discounting-a-premier-platform-for-investors-in-india
falcon-invoice-discounting-a-premier-platform-for-investors-in-india
Falcon Invoice Discounting
ย 
RMD24 | Retail media: hoe zet je dit in als je geen AH of Unilever bent? Heid...
RMD24 | Retail media: hoe zet je dit in als je geen AH of Unilever bent? Heid...RMD24 | Retail media: hoe zet je dit in als je geen AH of Unilever bent? Heid...
RMD24 | Retail media: hoe zet je dit in als je geen AH of Unilever bent? Heid...
BBPMedia1
ย 
Project File Report BBA 6th semester.pdf
Project File Report BBA 6th semester.pdfProject File Report BBA 6th semester.pdf
Project File Report BBA 6th semester.pdf
RajPriye
ย 
anas about venice for grade 6f about venice
anas about venice for grade 6f about veniceanas about venice for grade 6f about venice
anas about venice for grade 6f about venice
anasabutalha2013
ย 
ikea_woodgreen_petscharity_dog-alogue_digital.pdf
ikea_woodgreen_petscharity_dog-alogue_digital.pdfikea_woodgreen_petscharity_dog-alogue_digital.pdf
ikea_woodgreen_petscharity_dog-alogue_digital.pdf
agatadrynko
ย 
ENTREPRENEURSHIP TRAINING.ppt for graduating class (1).ppt
ENTREPRENEURSHIP TRAINING.ppt for graduating class (1).pptENTREPRENEURSHIP TRAINING.ppt for graduating class (1).ppt
ENTREPRENEURSHIP TRAINING.ppt for graduating class (1).ppt
zechu97
ย 
Affordable Stationery Printing Services in Jaipur | Navpack n Print
Affordable Stationery Printing Services in Jaipur | Navpack n PrintAffordable Stationery Printing Services in Jaipur | Navpack n Print
Affordable Stationery Printing Services in Jaipur | Navpack n Print
Navpack & Print
ย 

Recently uploaded (20)

ikea_woodgreen_petscharity_cat-alogue_digital.pdf
ikea_woodgreen_petscharity_cat-alogue_digital.pdfikea_woodgreen_petscharity_cat-alogue_digital.pdf
ikea_woodgreen_petscharity_cat-alogue_digital.pdf
ย 
Business Valuation Principles for Entrepreneurs
Business Valuation Principles for EntrepreneursBusiness Valuation Principles for Entrepreneurs
Business Valuation Principles for Entrepreneurs
ย 
Skye Residences | Extended Stay Residences Near Toronto Airport
Skye Residences | Extended Stay Residences Near Toronto AirportSkye Residences | Extended Stay Residences Near Toronto Airport
Skye Residences | Extended Stay Residences Near Toronto Airport
ย 
20240425_ TJ Communications Credentials_compressed.pdf
20240425_ TJ Communications Credentials_compressed.pdf20240425_ TJ Communications Credentials_compressed.pdf
20240425_ TJ Communications Credentials_compressed.pdf
ย 
Exploring Patterns of Connection with Social Dreaming
Exploring Patterns of Connection with Social DreamingExploring Patterns of Connection with Social Dreaming
Exploring Patterns of Connection with Social Dreaming
ย 
Tata Group Dials Taiwan for Its Chipmaking Ambition in Gujaratโ€™s Dholera
Tata Group Dials Taiwan for Its Chipmaking Ambition in Gujaratโ€™s DholeraTata Group Dials Taiwan for Its Chipmaking Ambition in Gujaratโ€™s Dholera
Tata Group Dials Taiwan for Its Chipmaking Ambition in Gujaratโ€™s Dholera
ย 
Putting the SPARK into Virtual Training.pptx
Putting the SPARK into Virtual Training.pptxPutting the SPARK into Virtual Training.pptx
Putting the SPARK into Virtual Training.pptx
ย 
Brand Analysis for an artist named Struan
Brand Analysis for an artist named StruanBrand Analysis for an artist named Struan
Brand Analysis for an artist named Struan
ย 
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdfModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
ย 
What are the main advantages of using HR recruiter services.pdf
What are the main advantages of using HR recruiter services.pdfWhat are the main advantages of using HR recruiter services.pdf
What are the main advantages of using HR recruiter services.pdf
ย 
Digital Transformation and IT Strategy Toolkit and Templates
Digital Transformation and IT Strategy Toolkit and TemplatesDigital Transformation and IT Strategy Toolkit and Templates
Digital Transformation and IT Strategy Toolkit and Templates
ย 
RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...
RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...
RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...
ย 
Attending a job Interview for B1 and B2 Englsih learners
Attending a job Interview for B1 and B2 Englsih learnersAttending a job Interview for B1 and B2 Englsih learners
Attending a job Interview for B1 and B2 Englsih learners
ย 
falcon-invoice-discounting-a-premier-platform-for-investors-in-india
falcon-invoice-discounting-a-premier-platform-for-investors-in-indiafalcon-invoice-discounting-a-premier-platform-for-investors-in-india
falcon-invoice-discounting-a-premier-platform-for-investors-in-india
ย 
RMD24 | Retail media: hoe zet je dit in als je geen AH of Unilever bent? Heid...
RMD24 | Retail media: hoe zet je dit in als je geen AH of Unilever bent? Heid...RMD24 | Retail media: hoe zet je dit in als je geen AH of Unilever bent? Heid...
RMD24 | Retail media: hoe zet je dit in als je geen AH of Unilever bent? Heid...
ย 
Project File Report BBA 6th semester.pdf
Project File Report BBA 6th semester.pdfProject File Report BBA 6th semester.pdf
Project File Report BBA 6th semester.pdf
ย 
anas about venice for grade 6f about venice
anas about venice for grade 6f about veniceanas about venice for grade 6f about venice
anas about venice for grade 6f about venice
ย 
ikea_woodgreen_petscharity_dog-alogue_digital.pdf
ikea_woodgreen_petscharity_dog-alogue_digital.pdfikea_woodgreen_petscharity_dog-alogue_digital.pdf
ikea_woodgreen_petscharity_dog-alogue_digital.pdf
ย 
ENTREPRENEURSHIP TRAINING.ppt for graduating class (1).ppt
ENTREPRENEURSHIP TRAINING.ppt for graduating class (1).pptENTREPRENEURSHIP TRAINING.ppt for graduating class (1).ppt
ENTREPRENEURSHIP TRAINING.ppt for graduating class (1).ppt
ย 
Affordable Stationery Printing Services in Jaipur | Navpack n Print
Affordable Stationery Printing Services in Jaipur | Navpack n PrintAffordable Stationery Printing Services in Jaipur | Navpack n Print
Affordable Stationery Printing Services in Jaipur | Navpack n Print
ย 

Introducing the Microsoft Virtual Earth Silverlight Map Control CTP

  • 1.
  • 2.
  • 10.
  • 13.
  • 14.
  • 15.
  • 16.
  • 18. Leveraging XAML โ€“ Get A Map <UserControl x:Class=quot;VirtualEarthSilverlight.Pagequot; xmlns=quot;http://schemas.microsoft.com/winfx/2006/xaml/presentat ionquot; xmlns:x=quot;http://schemas.microsoft.com/winfx/2006/xamlquot; xmlns:m=quot;clr- namespace:Microsoft.VirtualEarth.MapControl;assembly=Micro soft.VirtualEarth.MapControlquot;> <Grid x:Name=quot;LayoutRootquot; Background=quot;Whitequot;> <m:Map/> </Grid> </UserControl>
  • 19. Leveraging XAML โ€“ Get A Map xmlns:m=quot;clr- namespace:Microsoft.VirtualEarth.MapControl;assembly=Micro soft.VirtualEarth.MapControlquot; <m:Map/>
  • 20. Leveraging XAML โ€“ Configuring the Mapplication
  • 21. Leveraging XAML โ€“ Configuring the Mapplication <UserControl x:Class=quot;VirtualEarthSilverlight.Pageโ€œ xmlns=quot;http://schemas.microsoft.com/winfx/2006/xaml/presen tationquot; xmlns:x=quot;http://schemas.microsoft.com/winfx/2006/xamlquot; xmlns:m=quot;clr- namespace:Microsoft.VirtualEarth.MapControl;assembly=Micro soft.VirtualEarth.MapControlquot;> <Grid x:Name=quot;LayoutRootquot; Background=quot;Whitequot;> <m:Map Center=quot;36.12154022795178, - 115.16997814178468quot; Mode=quot;AerialWithLabelsquot; NavigationVisibility=quot;Visiblequot; ZoomLevel=quot;17quot; /> </Grid> </UserControl>
  • 22. Leveraging XAML โ€“ Configuring the Mapplication xmlns:m=quot;clr- namespace:Microsoft.VirtualEarth.MapControl;assembly=Micro soft.VirtualEarth.MapControlquot;> <m:Map Center=quot;36.12154022795178, - 115.16997814178468quot; Mode=quot;AerialWithLabelsquot; NavigationVisibility=quot;Visiblequot; ZoomLevel=quot;17quot; />
  • 23. Leveraging C# โ€“ Adding Data to the Map
  • 24. Leveraging C# โ€“ Adding Data to the Map <m:Map HorizontalAlignment=quot;Stretchquot; VerticalAlignment=quot;Stretchquot; x:Name=quot;MyMapquot; Grid.Column=quot;1quot; Grid.Row=quot;0quot;> <m:Map.Children> <m:MapLayer x:Name=quot;MyLayerquot;> <m:MapPolygon Fill=quot;Bluequot; Stroke=quot;Greenquot; StrokeThickness=quot;5quot; Locations=quot;20,-20 20,20 -20,20 -20,- 20quot; Opacity=quot;0.7quot; /> </m:MapLayer> </m:Map.Children> </m:Map>
  • 25. Leveraging C# โ€“ Adding Data to the Map LocationCollection points = GetPoints(pointsCount, centerX, centerY); MapPolygon shape = new MapPolygon(); shape.Locations = points; shape.StrokeThickness = thickness; shape.Stroke = new SolidColorBrush(color); shape.Fill = new SolidColorBrush(fillColor); MyLayer.Children.Add(shape);
  • 26. Leveraging C# โ€“ Adding Data to the Map double width = MyMap.ViewportSize.Width * 0.1; LocationCollection points = new LocationCollection(); for (int i = 0; i < count; i++) { double j = (double)i / (double)count; points.Add(MyMap.ViewportPointToLocation( new Point(centerX + Math.Cos(j * 2.0 * Math.PI) * width, centerY + Math.Sin(j * 2.0 * Math.PI) * width))); } return points;
  • 27. Leveraging C# โ€“ Adding Data to the Map
  • 28. Leveraging C# โ€“ Adding Data to the Map
  • 29. Leveraging C# โ€“ Adding Data to the Map
  • 30. Leveraging C# โ€“ Adding Media to the Map
  • 31. Leveraging C# โ€“ Adding Media to the Map <m:Map x:Name=quot;myMapquot; Grid.Column=quot;0quot; Grid.Row=quot;0quot; Mode=quot;AerialWithLabelsquot;> <m:Map.Children> <m:MapLayer x:Name=quot;myMapLayerquot;> </m:MapLayer> </m:Map.Children> </m:Map>
  • 32. Leveraging C# โ€“ Adding Media to the Map private void ChangeMapView(object sender, RoutedEventArgs e) { myMap.View (MapViewSpecification)mapSpecConverter.ConvertFrom(((Butto n)sender).Tag); pushpin = CreateUIElement(); Location pinLocation = myMap.TargetView.Center; PositionMethod position = PositionMethod.Center; myMapLayer.AddChild(pushpin, pinLocation, position); }
  • 33. Leveraging C# โ€“ Adding Media to the Map //Image Brush ImageBrush imagebrush = new ImageBrush(); imagebrush.AlignmentX = AlignmentX.Center; imagebrush.AlignmentY = AlignmentY.Center; imagebrush.ImageSource = new BitmapImage(new Uri(@quot;Chris Pendleton.jpgquot;, UriKind.Relative)); imagebrush.Opacity = 1;
  • 34. Leveraging C# โ€“ Adding Media to the Map Ellipse ellipse = new Ellipse(); ellipse.Fill = new SolidColorBrush(Colors.Cyan); ellipse.Opacity = .9; ellipse.Stroke = new SolidColorBrush(Colors.Black); ellipse.Height = 100.00; ellipse.Width = 100.00; Border border = new Border(); border.BorderBrush = new SolidColorBrush(Colors.Black); border.BorderThickness = new Thickness(0); border.Child = ellipse; return border;
  • 35. Leveraging C# โ€“ Adding Media to the Map
  • 36. Leveraging C# โ€“ Accessing Virtual Earth WS
  • 37. Leveraging C# โ€“ Accessing Virtual Earth WS private int geocodesInProgress; private PlatformServices.GeocodeServiceClient geocodeClient; private PlatformServices.GeocodeServiceClient GeocodeClient{ get{ if (null == geocodeClient){ //Handle http/https bool httpsUriScheme = HtmlPage.Document.DocumentUri.Scheme.Equals(Uri.UriSchemeHttps); BasicHttpBinding binding = httpsUriScheme ? new BasicHttpBinding(BasicHttpSecurityMode.Transport) : new BasicHttpBinding(BasicHttpSecurityMode.None); UriBuilder serviceUri = new UriBuilder(quot;http://dev.virtualearth.net/webservices/v1/GeocodeService/Geoc odeService.svcquot;); //Create the Service Client geocodeClient = new PlatformServices.GeocodeServiceClient(binding, new EndpointAddress(serviceUri.Uri)); geocodeClient.GeocodeCompleted += new EventHandler<PlatformServices.GeocodeCompletedEventArgs>(client_GeocodeCom pleted); } return geocodeClient; } }
  • 38. Leveraging C# โ€“ Accessing Virtual Earth WS private void GeocodeAddress(string address){ PlatformServices.GeocodeRequest request = new PlatformServices.GeocodeRequest(); request.Culture = MyMap.Culture; request.Query = address; request.ExecutionOptions = new PlatformServices.ExecutionOptions(); request.ExecutionOptions.SuppressFaults = true; request.Credentials = PlatformServicesHelper.GetCredentials(); request.Options = new PlatformServices.GeocodeOptions(); // Using ObservableCollection since this is the default for Silverlight proxy generation. request.Options.Filters = new ObservableCollection<PlatformServices.FilterBase>(); PlatformServices.ConfidenceFilter filter = new PlatformServices.ConfidenceFilter(); filter.MinimumConfidence = PlatformServices.Confidence.High; request.Options.Filters.Add(filter); Output.Text = quot;< geocoding quot; + address + quot; >quot;; geocodesInProgress++; // Make asynchronous call to fetch the data ... pass state object. GeocodeClient.GeocodeAsync(request, address); }
  • 39. Leveraging C# โ€“ Accessing Virtual Earth WS /* Demonstrate Microsoft Virtual Earth Silverlight Interactive SDK */ //demo
  • 40.
  • 41.
  • 42.
  • 43. Your feedback is important!