2
添加到地圖後,如何更改overlayMapType不透明度?如何更改overlaymaptypes的不透明度?
var imgTypeOptions = {
getTileUrl: function (coord, zoom) {
return "myTile/" + f + ".png";
},
tileSize: new google.maps.Size(256, 256),
name: "Imagen",
opacity: .5 //This is Ok, the first time set the opacity
//but i want to change the opacity later
};
...
var imgMapType = new google.maps.ImageMapType(imgTypeOptions);
...
map.overlayMapTypes.insertAt(0, imgMapType);
我希望能夠點擊一個鏈接「25%」,並將添加圖層的不透明度設置爲25%。