<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Codrops &#187; xml</title>
	<atom:link href="http://tympanus.net/codrops/tag/xml/feed/" rel="self" type="application/rss+xml" />
	<link>http://tympanus.net/codrops</link>
	<description>Useful resources and inspiration for creative minds</description>
	<lastBuildDate>Thu, 23 May 2013 13:36:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Multi-level Photo Map</title>
		<link>http://tympanus.net/codrops/2011/09/27/multi-level-photo-map/</link>
		<comments>http://tympanus.net/codrops/2011/09/27/multi-level-photo-map/#comments</comments>
		<pubDate>Tue, 27 Sep 2011 11:37:04 +0000</pubDate>
		<dc:creator>Pedro Botelho</dc:creator>
				<category><![CDATA[Playground]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[google maps]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[thumbnails]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?p=5879</guid>
		<description><![CDATA[This multi-level map based image gallery makes it possible to show images related to their location. The first level indicates the location of the places where each one has a set of images, and the second level shows each single image and its location. Using Google Maps, we'll have the location shown on the left side while the images of a location are shown on the right. The images can be viewed in medium size mode or in full lightbox-like mode. The map has a fullscreen option which will show the thumbnails of the images in their location.]]></description>
				<content:encoded><![CDATA[<p><a href="http://tympanus.net/Development/MultiLevelPhotoMap/" target="_blank"><img src="http://codropspz.tympanus.netdna-cdn.com/codrops/wp-content/uploads/2011/09/MultiLevelPhotoMap.jpg" alt="" title="MultiLevelPhotoMap" width="580" height="315" class="aligncenter size-full wp-image-5891" /></a><br />
<a class="demo" href="http://tympanus.net/Development/MultiLevelPhotoMap/" target="_blank">View demo</a> <a class="download" href="http://tympanus.net/Development/MultiLevelPhotoMap/MultiLevelPhotoMap.zip">Download source</a><br />
This multi-level map based image gallery makes it possible to show images related to their location. The first level indicates the location of the places where each one has a set of images, and the second level shows each single image and its location. Using Google Maps, we&#8217;ll have the location shown on the left side while the images of a location are shown on the right. The images can be viewed in medium size mode or in full lightbox-like mode. The map has a fullscreen option which will show the thumbnails of the images in their location.</p>
<p>The images used in the demo are by <a title="Flickr Photostream of Davidd" href="http://www.flickr.com/people/puuikibeach/" target="_blank">Davidd</a>. They are licensed under the <a title="Attribution 2.0 Generic (CC BY 2.0)" href="http://creativecommons.org/licenses/by/2.0/deed.en_GB" target="_blank">Attribution 2.0 Generic (CC BY 2.0) License</a>.</p>
<div class="ct-ad-article-wrapper ct-ad-article-wrapper-in"><div class="ct-ad-article"><img class="ct-ad-img" src="http://codropspz.tympanus.netdna-cdn.com/codrops/wp-content/themes/codropstheme02/images/advertisement.jpg" /><div id="bsap_1279993" class="bsarocks bsap_af25dfd2f1908889af7a1aa5f4dcbd9e"></div><div style="clear:both;"></div></div></div>
<h3>How it works</h3>
<p>The locations for the images are saved in the album.xml file which has the following stucture:</p>
<pre class="brush:xml">
&lt;album&gt;
	&lt;name&gt;Thailand 2011&lt;/name&gt;
	&lt;description&gt;Some description&lt;/description&gt;
	&lt;places&gt;
	...
	&lt;/places&gt;
&lt;/album&gt;
</pre>
<p>Inside of the places, we&#8217;ll have the information of each place with its name and location and all the single photos in that place:</p>
<pre class="brush:xml">
&lt;place&gt;
	&lt;name&gt;Bangkok&lt;/name&gt;		
	&lt;location&gt;
		&lt;lat&gt;13.696693336737654&lt;/lat&gt;
		&lt;lng&gt;100.57159423828125&lt;/lng&gt;
	&lt;/location&gt;
	&lt;photos&gt;
		&lt;photo&gt;
			&lt;thumb&gt;photos/Bangkok/thumbs/1.jpg&lt;/thumb&gt;
			&lt;source&gt;photos/Bangkok/1.jpg&lt;/source&gt;
			&lt;description&gt;Some description&lt;/description&gt;
			&lt;location&gt;
				&lt;lat&gt;13.710035342476681&lt;/lat&gt;
				&lt;lng&gt;100.52043914794922&lt;/lng&gt;
			&lt;/location&gt;
		&lt;/photo&gt;
		&lt;photo&gt;
			...
		&lt;/photo&gt;
	&lt;/photos&gt;
&lt;/place&gt;
</pre>
<p>Besides the path to its thumbnail and the full image, every photo has a location in latitude and longitude as well.</p>
<p>Note, that we are using some PHP here in order to load and retrieve the XML data, so you&#8217;ll need a server environment to run this.</p>
<p>Initially, a map with all the places is shown:<br />
<img src="http://codropspz.tympanus.netdna-cdn.com/codrops/wp-content/uploads/2011/09/MultiLevelPhotoMap_01.jpg" alt="" title="MultiLevelPhotoMap_01" width="580" height="264" class="aligncenter size-full wp-image-5882" /><br />
In our example it is Bangkok, Phuket and Myeik. In the bar under the map and the preview area, we will have the name and the description of the whole album. In this stage we can already go fullscreen in order to see the full map with the places.</p>
<p>Back in the normal mode, when choosing a place, all the images of that place will show on the right side while we zoom the map in on the left side. As you can see, whenever you hover over a photo, you will see its location on the map and vice versa:<br />
<img src="http://codropspz.tympanus.netdna-cdn.com/codrops/wp-content/uploads/2011/09/MultiLevelPhotoMap_02.jpg" alt="" title="MultiLevelPhotoMap_02" width="580" height="265" class="aligncenter size-full wp-image-5883" /></p>
<p>When clicking on a thumbnail or the camera icon on the map, we open the preview for the images, through which we can also navigate:</p>
<p><img src="http://codropspz.tympanus.netdna-cdn.com/codrops/wp-content/uploads/2011/09/MultiLevelPhotoMap_03.jpg" alt="" title="MultiLevelPhotoMap_03" width="580" height="265" class="aligncenter size-full wp-image-5884" /></p>
<p>Clicking on the zoom icon of the preview image will open the large lightbox-like view of the full image:</p>
<p><img src="http://codropspz.tympanus.netdna-cdn.com/codrops/wp-content/uploads/2011/09/MultiLevelPhotoMap_04.jpg" alt="" title="MultiLevelPhotoMap_04" width="580" height="311" class="aligncenter size-full wp-image-5885" /></p>
<p>When we are in the second level and open the fullscreen mode, we can see the thumbnails in the map:<br />
<img src="http://codropspz.tympanus.netdna-cdn.com/codrops/wp-content/uploads/2011/09/MultiLevelPhotoMap_05.jpg" alt="" title="MultiLevelPhotoMap_05" width="580" height="311" class="aligncenter size-full wp-image-5886" /></p>
<p>Hope you find it useful, feedback is welcome!</p>
<p><a class="demo" href="http://tympanus.net/Development/MultiLevelPhotoMap/" target="_blank">View demo</a> <a class="download" href="http://tympanus.net/Development/MultiLevelPhotoMap/MultiLevelPhotoMap.zip">Download source</a></p>
<div class="googlead"><!-- wp_ad_camp_1 --></div>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/2011/09/27/multi-level-photo-map/feed/</wfw:commentRss>
		<slash:comments>47</slash:comments>
		</item>
		<item>
		<title>Multimedia Gallery for Images, Video and Audio</title>
		<link>http://tympanus.net/codrops/2010/06/24/multimedia-gallery/</link>
		<comments>http://tympanus.net/codrops/2010/06/24/multimedia-gallery/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 17:58:48 +0000</pubDate>
		<dc:creator>Mary Lou</dc:creator>
				<category><![CDATA[Playground]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[xml]]></category>
		<category><![CDATA[xsl]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?p=2439</guid>
		<description><![CDATA[View demoDownload source This multimedia gallery for images, video and audio is a progression of our previous galleries. The idea for this new gallery is to integrate video and audio as exhibit pieces along images. We use an XML file for defining the items in the gallery and a PHP class with an XSL Stylesheet [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://tympanus.net/Development/MultiMediaGallery/" target="_blank"><img class="aligncenter size-full wp-image-2441" title="multimedia" src="http://codropspz.tympanus.netdna-cdn.com/codrops/wp-content/uploads/2010/06/multimedia.jpg" alt="" width="580" height="315" /></a></p>
<p><a class="demo" href="http://tympanus.net/Development/MultiMediaGallery/" target="_blank">View demo</a><a class="download" href="http://tympanus.net/Development/MultiMediaGallery/MultiMediaGallery.zip">Download source</a></p>
<p>This multimedia gallery for images, video and audio is a progression of our previous galleries. The idea for this new gallery is to integrate video and audio as exhibit pieces along images.</p>
<p>We use an XML file for defining the items in the gallery and a PHP class with an XSL Stylesheet to transform the data. The XML file defines the locations of the items and their thumbnails. For video files, we can add more than one source or define a link to a YouTube video.</p>
<p>The structure of the XML file looks as follows:</p>
<pre class="brush:xml">&lt;?xml version="1.0"?&gt;
&lt;MultimediaGallery&gt;
	&lt;file type="photo"&gt;
		&lt;thumb&gt;media/photos/thumbs/3.jpg&lt;/thumb&gt;
		&lt;source&gt;media/photos/3.jpg&lt;/source&gt;
		&lt;description&gt;this is a description&lt;/description&gt;
	&lt;/file&gt;
	&lt;file type="video"&gt;
		&lt;thumb&gt;media/videos/thumbs/html5.png&lt;/thumb&gt;
		&lt;source&gt;http://www.youtube.com/watch?v=siOHh0uzcuY&lt;/source&gt;
		&lt;description&gt;Youtube Video: Introduction to HTML5&lt;/description&gt;
	&lt;/file&gt;
	&lt;file type="video"&gt;
		&lt;thumb&gt;media/videos/thumbs/bbbtrailer.png&lt;/thumb&gt;
		&lt;source&gt;media/videos/video1.ogg&lt;/source&gt;
		&lt;source&gt;media/videos/video1.m4v&lt;/source&gt;
		&lt;description&gt;Video Integration Example: BBB Trailer&lt;/description&gt;
	&lt;/file&gt;
	&lt;file type="audio"&gt;
		&lt;thumb&gt;media/audio/thumbs/audio1.jpg&lt;/thumb&gt;
		&lt;source&gt;media/audio/audio1.ogg&lt;/source&gt;
		&lt;source&gt;media/audio/audio1.mp3&lt;/source&gt;
		&lt;description&gt;Audio Example&lt;/description&gt;
	&lt;/file&gt;
	...
&lt;/MultimediaGallery&gt;
</pre>
<p>Once a thumbnail is clicked, we can navigate through the previews and see the descriptions (that can optionally be added to the configuration XML file). Images get resized automatically to the size of the user&#8217;s viewport. We also resize the thumbnails to fit into the grid elements.</p>
<p>For displaying video and audio we are using <a href="http://protofunc.com/jme/"><strong>jMediaElement</strong></a> which is an HTML5 audio and video development kit with Flash and VLC Fallback.<br />
Please be aware that for non-embedded videos and audio files to be played in every browser, each necessary format needs to be added.</p>
<p>If you want to read more about HTML5 and video, we recommend the following resources:</p>
<p><a href="http://diveintohtml5.org/video.html">Video on the Web (Dive Into HTML 5)</a><br />
<a href="http://en.wikipedia.org/wiki/HTML5_video">HTML5 video (Wikipedia)</a><br />
<a href="http://mashable.com/2010/05/18/html5-video-tools/">5 Tools For Integrating HTML5 Video in Your Website (Mashable)</a><br />
<a href="https://developer.mozilla.org/en/using_audio_and_video_in_firefox">Using audio and video in Firefox (Mozilla Developer Center)</a></p>
<p>We hope you enjoy this gallery and find it useful! Stay tuned for updates!</p>
<p><a class="demo" href="http://tympanus.net/Development/MultiMediaGallery/" target="_blank">View demo</a><a class="download" href="http://tympanus.net/Development/MultiMediaGallery/MultiMediaGallery.zip">Download source</a></p>
<div class="ct-ad-article-wrapper ct-ad-article-wrapper-in"><div class="ct-ad-article"><img class="ct-ad-img" src="http://codropspz.tympanus.netdna-cdn.com/codrops/wp-content/themes/codropstheme02/images/advertisement.jpg" /><div id="bsap_1279993" class="bsarocks bsap_af25dfd2f1908889af7a1aa5f4dcbd9e"></div><div style="clear:both;"></div></div></div>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/2010/06/24/multimedia-gallery/feed/</wfw:commentRss>
		<slash:comments>58</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 12/21 queries in 2.023 seconds using disk: basic
Content Delivery Network via codropspz.tympanus.netdna-cdn.com

 Served from: tympanus.net @ 2013-05-25 12:57:55 by W3 Total Cache -->