我有一个Google街景iFrame,我正在尝试将街景的位置更改为用户输入的地址。
<iframe id="_iframe"
width="400"
height="400"
frameborder="0" style="border:0"
src="https://www.google.com/maps/embed /v1/streetview?key=AIzaSyBInT4udbKG9pDGP8Bd6BwUL5M5mG2EHTM&location=46.414382,10.013988&heading=210&pitch=10&fov=35">
function showPanorama() {
var iframejs = document.getElementByID('_iframe');
position: "https://www.google.com/maps/embed/v1/streetview?key=AIzaSyBInT4udbKG9pDGP8Bd6BwUL5M5mG2EHTM&location=" + marker.position.latLng + "heading=210&pitch=10&fov=35",
console.log("position changed");
};
答案 0 :(得分:0)