CBrCtlInterface不能加载Google maps JavaScript ?
请各位大佬帮忙:
我想用CBrCtlInterface来使用Google maps API V3。利用了3rd版中的例子做样板。
问题是,CBrCtlInterface加载javascript没有问题,但一加载 google maps javascript就不行了,从log上看打开socket后收发了一些数据然后就停止了指导连接被关闭。
请问这是什么原因?
哪位解决过这样的问题有样例代码学习一下?
万分感谢!
Google maps javascript:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> Sample Widget</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
function initialize() {
var latlng = new google.maps.LatLng(1.383, 103.89);
var myOptions = {
zoom: 8,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
} </script>
<body onLoad="initialize()">
<div id="map_canvas" style="width:230px; height:240px"></div>
</body>
</html>
Re: CBrCtlInterface不能加载Google maps JavaScript ?
补充一下,这段javascript在PC browser上运行正常。:mad: