Google maps api 3 显示特定标记位置的街道视图

Google maps api 3 显示特定标记位置的街道视图,google-maps-api-3,Google Maps Api 3,您能告诉我如何将特定标记位置的街道视图添加到点击事件的地图中吗 <button type="button" class="btn btn-default btn-sm" id="street">Strret View</button> 您只需将位置设置为特定标记的位置: panorama = map.getStreetView(); panorama.setPosition(theStore); panorama.setVisible(true); 你能告诉我你为什么

您能告诉我如何将特定标记位置的街道视图添加到点击事件的地图中吗

<button type="button" class="btn btn-default btn-sm" id="street">Strret View</button>

您只需将位置设置为特定标记的位置:

panorama = map.getStreetView();
panorama.setPosition(theStore);
panorama.setVisible(true);

你能告诉我你为什么否决这个问题吗?
panorama = map.getStreetView();
panorama.setPosition(theStore);
panorama.setVisible(true);