扩散光波二维显示
This commit is contained in:
@ -2949,7 +2949,7 @@ class BillboardObject extends Base {
|
|||||||
let goodsHtml = ''
|
let goodsHtml = ''
|
||||||
let richTextHtml = ''
|
let richTextHtml = ''
|
||||||
for (let i = 0; i < this.options.attribute.link.content.length; i++) {
|
for (let i = 0; i < this.options.attribute.link.content.length; i++) {
|
||||||
linkHtml += `<DIV-cy-tab-pane label="${this.options.attribute.link.content[i].name}"><iframe width='100%' height='100%' src="${this.options.attribute.link.content[i].url}" sandbox="allow-scripts allow-same-origin"></iframe></DIV-cy-tab-pane>`
|
linkHtml += `<DIV-cy-tab-pane label="${this.options.attribute.link.content[i].name}"><iframe width='100%' height='100%' src="${this.options.attribute.link.content[i].url}" ></iframe></DIV-cy-tab-pane>`
|
||||||
}
|
}
|
||||||
if (this.options.attribute.goods && this.options.attribute.goods.content && this.options.attribute.goods.content.length > 0) {
|
if (this.options.attribute.goods && this.options.attribute.goods.content && this.options.attribute.goods.content.length > 0) {
|
||||||
goodsHtml += `<DIV-cy-tab-pane label="物资">
|
goodsHtml += `<DIV-cy-tab-pane label="物资">
|
||||||
|
@ -181,7 +181,7 @@ class CircleDiffuse extends Base {
|
|||||||
}
|
}
|
||||||
that.sdk._entityZIndex++
|
that.sdk._entityZIndex++
|
||||||
if (that.sdk.viewer._element.className === 'cesium-viewer 2d') {
|
if (that.sdk.viewer._element.className === 'cesium-viewer 2d') {
|
||||||
that.entity.ellipse.height = 1000000
|
that.entity.ellipse.height = 1
|
||||||
}
|
}
|
||||||
CircleDiffuse.createLabel(that)
|
CircleDiffuse.createLabel(that)
|
||||||
syncData(that.sdk, that.options.id)
|
syncData(that.sdk, that.options.id)
|
||||||
|
@ -1384,10 +1384,10 @@ class CurvelineObject extends Base {
|
|||||||
that.options.lengthByMeter = res
|
that.options.lengthByMeter = res
|
||||||
that.lengthUnit = that.options['length-unit']
|
that.lengthUnit = that.options['length-unit']
|
||||||
syncData(that.sdk, that.options.id)
|
syncData(that.sdk, that.options.id)
|
||||||
if (that.options.show) {
|
|
||||||
setSplitDirection(0, that.options.id)
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
if (that.options.show) {
|
||||||
|
setSplitDirection(0, that.options.id)
|
||||||
|
}
|
||||||
|
|
||||||
// if (this.options['nose-to-tail']) {
|
// if (this.options['nose-to-tail']) {
|
||||||
// let array = []
|
// let array = []
|
||||||
|
@ -1410,10 +1410,10 @@ class PolylineObject extends Base {
|
|||||||
that.options.lengthByMeter = res
|
that.options.lengthByMeter = res
|
||||||
that.lengthUnit = that.options['length-unit']
|
that.lengthUnit = that.options['length-unit']
|
||||||
syncData(that.sdk, that.options.id)
|
syncData(that.sdk, that.options.id)
|
||||||
if (that.options.show) {
|
|
||||||
setSplitDirection(0, that.options.id)
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
if (that.options.show) {
|
||||||
|
setSplitDirection(0, that.options.id)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// if (this.options['nose-to-tail']) {
|
// if (this.options['nose-to-tail']) {
|
||||||
|
@ -138,7 +138,7 @@ class RadarScan extends Base {
|
|||||||
})
|
})
|
||||||
that.sdk._entityZIndex++
|
that.sdk._entityZIndex++
|
||||||
if (that.sdk.viewer._element.className === 'cesium-viewer 2d') {
|
if (that.sdk.viewer._element.className === 'cesium-viewer 2d') {
|
||||||
that.entity.ellipse.height = 1000000
|
that.entity.ellipse.height = 1
|
||||||
}
|
}
|
||||||
RadarScan.createLabel(that)
|
RadarScan.createLabel(that)
|
||||||
syncData(that.sdk, that.options.id)
|
syncData(that.sdk, that.options.id)
|
||||||
|
@ -50,7 +50,8 @@ export default class CircleDiffuseMaterialProperty {
|
|||||||
let color = this.colors[ratio[i]]
|
let color = this.colors[ratio[i]]
|
||||||
_sourceColor = _sourceColor + `
|
_sourceColor = _sourceColor + `
|
||||||
if(dis < float(${Number(ratio[i]) / 2})) {
|
if(dis < float(${Number(ratio[i]) / 2})) {
|
||||||
material.diffuse = 1.5 * vec4(${color.red},${color.green},${color.blue},${color.alpha}).rgb;
|
material.diffuse = vec4(0.0,0.0,0.0,0.0).rgb;
|
||||||
|
material.emission = 1.0 * vec4(${color.red},${color.green},${color.blue},${color.alpha}).rgb;
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
}
|
}
|
||||||
@ -110,7 +111,7 @@ export default class CircleDiffuseMaterialProperty {
|
|||||||
transparency: 1,
|
transparency: 1,
|
||||||
count: 4,
|
count: 4,
|
||||||
gradient: 0.2,
|
gradient: 0.2,
|
||||||
frameNumber: Cesium.getTimestamp(),
|
frameNumber: Cesium.getTimestamp(),
|
||||||
},
|
},
|
||||||
source: this._source,
|
source: this._source,
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user