Google Maps Streetview - How to get Panorama ID

前端 未结 7 1891
轮回少年
轮回少年 2020-12-15 09:49

I want to use custom panorama position, but I need a panorama id for it. Can someone explain me how to get the panorama id from the next link:

https://www.google.nl/

7条回答
  •  半阙折子戏
    2020-12-15 10:24

    Google changed the format of the pano IDs with their updates in Aug/Sept. Similar to before the pano ID can be found between the !1s and !2e. So in the example posted by Jason the pano ID would be (urldecoded):

    F:-gVtvWrACv2k/Vnh0Vg8Z8YI/AAAAAAABLWA/a-AT4Wb8MD8

    In order to get it to work for us we had to prepend the F: in front of it. There is also a known bug which requires the addition of an undocumented flag to use newer panos (see https://code.google.com/p/gmaps-api-issues/issues/detail?id=7452#c51):

    google.maps.streetViewViewer = 'photosphere';
    

提交回复
热议问题