@weixiaoxiang123/cesium_rightmenu
v0.1.4
Published
## Installation
Downloads
1
Readme
cesium_rightmenu
Installation
Using npm:
npm i @weixiaoxiang123/cesium_rightmenu
In Vue:
js-part:
import RightMenu from '@weixiaoxiang123/cesium_rightmenu'
export default {
mounted() {
// cesium
const viewer = new Cesium.Viewer("cesiumContainer", {
terrainProvider: Cesium.createWorldTerrain(),
});
// 地形深度监测
viewer.scene.globe.depthTestAgainstTerrain = true;
const rightMenu = new RightMenu(viewer); // 初始化右键菜单
// rightMenu.destroy() // 销毁右键菜单
},
};
css-part:
<style>
@import "~@weixiaoxiang123/cesium_rightmenu/lib/rightMenu.css";
</style>