Sunday, 20 October 2013

Panoramio JavaScriptt API Widget

This is Panoramio JavaScriptt API. Panoramio JavaScriptt API let you customize it.more Panoramio JavaScript API Wighet and the codes here www.codespk.blogspot.com www.discoverworldz.blogspot.com














This is complete Code for Panoramio JavaScriptt API widget.It does not show in composing mood.It show after publishing it.
<div dir="ltr" style="text-align: center;" trbidi="on">

<script src="https://ssl.panoramio.com/wapi/wapi.js?v=1&amp;hl=en"></script>



<div id="wapiblock" style="float: right; margin: 10px 15px"></div>


<script type="text/javascript">

var myRequest = {
  'tag': 'sunset',
  'rect': {'sw': {'lat': -30, 'lng': 10.5}, 'ne': {'lat': 50.5, 'lng': 30}}
};

  var myOptions = {
  'width': 300,
  'height': 200
};
var wapiblock = document.getElementById('wapiblock');

  var photo_widget = new panoramio.PhotoWidget('wapiblock', myRequest, myOptions);

  photo_widget.setPosition(0);

</script>

</div>

No comments:

Post a Comment