Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
蒋波涛
/
super_globe_vue
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
f1d2a487
authored
2019-12-09 12:24:48 +0800
by
unknown
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
'20191208'
1 parent
3cf186e6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
6 deletions
src/components/viewer_s3m_single.vue
src/components/viewer_ymo.vue
src/views/Home.vue
src/components/viewer_s3m_single.vue
View file @
f1d2a48
...
...
@@ -6,7 +6,7 @@
* 3、使用Popup来弹出倾斜摄影覆盖面的信息
* @Date: 2019-12-03 22:52:56
* @LastEditors: jiangbotao
* @LastEditTime: 2019-12-0
7 14:01:32
* @LastEditTime: 2019-12-0
9 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模型表面
});
}
...
...
src/components/viewer_ymo.vue
View file @
f1d2a48
...
...
@@ -8,7 +8,7 @@
* @Author: jiangbotao
* @Date: 2019-12-02 09:05:50
* @LastEditors: jiangbotao
* @LastEditTime: 2019-12-09 1
1:38:20
* @LastEditTime: 2019-12-09 1
2:22:02
* @FilePath: \WebGL_Webpack_Vue\components\viewer.vue
-->
<
template
>
...
...
src/views/Home.vue
View file @
f1d2a48
...
...
@@ -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_
fir
e.vue"
;
import
viewer
from
"@/components/viewer_
s3m_singl
e.vue"
;
export
default
{
name
:
"home"
,
...
...
Please
register
or
sign in
to post a comment