我有一个嵌入了Google Maps v3 API的网络应用程序,我需要在其中显示更高分辨率的Digital Globe卫星图像。我有来自DG的连接字符串,我已经尝试了Google Maps API文档中的GeoRSS层方法,但无济于事。我没有javascript错误,但我也没有得到任何图像。这是代码,减去数字地球的锥形:
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<title>GeoRSS Layers</title>
<style>
html, body {
height: 100%;
margin: 0;
padding: 0;
}
#map {height: 100%;}
</style>
</head>
<body onLoad = "initMap()">
<div id="map"></div>
<script>
function initMap() {
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 7, center: {lat: 33.5, lng: 37.0} });
var georssLayer = new google.maps.KmlLayer({ url: 'https://services.digitalglobe.com/earthservice/kmlaccess/DigitalGlobe:ImageryTileService?connectid=removed' });
georssLayer.setMap(map);
}
</script>
<script type='text/javascript' src='https://maps.googleapis.com/maps/api/js?v=3.exp'></script>
</body>
</html>
是否有人在Google Maps v3中成功实现了此功能?
谢谢!