Map layout and interface improvements (#8628)

* Map layout and interface improvements:
* Disable drag to rotate
* Add keyboard shortcut to delete items
* Hide unselect button when selection is empty
* Add display template setting
* Fixed fitData button behaviour

* Removed unused hoveredFeatureId

* Added translations

* Expose clearFilters to the layout.
This commit is contained in:
Oreille
2021-10-12 15:50:18 +02:00
committed by GitHub
parent 23a126b026
commit 475f6349f0
12 changed files with 90 additions and 38 deletions

View File

@@ -113,10 +113,6 @@ export class BoxSelectControl {
const rect = container.getBoundingClientRect();
// @ts-ignore
return new Point(event.clientX - rect.left - container.clientLeft, event.clientY - rect.top - container.clientTop);
// return {
// x: event.clientX - rect.left - container.clientLeft,
// y: event.clientY - rect.top - container.clientTop
// };
}
onKeyDown(event: KeyboardEvent): void {
@@ -136,6 +132,10 @@ export class BoxSelectControl {
this.map!.fire(`select.${yes ? 'enable' : 'disable'}`);
}
showUnselect(yes: boolean): void {
this.unselectButton.show(yes);
}
onKeyUp(event: KeyboardEvent): void {
if (event.key == 'Shift') {
this.activate(false);