| | |
| | | } |
| | | } |
| | | }, |
| | | locationTemporaryLayer(res){ |
| | | removeTemporaryLayerAll() { |
| | | var entities = window.Viewer.entities._entities._array; |
| | | for (var i = 0; i < entities.length; i++) { |
| | | if (entities[i]._shpType && entities[i]._shpType == "temporaryLayer") { |
| | | window.Viewer.entities.remove(entities[i]) |
| | | i--; |
| | | } |
| | | } |
| | | }, |
| | | locationTemporaryLayer(res) { |
| | | var entities = window.Viewer.entities._entities._array; |
| | | for (var i in entities) { |
| | | if (entities[i].id == res.id && entities[i]._shpType == res.shpType) { |
| | | window.Viewer.flyTo(entities[i], { |
| | | offset: { |
| | | heading: Cesium.Math.toRadians(0.0), |
| | | pitch: Cesium.Math.toRadians(-90), |
| | | range: 400 |
| | | heading: Cesium.Math.toRadians(0.0), |
| | | pitch: Cesium.Math.toRadians(-90), |
| | | range: 400 |
| | | } |
| | | }); |
| | | }); |
| | | } |
| | | } |
| | | }, |
| | |
| | | ), |
| | | outline: false, |
| | | outlineWidth: res.width, |
| | | |
| | | |
| | | outlineColor: Cesium.Color.fromCssColorString( |
| | | res.outlineColor |
| | | ).withAlpha(res.outlineAlpha), |
| | |
| | | layerType: '基本点', |
| | | heightReference: res.point.disableDepthTestDistance != null ? false : true, |
| | | size: res.point.pixelSize._value, |
| | | |
| | | } |
| | | }, |
| | | |