0
bing maps v8では、どのようにAnimatedTileLayerで不透明度を設定できますか?下に設定した不透明度値(0.2)は機能しません。Bing maps - アニメーションタイルレイヤー - 不透明度
var tileSources = [];
for (var i = 0; i < timeStamps.length; i++) {
var path = 'https://api.weather.com/v3/TileServer/tile/radarFcst?fts={fts}&ts={ts}&xyz={x}:{y}:{zoom}&apiKey={apiKey}';
path = path.replace('{apiKey}', weatherApiKey);
path = path.replace('{fts}', timeStamps[i]);
path = path.replace('{ts}', tsNow);
var tileSource = new Microsoft.Maps.TileSource({
uriConstructor: path
});
tileSources.push(tileSource);
}
EmptyOverlay.prototype = new Microsoft.Maps.CustomOverlay();
function EmptyOverlay() {
}
EmptyOverlay.prototype.onAdd = function() {
var container = document.createElement('div');
this.setHtmlElement(container);
};
var overlay = new EmptyOverlay();
vm.map.layers.insert(overlay);
var animatedLayer = new Microsoft.Maps.AnimatedTileLayer({
mercator: tileSources,
frameRate: 500,
opacity: 0.2,
loadingScreen: overlay
});
vm.map.layers.insert(animatedLayer);