我正在尝试应用谷歌静态地图作为 div 元素的背景。这可能吗?我目前正在使用 image-background CSS 属性。
问问题
2218 次
2 回答
-1
Yes, this is very possible.
You'll need a Google API key and some knowledge of CSS3.
Read more about how to do it and get some sample code here: http://blog.wadehammes.com/post/3837158298
Use this code to disable all controls:
function initialize() {
var mapOptions = {
zoom: 4,
center: new google.maps.LatLng(-33, 151),
disableDefaultUI: true,
mapTypeId: google.maps.MapTypeId.ROADMAP
}
var map = new google.maps.Map(document.getElementById("map-canvas"),
mapOptions);
}
于 2013-06-13T15:03:44.963 回答