我试图在我的网站上放置一个谷歌地图,但它不起作用。这是我拥有的代码。谁能告诉我我做错了什么。谢谢
<head>
<title>Environment Impact</title>
<link rel="stylesheet" href="style.css" type="text/css">
<script>src="http://maps.googleapis.com/maps/api/js?key=MY_API_KEY=TRUE"></script>
<script type="text/javascript">
function initialize() {
var california = new google.maps.LatLng(-122.23354, 37.48787);
var myOptions = {
center: california,
zoom: 8,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("map-canvas"), myOptions);
}
</script>
</head>
<body onload="initialize()">
<div id="map-canvas" style="width:800px; height:600px; border:1px solid #000;"></div>
</body>