- 博客(19)
- 收藏
- 关注
原创 Unity添加MapToolbox报错
Unity2021.3.8f1c1导入autowaremaptools报错Library\PackageCache\com.unity.jobs@0.2.10-preview.13\Unity.Jobs\IJobParallelForDefer.cs(73,85): error CS8377: The type 'U' must be a non-nullable value type......
2022-08-16 16:57:54 2835 1
原创 虚拟机安装SSH报错解决办法
虚拟机安装SSH时报错:hub@hub-virtual-machine:~$ sudo apt-get install openssh-server E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using
2022-05-10 20:11:56 1615
原创 SSH连接GitLab一般会遇到如下问题:
1 . git添加公钥后报错sign_and_send_pubkey: signing failed: agent refused operation的解决办法 在服务器添加完公钥后报错sign_and_send_pubkey: signing failed: agent refused operation Permission denied (publickey).解决办法:这个时候我们只要执行下eval "$(ssh-agent -s)" ssh-add就可以了2. 解决 id.
2022-02-18 16:08:08 1169
转载 cesium billboard参数
scale:1.0 调大小sizeInMaters:true 是否设置物理大小,是否固定为屏幕上的大小不变,true为设置物理大小scaleByDistance: new Cesium.NearFarScalar(1.5e2, 2.0, 1.5e7, 0.5) 设置远近大小,当视野为第一个参数时,大小为第二个参数,当视野为第三个参数是,大小为第四个参数,当视野在两个参数中间时,大小为线性的插值translucencyByDistance: new Cesium.Nea...
2021-12-02 09:58:33 1304
原创 JS 函数防抖(debounce)
const debounce=(func,delay)=>{ var timeouts=null; return function(){ if(timeouts){ clearTimeout(timeouts); } timeouts=setTimeout(()=>{ func.apply(this,arguments)...
2021-09-23 11:48:20 100
原创 Cesium根据面和缓冲距离求缓冲区
示例需引入turf.js,根据面polygon(geometry字符串)和缓冲距离distance求缓冲区export const locationToBuffer=(location,distance)=>{ let geo=JSON.parse(location); let polygon; if(geo.type==="Polygon"){ polygon=turf.polygon(geo.coordinates); }else if(geo.type==="Mul
2021-08-10 14:36:06 426
原创 Cesium切换imageryLayer
changeImageryLayer = (imageryLayer) =>{ let imageryLayers = window.viewer.imageryLayers; imageryLayers.addImageryProvider(imageryLayer); //移除其它图层 for( let i =1; i<imageryLayers.length-1; i++){ const layer =imageryLayers.get(i...
2021-08-03 10:03:11 628
原创 cesium加载地图服务的注意事项:
cesium加载地图服务的注意事项:(1)首先要弄弄清地图服务的坐标系,例如可以通过查看 0级0文件夹下是1张还是2张瓦片来判断。EPSG4326:tile_num(z) = 2的(2z+1)次方 个瓦片;EPSG3857:tile_num(z) = 2的(2z)次方 个瓦片;(2)cesium调用地图服务的时候,默认的坐标系是EPSG3857,默认的切片原点是左上角,即-180,90。如果是调用EPSG4326坐标系下的地图服务,需要加上tilingScheme: new Cesium.Geog
2021-04-23 15:48:40 1295
原创 cesium--取消左键双击事件
取消左键双击事件viewer.cesiumWidget.screenSpaceEventHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK);
2021-03-24 17:16:15 1286
原创 cesium--深度检测,解决Cesium绘制几何图形被高程遮挡问题
检测深度//为false时,没有高程遮挡效果viewer.scene.globe.depthTestAgainstTerrain = false;//为true时,有高程遮挡效果viewer.scene.globe.depthTestAgainstTerrain = true;解决Cesium绘制几何图形被高程遮挡问题viewer.scene.globe.depthTestAgainstTerrain = true;...
2021-03-24 17:14:44 4153 3
原创 cesium--禁止缩放
cesium–禁止缩放viewer.scene.screenSpaceCameraController.enableZoom = false;
2021-03-24 17:11:15 738
原创 cesium--entitycollection实体收集器使用方法:例如清除实体entity.entityCollection.remove(entity)
entityCollection的创建和使用
2021-03-18 18:14:22 1734
原创 Cesium通过id添加和删除实体:viewer.entitiew.getById(‘Box‘)和viewer.entities.remove(getByIdBox)
Cesium通过id添加和删除实体:viewer.entitiew.getById(‘Box’)和viewer.entities.remove(getByIdBox)
2021-03-18 17:31:44 3203
原创 cesium 鼠标点击pick与drillPick的区别
drillPick(windowPosition,limit,width,height)→Array.<*>scene中(一般用来获取entity对象):pick:scene.pick可以通过此方法获取到pick对象,通过pick.id即可拾取当前的entity对象,也可以获取Cesium3DTileFeature对象;drillPick:scene.drillPick(click.position)是从当前鼠标点击位置获取entity的集合,然后通过for循环可以获取...
2021-01-07 17:01:03 2600
原创 Cesium-Fullscreen全屏显示
Methods:1、退出全屏显示staticCesium.Fullscreen.exitFullscreen()解释:Asynchronously exits fullscreen mode. If the browser is not currently in fullscreen, or if fullscreen mode is not supported by the browser, does nothing.2、全屏显示Cesium.Fullscreen.requestFul
2020-05-17 14:25:14 4244
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人