Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
cesium_dev_kit
Advanced tools
旨在封装一个 Cesium 基本操作的工具包,提供简单的方法调用来实现复杂的 API 操作;达到节省阅读 Cesium 原文档时间,从而降低入门难度提升学习信心,同时也希望能提高工作效率减少重复劳动;案例中封装了常用功能配备使用案例,npm 安装后可以直接在项目中使用。
https://www.benpaodehenji.com/cesiumDevKit
npm install cesium_dev_kit
import { initCesium } from 'cesium_dev_kit'
// test.vue
<template>
<div id="cesiumContainer"
class="map3d-contaner"></div>
</template>
<script>
import { initCesium } from 'cesium_dev_kit'
export default {
mounted() {
this.initMap()
},
methods: {
initMap() {
const {
viewer, // viewer
material, // 材质模块(修改实体材质)
graphics, // 图形模块(如创建PolygonGraphics对象等)
math3d, // 三维数学工具
primitive, // 图元操作对象(如使用primivite创建polygon等)
draw, // 绘制模块(如多边形,矩形)
passEffect, // 后置处理模块
customCesiumPlugin,
control, // 控制模块(如模型位置调整,拖拽等)
plugin, // 额外插件(如拓展css3的动画 ,地形裁剪)
base, // 基础模块(如坐标转换,图层初始化等)
analysis, // 分析模块(如坡度,坡向,可视域,通视分析)
attackArrowObj, // 标绘(攻击)
straightArrowObj,// 标绘(直击)
pincerArrowObj, // 标绘(钳击)
} = new initCesium(
{
cesiumGlobal: Cesium,
containerId: 'cesiumContainer',
viewerConfig: {
infoBox: false,
shouldAnimate: true,
},
extraConfig: {},
MapImageryList: []
})
}
}
}
</script>
参数
cesiumGlobal
Object Ceiusm 对象containerId
String 容器 idviewerConfig
Object viewer 基础配置(与官网一致)extreaConfig
Object 额外参数配置,如 {logo:true// 是否显示 logo, depthTest:true //开启深度检测}MapImageryList
Object 配置底图,参考 ImageryProvider /**
* 初始化入口函数
* @param {*} param0
* {
* cesiumGlobal:{Object} Ceiusm对象(项目需要安装配置获取Cesium传入)
* containerId:{String} 容器id
* viewerConfig:{Object} viewer基础配置
* 【参数格式】:{与官网一致}
* extreaConfig:{Object }
* 【参数格式】:
* {
* logo:true,// 是否显示logo
* depthTest:true, //开启深度检测
* }
* MapImageryList:{Array} 配置底图,每一个元素格式为
* 【参数格式】 :
* [{
* id: 3,
* name: '',
* type: '',//ImageryProvider类型
* classConfig: {
* url: 链接地址
* },
* interfaceConfig: {},
* offset: '0,0',
* invertswitch: 0,
* filterRGB: '#ffffff',
* showswitch: 1,
* weight: 13,
* createtime: 创建时间
* updatetime: 更新时间,
* }]
*
* }
* @returns
*/
https://github.com/dengxiaoning/cesium_kit_test这是一个 vue 项目已安装 cesium_dev_kit,其中有使用 demo,可直接下载到本地运行查看参照
本地开发推荐使用Chrome 80+
浏览器
支持现代(chrome,Firefox,Microsoft edge,etc.)浏览器, 不支持 IE
cesium-d3kit
drawarrowforcesium
vue3-ts-cesium-map-show
本项目包括但不限于借鉴和参考以上资料,非常感谢作者分享
感兴趣朋友可以一起讨论交流继续完善功能,让工作效率更高、开发更加容易、生活更加惬意。
FAQs
Encapsulate common Cesium APIs to provide reference cases and modular packaging, out of the box - quickly achieve a variety of effect.
The npm package cesium_dev_kit receives a total of 86 weekly downloads. As such, cesium_dev_kit popularity was classified as not popular.
We found that cesium_dev_kit demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.