我花了兩天困惑這個,並失敗了。任何援助將不勝感激。谷歌地圖v3地面覆蓋?
我需要一個以-18.975750,32.669184爲中心的地圖,在1500px x 900px的畫布上。然後我需要使用設置的代碼透明度覆蓋覆蓋PNG(從www.heywhatsthat.com獲得)。
我終於到了下面的代碼,它失敗了。我想添加一個以上的PNG,但它甚至不能讓一個人工作。
<script src="http://maps.google.com/maps?file=api&v=3&key=AIzaSyAGbZjXr2wr7dT2P3O5pNo5wvVF3JiaopU&sensor=false"
type="text/javascript"></script>
<script type="text/javascript">
function initialize() {
if (GBrowserIsCompatible()) {
var map = new google.maps.MAP(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(-18.975750, 32.669184), 13);
map.setUIToDefault();
var imageBounds = new google.maps.LatLngBounds(
new google.maps.LatLng(-19.000417,30.999583),
new google.maps.LatLng(-17.999583,32.000417));
var oldmap = new google.maps.GroundOverlay(
"http://www.earthstation.mobi/cloakpS19E031.png",imageBounds);
oldmap.setMap(map);
}
</script>
</head>
<body onload="initialize()" onunload="GUnload()">
<div id="map_canvas" style="width: 1500px; height: 900px"></div>
</body>
</html>
我在想什麼,請指點我正確的方向在選項中添加透明度的多個PNG疊加。
感謝 布賴恩 津巴布韋
你可能不想發佈你的密鑰......只是一個提示...... – roberthuttinger