2017-08-15 37 views
-1

我想創建一個使用谷歌街景的室內谷歌虛擬瀏覽。我專門閱讀了所有Google street view documentation「提供自定義街景全景圖」部分。但老實說,我沒有得到如何實施室內虛擬旅遊。讓我解釋一下這個案子。假設我有兩張全景圖像a和b。如何實現室內定製谷歌街景

圖像:

![enter image description here

1)如何我把那兩個白色箭頭的圖像。我如何設定自己的立場以指出正確的立場?

2)如何鏈接圖片a到b。這樣當用戶點擊其中一個白色箭頭時,可以從圖像a導航到b?

3)我怎樣才能把這個鼠標指針(灰色的箭頭環繞一圈)到我的圖像?

4)如何在圖像上添加十字標記?

我很感激你給我一些示例代碼,而不是我在谷歌街景文檔中看到的代碼。

回答

0

1/2在this example中示出。

function getReceptionPanoramaData() { 
    return { 
    location: { 
     pano: 'reception', // The ID for this custom panorama. 
     description: 'Google Sydney - Reception', 
     latLng: new google.maps.LatLng(-33.86684, 151.19583) 
    }, 
    links: [{ 
     heading: 195, 
     description: 'Exit', 
     pano: outsideGoogle.location.pano 
    }], 

links塊創建白色箭頭,在specificed標題,對其他全景(在這種情況下,返回到默認街景之一)。