Photos on a Map - 2006 Travels

A second take on my Photo Map prototype - this time displaying photos taken from my 2006 travels... implemented using Virtual Earth, WPF/E and Script#.

I've put together a new version of my Photo Map prototype. This time around the pictures are from my 2006 travels - a small selection of photos from India, Denmark, Las Vegas, San Francisco and Napa Valley. Check it out, play with it... enjoy! Then come back to read more about whats going on behind the scenes.

The first version of page was written when the Virtual Earth APIs were just released, and unfortunately no longer works, because of API breaking changes. It was also implemented in directly authored script. And finally, the image information was all embedded in script (equivalent to fetching data via Ajax), which doesn't lend itself very well to search engine indexing. Finally, the cross-fading effects between images relied on DirectX filters that only worked on IE. This time around I did things a bit differently...

This time around I used Script# to implement the logic... so all the coding was done in c#. Its nice to be able to compare a before and after on the same scenario, and see the improvements in developer experience. I've implemented support for Virtual Earth APIs in Script#, which I'll release soon (so stay tuned on that front).

Instead of using DirectX filters, this time I used WPF/E to implement the interactive image slideshow. The nice fallout of using WPF/E, given its cross-browser support, is that the cool fading effect is also usable in browsers such as Firefox. Its a very simple implementation, but the power of scriptable XAML is there to tap. As I've blogged about Script# support for WPF/E, in some sense, its just another scriptable DOM, which makes it immediately an appealing technology.

Finally, I decided to experiment with the Google Adsense program to get some first hand experiment with the program, as well as start thinking more about how these type of context/relevance scenarios play with Ajax scenarios. The first thing I did was embed image information into the page as regular HTML, and now use script to attach behavior and functionality to the page's existing content, rather than fetch the data behind the scenes. Obviously this works only in some cases, but when it does it automatically makes the page more interesting from a search engine perspective.

I'd love to hear comments about the photo map experience itself (I'll admit it was implemented in a bit of a rush today), as well as any other topics such as search engine optimization as it pertains to Ajax, etc...

And happy new year and best wishes for a great 2007 to all!

Posted on Monday, 1/1/2007 @ 10:08 PM | #Projects


Comments

7 comments have been posted.

Nick G

Posted on 1/2/2007 @ 3:17 AM
It doesn't seem to work. It just says "Loading..." for several minutes.

Vishalgiri Goswami

Posted on 1/2/2007 @ 3:55 AM
For first time it didn't loaded properly, I refreshed the page again and it got loaded very nicely.

It works fine. I gets inspired every time I visit this site.

Thanks and Happy 2007.

Regards,
Vishalgiri Goswami

Sid DeLuca

Posted on 1/2/2007 @ 8:03 AM
What a great site, and beautiful pictures!

I was intrigued by the cross-browser compatibility, so I opened it up in Firefox. It didn't work for me when the browser window was maximized, only when non-maximized state. I thought you might be interested in knowing this. I am running Chris Pederick's Web Developer extension for Firefox, and IE View. I'm running Firefox 1.5.0.9.

BTW, I have been using your Web Development Helper for IE for a couple of weeks now and have found it to be very helpful!

Sid

Nikhil Kothari

Posted on 1/2/2007 @ 8:25 AM
Thanks guys for the initial feedback - I did look at the load issue, but I wasn't able to repro it consistently... even after clearing my cache. Its one of those intermitent things. That said, I do have a couple of thoughts around optimizing what loads and when... I might try and test out those ideas.

Thanks for the note about the maximized Firefox window not working... I'll have to look into that. I suspect WPF/E isn't too happy when that is the case. Strange...

Keith

Posted on 1/9/2007 @ 1:17 AM
Hi Nikhil,

When do think you will be releasing a version with Virtual Earth support?
I am working on a project that could really use this right now.

Thanks,

Keith

rbfigueira

Posted on 1/9/2007 @ 12:19 PM
Great work :o)

>>... this time I used WPF/E to implement the interactive image slideshow. The nice fallout of using WPF/E, given its cross-browser support, is that the cool fading effect is also usable in browsers such as Firefox. Its a very simple implementation, but the power of scriptable XAML is there to tap

It’s a very simple implementation?! Ok, I believe in that but I don’t have, yet, the skills ... can you share that sample code ?
;o)

Thanks

Nikhil Kothari

Posted on 1/9/2007 @ 10:37 PM
I have posted the next build of Script# that includes the Virtual Earth API, and a blog post about it as well.
I'll go ahead and blog about the interactive slide show in the next couple of days or so as well. I meant it was a simple implementation in the sense that I didn't do something way too fancy in xaml... just used some basic elements.
Post your comment and continue the discussion.
 
 
 

 

 
Refresh this form if the spam-protection code is not readable, or has expired. (Your input will be preserved)