Skip to content

Commit 7827f0f

Browse files
authored
Merge pull request #1565 from swisstopo/develop
Release Candidate 1.1.0
2 parents a575a0c + a9152f9 commit 7827f0f

File tree

5 files changed

+23
-24
lines changed

5 files changed

+23
-24
lines changed

ui/locales/app.de.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190
"lyr_voxel_geneva_logk_label": "Genf: Hydraulische Leitfähigkeit",
191191
"lyr_voxel_visp_litho_label": "Visp: Modelliereinheit",
192192
"lyr_voxel_visp_logk_label": "Visp: Hydraulische Leitfähigkeit",
193-
"lyr_voxel_rheintal_klasse_label": "St.Galler Rheintal - Durchlässigkeit",
193+
"lyr_voxel_rheintal_klasse_label": "St.Galler Rheintal: Durchlässigkeit",
194194
"lyr_water_tunnel_label": "Unterirdische Wassertunnel",
195195
"map_elevation_label": "Höhe (m ü. M.)",
196196
"map_position_label": "Position",

ui/locales/app.en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190
"lyr_voxel_geneva_logk_label": "Geneva: Hydraulic conductivity",
191191
"lyr_voxel_visp_litho_label": "Visp: Modelling Unit",
192192
"lyr_voxel_visp_logk_label": "Visp: Hydraulic conductivity",
193-
"lyr_voxel_rheintal_klasse_label": "St.Galler Rheintal - Permeability ",
193+
"lyr_voxel_rheintal_klasse_label": "St.Galler Rheintal: Permeability ",
194194
"lyr_water_tunnel_label": "Underground water tunnel",
195195
"map_elevation_label": "Elevation (m AMSL)",
196196
"map_position_label": "Position",

ui/locales/app.fr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190
"lyr_voxel_geneva_logk_label": "Genève: Conductivité hydraulique",
191191
"lyr_voxel_visp_litho_label": "Visp: Lithologie",
192192
"lyr_voxel_visp_logk_label": "Visp: Conductivité hydraulique",
193-
"lyr_voxel_rheintal_klasse_label": "St.Galler Rheintal - Perméabilité",
193+
"lyr_voxel_rheintal_klasse_label": "St.Galler Rheintal: Perméabilité",
194194
"lyr_water_tunnel_label": "Tunnel d'eau souterrain",
195195
"map_elevation_label": "Altitude (m AMSL)",
196196
"map_position_label": "Position",

ui/locales/app.it.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@
189189
"lyr_voxel_geneva_logk_label": "Ginevra: Conducibilità idraulica",
190190
"lyr_voxel_visp_litho_label": "Visp: Litologia",
191191
"lyr_voxel_visp_logk_label": "Visp: Conducibilità idraulica",
192-
"lyr_voxel_rheintal_klasse_label": "St.Galler Rheintal - Permeabilità",
192+
"lyr_voxel_rheintal_klasse_label": "St.Galler Rheintal: Permeabilità",
193193
"lyr_water_tunnel_label": "Condotta idrica sotterranea",
194194
"map_elevation_label": "Altitudine (m AMSL)",
195195
"map_position_label": "Positione",

ui/src/elements/ngm-nav-tools.ts

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,24 @@ import { customElement, property, state } from 'lit/decorators.js';
33
import { html } from 'lit';
44
import draggable from './draggable';
55
import { DEFAULT_VIEW } from '../constants';
6-
import { ConstantPositionProperty, Event, Scene, Viewer } from 'cesium';
76
import {
87
ArcType,
98
CallbackProperty,
109
Cartesian3,
1110
Cartographic,
1211
Color,
12+
ConstantPositionProperty,
1313
CustomDataSource,
1414
Entity,
15+
Event,
1516
JulianDate,
1617
KeyboardEventModifier,
1718
Matrix4,
1819
PolylineCollection,
19-
Transforms,
20+
Scene,
2021
ScreenSpaceEventHandler,
2122
ScreenSpaceEventType,
23+
Viewer,
2224
} from 'cesium';
2325
import type { Interactable } from '@interactjs/types';
2426
import { classMap } from 'lit/directives/class-map.js';
@@ -265,22 +267,17 @@ export class NgmNavTools extends LitElementI18n {
265267
showSnackbarError(i18next.t('nav_tools_out_glob_warn'));
266268
return;
267269
}
268-
this.addTargetPoint(position, true);
270+
this.addTargetPoint(position);
269271
}
270272
syncTargetParam(position && Cartographic.fromCartesian(position));
271273
NavToolsStore.setTargetPointPosition(position);
272274
this.toggleAxis(position);
273275
}
274276

275-
addTargetPoint(center: Cartesian3, lookAtTransform = false) {
277+
addTargetPoint(center: Cartesian3) {
276278
this.showTargetPoint = true;
277279
this.refIcon.position = new ConstantPositionProperty(center);
278-
const cam = this.viewer!.camera;
279280
this.refIcon.show = true;
280-
if (lookAtTransform) {
281-
const transform = Transforms.eastNorthUpToFixedFrame(center);
282-
cam.lookAtTransform(transform);
283-
}
284281
document.addEventListener('keydown', this.ctrlListener);
285282
}
286283

@@ -325,8 +322,6 @@ export class NgmNavTools extends LitElementI18n {
325322
this.addTargetPoint(center);
326323
const camera = this.viewer!.camera;
327324
lookAtPoint(center, camera);
328-
const transform = Transforms.eastNorthUpToFixedFrame(center);
329-
camera.lookAtTransform(transform);
330325
this.toggleAxis(center);
331326

332327
this.viewer!.scene.screenSpaceCameraController.enableInputs = true;
@@ -445,17 +440,21 @@ export class NgmNavTools extends LitElementI18n {
445440
})}"
446441
@click=${() => this.dispatchEvent(new CustomEvent('togglecamconfig'))}
447442
></div>
448-
<div
449-
title="${i18next.t('nav_target_point')}"
450-
class="ngm-coords-icon ${classMap({
451-
'ngm-active-icon': this.showTargetPoint,
452-
'ngm-disabled':
453-
this.lockType !== '' && this.lockType !== 'elevation',
454-
})}"
455-
@click=${() => this.toggleReference()}
456-
></div>
457443
</div>
458444
${dragArea}
459445
`;
460446
}
447+
448+
// TODO Fix the target point tool and then add this icon back to the toolbar.
449+
/*
450+
<div
451+
title="${i18next.t('nav_target_point')}"
452+
class="ngm-coords-icon ${classMap({
453+
'ngm-active-icon': this.showTargetPoint,
454+
'ngm-disabled':
455+
this.lockType !== '' && this.lockType !== 'elevation',
456+
})}"
457+
@click=${() => this.toggleReference()}
458+
></div>
459+
*/
461460
}

0 commit comments

Comments
 (0)