-1
我使用的是Wordpress。我想更改Google地图API的默认缩放级别。我编辑了“zoom:5”属性,但没有任何反应。功能:缩放级别属性在Google地图上无效(Wordpress函数)
function initialize() {
var markers = [];
var map = new google.maps.Map(document.getElementById("map-canvas"),
{
zoom: 5,
mapTypeId: google.maps.MapTypeId.ROADMAP
});
var defaultBounds = new google.maps.LatLngBounds(
new google.maps.LatLng(-5.796453, -35.206706),
new google.maps.LatLng(-5.796453, -35.206706));
map.fitBounds(defaultBounds);
(...)
谢谢!有用 :) – Diegooli