我在想如何使用OpenLayers使WMS图层透明。
每个不透明图层的当前JavaScript如下:
var lyr_GDPSETAAirtemperatureC = new ol.layer.Tile({
source: new ol.source.TileWMS(({
url: "http://weatherservice",
params: {"LAYERS": "GDPS.ETA_TT", "TILED": "true"},
})),
title: "Air temperature (°C)"