二三维同步底图透明度,取消电子围墙二维显示
This commit is contained in:
@ -290,7 +290,7 @@ class Base extends Tools {
|
||||
let destination = Cesium.Cartesian3.fromDegrees(lng, lat, alt)
|
||||
|
||||
let position = { lng: 0, lat: 0 }
|
||||
if (this.options.position) {
|
||||
if (this.options.position && Object.prototype.toString.call(this.options.position) === '[object Object]') {
|
||||
position = { ...this.options.position }
|
||||
}
|
||||
else if (this.options.positions) {
|
||||
@ -436,7 +436,7 @@ class Base extends Tools {
|
||||
|
||||
let position = { lng: 0, lat: 0 }
|
||||
let relativePosition = { ...cameraPosition84 }
|
||||
if (this.options.position) {
|
||||
if (this.options.position && Object.prototype.toString.call(this.options.position) === '[object Object]') {
|
||||
position = { ...this.options.position }
|
||||
}
|
||||
else if (this.options.positions) {
|
||||
|
Reference in New Issue
Block a user