【发布时间】:2014-04-12 10:29:03
【问题描述】:
有谁知道如何获取我当前显示的谷歌地图的静态图像。我已使用此代码在 div 中获取 googl 地图
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
function initialize() {
var mapOptions = {
center: new google.maps.LatLng(0,0),
zoom:1,
scrollwheel:false,
disableDefaultUI: true,
draggable: false
};
map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);
}
我正在使用这个 url 来获取静态图像
但是我没有得到与函数显示的图像相同的图像。
【问题讨论】:
标签: google-maps google-maps-api-3