f1d2a487 by unknown

'20191208'

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