<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<title>Google Maps JavaScript API v3 Example: Map Simple</title>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>
<script type="text/javascript">
var myOptions = {
zoom:4,
mapTypeId: google.maps.MapTypeId.ROADMAP,
mapTypeControl: false,
navigationControl: false
}
var map;
var marker;
function initialize() {
var myLatlng = new google.maps.LatLng(39.9208, 116.4001);
map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
map.setCenter(myLatlng);
marker = new google.maps.Marker({
position: myLatlng,
map: map
});
}
</script>
</head>
<body style="margin:0px; padding:0px;" onload="initialize()">
<div id="map_canvas" style="width:100%; height:100%"></div>
</body>
</html>
I use a QWebView to display the above html file a dynamic google map in S60,but it loads too slowly.this is the Qt code:
QWebView map = new QWebView(this);
map->setUrl(QUrl("qrc:/gmap/gmap.htm"));
Why does the map load so slowly?the QWebView is blank in a long time
Can anybody tell me if I can call the google map API package from local path to make the loading speed up?How to do it if I can?
What are these two files "maps.js" and "main.js"? What are functions of them?



