The project is a mearure tool for Cesium.
npm i cesium-measure
- import cesium-measure
//main.js
import Vue from 'vue'
import cesiumMeasure from 'cesium-measure'
Vue.use(cesiumMeasure)
2.use it in your component
//you-component
<template>
<div>
...
<cesiumMeasure ref="measure"></cesiumMeasure>
...
</div>
</template>
<script>
data(){return{}},
mounted(){
const viewer=new Cesium.Viewer('container')
this.$refs.measure.init(viewer);
}
</script>
npm install
npm start
npm run build