MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




MSR HD View & Virtual Earth

This is a discussion on MSR HD View & Virtual Earth within the Virtual Earth Blogs forums, part of the Blogs category; Have you ever heard about 'MSR HD View'? You haven't? It is an awesome*tool which has been developed ...


Go Back   MapPoint Forums > Blogs > Virtual Earth Blogs

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-15-2007
Member
Green Belt
 
Join Date: Sep 2007
Posts: 50
MSR HD View & Virtual Earth

Have you ever heard about 'MSR HD View'? You haven't? It is an awesome*tool which has been developed by Microsoft Research to bring gigapixel images to the web. The example below is a completely zoomed out panorama with 3.7 gigapixel...

HD View zoomed out

... and you can get that close:

HD View zommed in

Check out the MSR HD View homepage to find some examples and to get started.

I was wondering if I could combine this*awesome viewer with Virtual Earth*and it turned out to be lots of fun. You can have a look at a sample implementation here.

MSR HD View in VE-Infobox

Well I'm not really much of a photographer and my equipment is not really high-end either so bare with me if the quality of the image is not too impressing but*how did I do it?


  1. I shot a sequence of 11 pictures of Microsoft's office in London with my digital camera.
  2. Then I*used PTgui to create a panorama-image of this 11 individual images. The resulting JPG was about 15 MB big so not really what you want to publish on*the web but here comes now MSR HD View.
  3. MSR HD View provides a command line tool which allows you to create tile pyramids and mosaics of such big images. You will find a good explanation on how to use it on the MSR HD View homepage. As a result you will have a folder structure with smaller tiles of about 20-40 KB each and you also get an XML-file which describes the tile-structure so that the HD View browser plug-in can understand it. Once you install the HD View utilities you will also get a sample*HTML-file which implements the HD View control but there is of course a full documentation on the MSR-site.
  4. Obviously you need to find some storage for*the tiles and currently I'm using Amazon S3 which gives you really good service for your money.
  5. OK, now we have a*HTML-document which implements the*HD View control but how do we combine it with Virtual Earth? Well the first idea that came to my mind was to bring it into the infobox of a VEShape-object. There are only 2 things we have to consider.

    • First it is easy to bring complete HTML-code in the*InfoBox and you can also easily create a link which points to an external JavaScript but you can't run the JavaScript in the*InfoBox itself. On the other side HD View is controlled through JavaScript which appears to be a dilemma in the first place. Well, the workaround is easier than you might think. In the old days of HTML-coding you frequently used iframes and this is exactly what I do here. I use an iframe to insert the complete HTML-document as description in the*InfoBox of the VEShape-object.
      shape1.SetDescription('');

    • The second point to consider is that the*InfoBox of a VEShape-object is not in the appropriate size to render the HD View control but that is even easier to overcome. Since version 5 of the VE MapControl you can define your own styles for the InfoBox. In the header of the HTML-document you just include a CSS like this
      <link href="StyleSheet.css" rel="stylesheet" type="text/css" />

      My CSS only changes the size of the InfoBox:

      .customInfoBox-previewArea 
      {
      width:400px;
      height:400px;
      }

      In your JavaScript you need to make sure, that you disable the default styles:

      map.ClearInfoBoxStyles();

And that's it. You can download the full source-code direct from the sample-page.

Click here to view the article.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Virtual Earth @ WPC VirtualEarth MSDN Blog Virtual Earth Blogs 0 09-15-2007 02:17 PM
New Features in Virtual Earth Eric Frost MapPoint Web Service and Virtual Earth 0 04-01-2007 07:17 AM
Virtual Earth Implementation Eric Frost News and Announcements 0 12-28-2006 07:27 AM
MSN Virtual Earth. Eric Frost News and Announcements 0 11-03-2006 11:27 AM
Virtual Earth 4 Eric Frost MapPoint Web Service and Virtual Earth 0 10-31-2006 10:17 PM


All times are GMT -5. The time now is 03:45 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5
MP2K Magazine
Visitor Map

Flights to Tunisia
Experience the cultural mix of Tunisia yourself. Visit their impressive historical sites and delicious cuisine. Visit us online to get great value flights to Tunisia.

Portugal Weather
Check out Portugal Weather - Travel Counsellors details information on Portugal including, weather, flights and accommodation.

Holiday Italy
A Holiday in Italy can mean many different things to many different people. This diverse country has an abundance of art, wine, food and stunning beaches. Book online today.

Bahamas Holidays
Bahamas Holidays offer pure blue skies, soft white beaches and the holiday of a lifetime. Visit us for a great deal to the Bahamas.

Tunisia
Tunisia enjoys excellent weather, golden beaches and a beautiful blue sea. Moving away from the beach you will find a country that has a rich and varied past. Discover the secrets of history yourself by exploring all the ruins.

Travel Guides
As far as travel guides are concerned, your best move would be to check out our website at Travel.co.uk

Holidays to Gran Canaria
The Canary Islands await! Book holidays to Gran Canaria online at On The Beach!


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53