1
我必須設置scaleControl字體大小。我嘗試了下面。如何設置谷歌地圖比例尺控制字體大小
var opts = {
zoom: 12,
center: latlng,
mapTypeId: google.maps.MapTypeId.SATELLITE,
scrollwheel: false,
disableDoubleClickZoom: true,
draggable: true,
mapTypeControl: true,
panControl: false,
zoomControl: false,
scaleControl: true,
streetViewControl: false,
scaleControlOptions: { position: google.maps.ControlPosition.TOP_RIGHT }
};
map = new google.maps.Map(document.getElementById("map_canvas"), opts);
在上面的代碼
已經設置字體大小等下面
scaleControlOptions: { position: google.maps.ControlPosition.TOP_RIGHT, style:{fontSize: 10} }
它是不工作...任何建議....