摘要:
一、源码 const cesiumUtils = { viewer: null, isShowLayer: false, layerShowHeight: 500, //小于500展示 layer: null, init() { //,.... }, controlLayerShow() { con 阅读全文
摘要:
代码 let clickHandler = null; // function initClickHandler() { //初始化 clickHandler = new Cesium.ScreenSpaceEventHandler(viewer.scene.canvas); //绑定左点击事件 c 阅读全文
摘要:
一、地形数据 1. 源码 //初始化地形数据 const demLayer: CesiumTerrainProvider = new Cesium.CesiumTerrainProvider({ url: url, requestVertexNormals: true, }); //加载地形数据 v 阅读全文
摘要:
一、配置 location /websocket { proxy_pass http://localhost/websocket; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Con 阅读全文
摘要:
一、打包脚本 const path = require('path') const fs = require('fs') const { build, defineConfig } = require('vite') const vue = require('@vitejs/plugin-vue') 阅读全文
摘要:
background: linear-gradient(#ffffff, #00c9ff); background-clip: text; -webkit-text-fill-color: transparent; 阅读全文
摘要:
代码 async getImgInfo(img, text) { return new Promise((resolve, reject) => { const canvas = document.createElement("canvas"); canvas.width = 52; canvas. 阅读全文
摘要:
原因 cesium 的label样式不太好修改 canvas 生成 function labelContent(showData) { const myConvas = document.createElement("canvas"); const scale = 1; //获取2d的上线文开始设置 阅读全文
摘要:
代码 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title></title> <style> </style> </head> <body> <div style="display: flex;"> <div cl 阅读全文
摘要:
Vue 滚动播放组合函数 import { onMounted, onUnmounted } from "vue"; export function createScroll(tableRef) { let timer = null; function startScroll() { const t 阅读全文