陪你做好前端设计!
源代码:
点击运行
<html> <head> <script src="http://maps.googleapis.com/maps/api/js?key=AIzaSyBzE9xAESye6Kde-3hT-6B90nfwUkcS8Yw&sensor=false"> </script> <script> var myCenter=new google.maps.LatLng(45.434046,12.340284); function initialize() { var mapProp = { center:myCenter, zoom:18, mapTypeId:google.maps.MapTypeId.HYBRID }; var map=new google.maps.Map(document.getElementById("googleMap"),mapProp); map.setTilt(0); } google.maps.event.addDomListener(window, 'load', initialize); </script> </head> <body> <div id="googleMap" style="width:500px;height:380px;"></div> </body> </html>
运行结果