examples/js/panoramio.js
function () {
		var selected = timeline.getSelection();
		
		if (selected.length > 0) {
			var row = selected[0].row;
			var item = timeline.getItem(row);
			var id = $(item.content).attr('data-id');
			var layer = layers[id];
			
			if (lastLayer && lastLayer.viewedImage) {
				lastLayer.viewedImage.fire('click');
			}
			
			layer._map.panTo(layer.getLatLng());
			layer.fire('click');
			
			lastLayer = layer;
		}
		
		
	}
function () {
		var selected = timeline.getSelection();
		
		if (selected.length > 0) {
			var row = selected[0].row;
			var item = timeline.getItem(row);
			var id = $(item.content).attr('data-id');
			var layer = layers[id];
			
			if (lastLayer && lastLayer.viewedImage) {
				lastLayer.viewedImage.fire('click');
			}
			
			layer._map.panTo(layer.getLatLng());
			layer.fire('click');
			
			lastLayer = layer;
		}
		
		
	}
function ( ) { var selected = timeline . getSelection ( ) ; if ( selected . length > 0 ) { var row = selected [ 0 ] . row ; var item = timeline . getItem ( row ) ; var id = $ ( item . content ) . attr ( 'data-id' ) ; var layer = layers [ id ] ; if ( lastLayer && lastLayer . viewedImage ) { lastLayer . viewedImage . fire ( 'click' ) ; } layer . _map . panTo ( layer . getLatLng ( ) ) ; layer . fire ( 'click' ) ; lastLayer = layer ; } }
Function that will be called when a user clicks on a timeline item
Function that will be called when a user clicks on a timeline item