Skip to content

Instantly share code, notes, and snippets.

@tknv
Created October 13, 2013 18:56
Show Gist options
  • Save tknv/6965991 to your computer and use it in GitHub Desktop.
Save tknv/6965991 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript" src="http://www.panoramio.com/wapi/wapi.js?v=1"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<div id='wapiblock'></div>
<div class="main">
</div>
</body>
</html>
var myRequest = {
'ids': [{'userId': 34498, 'photoId': 41228915}]
};
var myOptions = {
'width': 300,
'height': 200
};
var wapiblock = document.getElementById('wapiblock');
var widget = new panoramio.PhotoWidget(wapiblock, myRequest, myOptions);
widget.setPosition(0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment