2013-07-01 111 views
1

如何通过一次发送多个纬度和经度从全景图中获取所有图像。如何从全景图中获取多个位置的图像?

我想告诉我的网站上,并为同一全景图像我做的follwing

我可以通过发送标签&纬度液化天然气来从全景图像一个位置只:

'http://www.panoramio.com/map/get_panoramas.php?set=public&tag=pune&from=0&to=20&size=medium&mapfilter=true' 

它给了我为punetag

20个图像通过使用LAT & LNG我用如下网址的图片:

'http://www.panoramio.com/map/get_panoramas.php?set=public&minx=' . (73.856743 - 0.045) . '&miny=' . (18.520430 - 0.045) . '&maxx=' . 73.856743 . '&maxy=' . 18.520430 . '&from=0&to=1&size=medium'; 

它给了我20张图片由具有lat = 18.520430lng = 73.856743

pune位置有没有办法通过一次发送multiple标签纬度LNG即多个位置获得的图像?

回答

1

无法一次获取两个标签或两个不同位置的照片。

在JavaScript代码中您可以更改很多事情。

此Panoramio JavaScript API小部件围绕经纬度/长度对创建边界框,然后将所有照片返回到这些边界。

另一种类型的Panoramio JavaScript API小部件,您可以在其中使用example and code is here更改背景色。

我做了一个blogspot page,我创建了许多Panoramio JavaScript和HTML API小部件。

它不会显示在作曲的情绪中。

<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': 'kahna', 
    '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>