cesium地图蒙版遮罩效果
- 人工智能
- 2025-08-17 09:54:02

示例代码 <!DOCTYPE html> <html lang="en"> <head> <!-- Use correct character set. --> <meta charset="utf-8" /> <!-- Tell IE to use the latest, best version. --> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <!-- Make the application on mobile take up the full browser screen and disable user scaling. --> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" /> <title>蒙版遮罩效果</title> <script src="/Cesium/Cesium.js"></script> <link href="/Cesium/Widgets/widgets.css" rel="stylesheet"> <style> html, body, #cesiumContainer { width: 100%; height: 100%; margin: 0; padding: 0; overflow: hidden; } .mask{ position: absolute; left: 0; top: 0; z-index: 999; width: 100%; height: 100%; pointer-events: none; background-image: radial-gradient(rgba(139,138,138,.12) 20%,rgba(65,57,57,.56) 50%,rgb(17,16,16) 80%); } </style> </head> <body> <div class="mask"></div> <div id="cesiumContainer"></div> <script> const viewer = new Cesium.Viewer("cesiumContainer",{ geocoder: false, homeButton: false, sceneModePicker: false, fullscreenButton: false, vrButton: false, baseLayerPicker: false, infoBox: false, selectionIndicator: true, animation: false, timeline: false, shouldAnimate: true, navigationHelpButton: false, navigationInstructionsInitiallyVisible: false, }); </script> </body> </html>
cesium地图蒙版遮罩效果由讯客互联人工智能栏目发布,感谢您对讯客互联的认可,以及对我们原创作品以及文章的青睐,非常欢迎各位朋友分享到个人网站或者朋友圈,但转载请说明文章出处“cesium地图蒙版遮罩效果”
下一篇
Spark任务优化分析