using the attached HTML code, under G_SATELLITE_MAP mode, when
dragging the map, ie6 and 7 will throw out many errors, then many
functions in the api failed

===============================================================


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"; xmlns:v="urn:schemas-
microsoft-com:vml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>画地图</title>
<script src="http://www.google.com/jsapi";></script>
<script  type="text/javascript">
google.load("mootools", "1.2.1");
</script>
<script src="http://ditu.google.com/maps?
sensor=true&file=api&amp;v=2&amp;key=ABQIAAAA62wNGl8N1dRngcUlp2x5qRTPCUNP4KiL5zBZXc0RnGUFB8Ff1BQ7q9NNem9SalYphO3-
MAowTElFsA" type="text/javascript"></script>
</head>
<body onload="initgo()">
<script type="text/javascript">

  // Call this function when the page has been loaded
  function initgo() {
    map = new GMap2(document.getElementById("mapp")) ;
    map.setCenter(new GLatLng(39.9493, 116.3975), 13 ,
G_SATELLITE_MAP);

                // mapControl
                map.addControl(new GLargeMapControl() , new GControlPosition
(G_ANCHOR_TOP_LEFT, new GSize(3 , 5))) ;
                // map type
                var gmapTypcControl = new GHierarchicalMapTypeControl(true) ;
                gmapTypcControl.addRelationship(G_SATELLITE_MAP, G_HYBRID_MAP, 
"地名",
true)
                map.addControl(gmapTypcControl) ;
  }

</script>
<div id="mapp" style="width:900px;height:500px"></div>
<!-- map -->
</body>
</html>

Reply via email to