Category Archives: HD Video

This is pretty awesome. I have been deep into Bing Maps as well as the Deep Earth project and have ported it to Prism as well as the brand spanking new extension DLL for StreetSide view.

 

 

Here is what my old apartment looks like for example (and click the link to play yourself – routes, free form drawing of geometries, reverse geo-code, etc. etc.

 

 

silverlightstreetview

 

 

 

Here is the link.

 

So how is this possible? I’ll keep this short and if anyone needs more I’d be happy to help.

 

highlevel

 

 

 

 

Look close at the versions. You need the new CTP of Extended Modes and the 1.0.1.0 of the two map controls.

 

 

And using Prism makes Deep Earth a joy to work with:

 

Code Snippet
  1. <UserControl x:Class=“pushbomb.geo.poc.Page”
  2.    xmlns=“http://schemas.microsoft.com/winfx/2006/xaml/presentation”
  3.    xmlns:x=“http://schemas.microsoft.com/winfx/2006/xaml” xmlns:Regions=“clr-namespace:Microsoft.Practices.Composite.Presentation.Regions;assembly=Microsoft.Practices.Composite.Presentation”>
  4.     <UserControl.Resources>
  5.         <ResourceDictionary>
  6.             <ResourceDictionary.MergedDictionaries>
  7.                 <ResourceDictionary Source=“/DeepEarth.BingMapsToolkit.Client.Common;component/resources/CommonStyles.xaml” />
  8.             </ResourceDictionary.MergedDictionaries>
  9.         </ResourceDictionary>
  10.     </UserControl.Resources>
  11.     <Grid x:Name=“LayoutRoot” Background=“Black”>
  12.         <ContentControl   Content=”{Binding Map} HorizontalContentAlignment=“Stretch” VerticalContentAlignment=“Stretch” >
  13.         </ContentControl>
  14.         <ItemsControl Regions:RegionManager.RegionName=“WidgetsRegion” />
  15.     </Grid>
  16. </UserControl>

 

 

Code Snippet
  1. using System.Windows;
  2. using Microsoft.Maps.MapControl.Core;
  3. using Microsoft.Practices.Unity;
  4. using pushbomb.composite.core.Infrastructure;
  5. using pushbomb.composite.core.Interfaces;
  6. namespace pushbomb.geo.poc
  7. {
  8.     public class MapViewModel : ViewModelBase, IMapViewContainer
  9.     {
  10.         private readonly InnerViewContainer<MapShellView> _inner;
  11.         public MapViewModel(IApplicationContext context, [Dependency("Shell")] FrameworkElement view)
  12.             : base(context, view)
  13.         {
  14.             _inner = new InnerViewContainer<MapShellView>(view, this);
  15.         }
  16.         #region IMapViewContainer Members
  17.         public MapBase Map
  18.         {
  19.             get { return AppContext.Map; }
  20.         }
  21.         #endregion
  22.         public override void Initialize()
  23.         {
  24.             InvokePropertyChanged(() => Map);
  25.         }
  26.     }
  27. \