当前位置: 首页 > news >正文

cesium 地图蒙版遮罩效果

在这里插入图片描述
在这里插入图片描述

示例代码

<!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. --><metaname="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>
http://www.lryc.cn/news/189159.html

相关文章:

  • 根据前序遍历结果构造二叉搜索树
  • 微信小程序指定某个元素强制重新渲染
  • 国际教材概念基础
  • 2023全国大学生软件测试大赛开发者测试练习题满分答案(PairingHeap2023)
  • 介绍一下tokens
  • 机器学习、深度学习相关的项目集合【自行选择即可】
  • 百面机器学习书刊纠错
  • vue2安装cesium并使用
  • 基于Docker来部署Nacos的注册中心
  • 黑马JVM总结(三十一)
  • 【C++】list基本接口+手撕 list(详解迭代器)
  • PowerShell pnpm : 无法加载文件 C:\Users\lenovo\AppData\Roaming\npm\pnpm.ps1
  • mysql面试题33:Blob和text有什么区别
  • docker版jxTMS使用指南:4.6版升级内容
  • java最优建树算法
  • mysql面试题30:什么是数据库连接池、应用程序和数据库建立连接的过程、为什么需要数据库连接池、你知道哪些数据库连接池
  • 【Vue】vscode格式刷插件Prettier以及配置项~~保姆级教程
  • .NET 8 中的调试增强功能
  • 1310. 数三角形
  • 数据库基础(一)
  • Factory-Method
  • 【C++】神奇字符串(力扣481)
  • elasticsearch索引的数据类型以及别名的使用
  • 分布式锁2:基于redis实现分布式锁
  • 【Vue面试题十六】、Vue.observable你有了解过吗?说说看
  • Centos7使用nginx搭建rtmp流媒体服务器
  • Springboot+vue4S店车辆管理系统(有报告),Javaee项目,springboot vue前后端分离项目。
  • Docker与Serverless计算的集成: Docker容器如何与Serverless计算结合。
  • Linux下kibana的安装与配置
  • LuatOS-SOC接口文档(air780E)-- http - http 客户端