嗨,我正在我的 webview 中加载谷歌地图街景,我想在 uitextfield 中输入位置它应该更改 html 文件的 lat long 怎么能做到这是 html 文件的代码
<html>
<head>
<meta charset="utf-8">
<title>Google Maps JavaScript API v3 Example: Embedded StreetView</title>
<link href="/maps/documentation/javascript/examples/default.css" rel="stylesheet">
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
<script>
function initialize() {
var bryantPark = new google.maps.LatLng(37.869260, -122.254811);
var panoramaOptions = {
position:bryantPark,
pov: {
heading: 165,
pitch:0,
zoom:1
}
};
var myPano = new google.maps.StreetViewPanorama(document.getElementById('pano'), panoramaOptions);
myPano.setVisible(true);
}
</script>
</head>
<body onload="initialize()">
<div id="pano" style="width: 425px; height: 240px"></div>
</body>
</html>
我在 webview 中加载这个 html 文件,然后我想在我的 uitextfield 中传递地址后更改 lat long 但我不知道如何在运行时更改 html 文件