Closed
Description
当tilelayer同时设置透明度和mask时,透明度失效,removeMask后透明度有效
const maskedLayer = new TileLayer("carto", {
opacity: 0.6, // TileLayer's opacity, 0-1
urlTemplate: "https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png",
subdomains: ["a", "b", "c", "d"],
attribution: "© OpenStreetMap contributors, © CARTO",
})
.setMask(mask)
.addTo(this.map);
setTimeout(() => {
maskedLayer.removeMask();
}, 3333);