代码格式化,没用更改任何代码
parent
5dd208aeea
commit
407af0be27
|
@ -167,11 +167,12 @@ import { upload } from '@/utils/upload'
|
||||||
import SelectTree from '@/components/SelectTree'
|
import SelectTree from '@/components/SelectTree'
|
||||||
import waves from '@/directive/waves' // waves directive
|
import waves from '@/directive/waves' // waves directive
|
||||||
import TiandiMap from '@/components/TianMap/TiandiMap.vue'
|
import TiandiMap from '@/components/TianMap/TiandiMap.vue'
|
||||||
import RyDragEntity from "../../../map/js/ry_dragentity";
|
import RyDragEntity from '../../../map/js/ry_dragentity'
|
||||||
import DragEntity from "../../../map/js/dragentity";
|
import DragEntity from '../../../map/js/dragentity'
|
||||||
|
|
||||||
let viewer = null
|
let viewer = null
|
||||||
let drag = null
|
let drag = null
|
||||||
|
// eslint-disable-next-line no-unused-vars
|
||||||
let ry_drag = null
|
let ry_drag = null
|
||||||
var tiandituTk = 'e8a16137fd226a62a23cc7ba5c9c78ce'
|
var tiandituTk = 'e8a16137fd226a62a23cc7ba5c9c78ce'
|
||||||
var subdomains = ['0', '1', '2', '3', '4', '5', '6', '7']
|
var subdomains = ['0', '1', '2', '3', '4', '5', '6', '7']
|
||||||
|
@ -389,11 +390,10 @@ export default {
|
||||||
viewer.cesiumWidget.screenSpaceEventHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_CLICK)
|
viewer.cesiumWidget.screenSpaceEventHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_CLICK)
|
||||||
// 去掉entity的点击事件 end
|
// 去掉entity的点击事件 end
|
||||||
this.handler = new Cesium.ScreenSpaceEventHandler(viewer.scene.canvas)
|
this.handler = new Cesium.ScreenSpaceEventHandler(viewer.scene.canvas)
|
||||||
let id
|
|
||||||
this.handler.setInputAction(movement => {
|
this.handler.setInputAction(movement => {
|
||||||
|
// eslint-disable-next-line no-unused-vars
|
||||||
var cartesian = this.getCatesian3FromPX(movement.position)
|
var cartesian = this.getCatesian3FromPX(movement.position)
|
||||||
}, Cesium.ScreenSpaceEventType.LEFT_CLICK)
|
}, Cesium.ScreenSpaceEventType.LEFT_CLICK)
|
||||||
|
|
||||||
},
|
},
|
||||||
getCatesian3FromPX: function(px) {
|
getCatesian3FromPX: function(px) {
|
||||||
if (viewer && px) {
|
if (viewer && px) {
|
||||||
|
@ -421,8 +421,11 @@ export default {
|
||||||
if (cartesian) {
|
if (cartesian) {
|
||||||
const cartographic = Cesium.Cartographic.fromCartesian(cartesian)
|
const cartographic = Cesium.Cartographic.fromCartesian(cartesian)
|
||||||
if (cartographic.height < 0) cartographic.height = 0
|
if (cartographic.height < 0) cartographic.height = 0
|
||||||
|
// eslint-disable-next-line prefer-const,one-var
|
||||||
let lon = Cesium.Math.toDegrees(cartographic.longitude),
|
let lon = Cesium.Math.toDegrees(cartographic.longitude),
|
||||||
|
// eslint-disable-next-line prefer-const
|
||||||
lat = Cesium.Math.toDegrees(cartographic.latitude),
|
lat = Cesium.Math.toDegrees(cartographic.latitude),
|
||||||
|
// eslint-disable-next-line prefer-const
|
||||||
height = cartographic.height
|
height = cartographic.height
|
||||||
cartesian = this.transformWGS84ToCartesian({
|
cartesian = this.transformWGS84ToCartesian({
|
||||||
lng: lon,
|
lng: lon,
|
||||||
|
|
Loading…
Reference in New Issue