Skip to content

Commit

Permalink
贴地量算关闭顶点捕捉
Browse files Browse the repository at this point in the history
  • Loading branch information
supermap123 committed Apr 24, 2024
1 parent 00c9a33 commit ab24d47
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,15 @@ type StateType = {
scenePosition: any;
};
// viewer.camera.setView({ // 先定位,开始渲染定位区域的倾斜
// destination: new SuperMap3D.Cartesian3(-2627223.829626321, 3932851.0803870987, 4265288.945477366),
// orientation: {
// heading: 4.396130342435847,
// pitch: -0.43133441484661317,
// roll: 0.000007429907218359233
// }
// });
// 倾斜图层URL:http://www.supermapol.com/realspace/services/3D-dynamicDTH-2/rest/realspace/datas/Config%20-%201/config
let state = reactive<StateType>({
// dataServiceUrl: 'http://www.supermapol.com/realspace/services/data-dynamicDTH-2/rest/data/featureResults.rjson?returnContent=true',
Expand Down
3 changes: 2 additions & 1 deletion SuperMap iEarth/src/package/measure/measure.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</div>

<div>
<div class="btn-row-item">
<div class="btn-row-item" v-show="state.measureMode == 'Space'">
<n-checkbox
@update:checked="openPickPoint"
v-model:checked="state.pickPointEnabled"
Expand Down Expand Up @@ -524,6 +524,7 @@ function update_mode(val: string) {
handlerArea.clampMode = SuperMap3D.ClampMode.Space;
handlerDis.clampMode = SuperMap3D.ClampMode.Space;
} else {
state.pickPointEnabled = false; // 目前只要是贴地,就关闭顶点捕捉,等包修好后再说
state.clampMode = SuperMap3D.ClampMode.Ground;
handlerArea.clampMode = SuperMap3D.ClampMode.Ground;
handlerDis.clampMode = SuperMap3D.ClampMode.Ground;
Expand Down

0 comments on commit ab24d47

Please sign in to comment.