以下是我的網頁asp.net代碼。 intellisense不會收集任何google api命令。即谷歌在新的google.maps ......是扭曲排隊和地圖不顯示在頁面上。是的,我有一個寬度和高度設置。我哪裏錯了?谷歌地圖api v3在asp.net 4頁
<asp:Content ID="Content1" ContentPlaceHolderID="MidPageContent" runat="server" onload="initialize">
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=AIzaSyCjtIboyk_zcd4SoE9fzNoGNzt_tIqG8jY&sensor=false">
</script>
<script type="text/javascript">
function initialize() {
var latLng = new google.maps.LatLng(-34.397, 150.644);
var map = new google.maps.Map(document.getElementById('GMap'), {
zoom: 8,
center: latLng,
mapTypeId: google.maps.MapTypeId.ROADMAP
});
var marker = new google.maps.Marker({
position: latLng,
title: 'Point A',
map: map,
draggable: true
});
</script>
<div id="GMap" style="width:400px; height:400px;" >
林不知道爲什麼在網頁上的所有代碼沒」 t渲染,但在這裏它是 – dinotom 2012-04-17 00:41:20