f1d2a487 by unknown

'20191208'

1 parent 3cf186e6
......@@ -6,7 +6,7 @@
* 3、使用Popup来弹出倾斜摄影覆盖面的信息
* @Date: 2019-12-03 22:52:56
* @LastEditors: jiangbotao
* @LastEditTime: 2019-12-07 14:01:32
* @LastEditTime: 2019-12-09 12:23:57
* @FilePath: \superglobevue\src\components\viewer.vue
-->
<template>
......@@ -194,6 +194,8 @@ export default {
cell1.innerHTML = selectedFeature.fieldNames[index];
cell2.innerHTML = selectedFeature.fieldValues[index];
}
}else{
$("#bubble").hide();
}
},
error: function(msg) {
......@@ -205,14 +207,28 @@ export default {
// 将数据服务查询到的要素添加到场景中高亮显示,表示选中效果。
function addClapFeature(feature) {
var lonLatArr = getLonLatArray(feature.geometry.points);
// smviewer.entities.add({
// id: 'identify-area',
// name: '单体化标识面',
// polygon: {
// hierarchy: Cesium.Cartesian3.fromDegreesArray(lonLatArr),
// material: new Cesium.Color(1.0, 0.0, 0.0, 0.3),
// },
// clampToS3M: true // 贴在S3M模型表面
// });
smviewer.entities.add({
id: 'identify-area',
name: '单体化标识面',
polygon: {
hierarchy: Cesium.Cartesian3.fromDegreesArray(lonLatArr),
material: new Cesium.Color(1.0, 0.0, 0.0, 0.3),
material: new Cesium.Color(0.0, 1.0, 0.0, 0.3),
// perPositionHeight: true,
extrudedHeight: 100,
height: 50,
vertexFormat : Cesium.EllipsoidSurfaceAppearance.VERTEX_FORMAT,
outline : true,
outlineColor : Cesium.Color.BLACK
},
clampToS3M: true // 贴在S3M模型表面
});
}
......
......@@ -8,7 +8,7 @@
* @Author: jiangbotao
* @Date: 2019-12-02 09:05:50
* @LastEditors: jiangbotao
* @LastEditTime: 2019-12-09 11:38:20
* @LastEditTime: 2019-12-09 12:22:02
* @FilePath: \WebGL_Webpack_Vue\components\viewer.vue
-->
<template>
......
......@@ -2,7 +2,7 @@
* @Author: jiangbotao
* @Date: 2019-12-03 22:31:08
* @LastEditors: jiangbotao
* @LastEditTime: 2019-12-09 12:07:37
* @LastEditTime: 2019-12-09 12:10:58
* @FilePath: \superglobevue\src\views\Home.vue
-->
<template>
......@@ -10,7 +10,7 @@
</template>
<script>
import viewer from "@/components/viewer_fire.vue";
import viewer from "@/components/viewer_s3m_single.vue";
export default {
name: "home",
......