- npm updates
- draw bounding box geometry - enter coverage information (elevation and depth)
This commit is contained in:
parent
4abcfe7135
commit
e110826e1a
12 changed files with 929 additions and 576 deletions
|
@ -2,7 +2,7 @@
|
|||
<div class="gba-control-zoom btn-group-vertical">
|
||||
<button
|
||||
ref="inputPlus"
|
||||
class="inline-flex cursor-pointer justify-center items-center whitespace-nowrap focus:outline-none transition-colors duration-150 border rounded ring-blue-700 bg-teal-50 text-black border-teal-50 hover:bg-gray-200 text-sm p-1"
|
||||
class="disabled:bg-gray-200 inline-flex cursor-pointer justify-center items-center whitespace-nowrap focus:outline-none transition-colors duration-150 border rounded ring-blue-700 bg-teal-50 text-black border-teal-50 text-sm p-1"
|
||||
type="button"
|
||||
@click.prevent="zoomIn"
|
||||
>
|
||||
|
@ -11,7 +11,7 @@
|
|||
|
||||
<button
|
||||
ref="inputMinus"
|
||||
class="inline-flex cursor-pointer justify-center items-center whitespace-nowrap focus:outline-none transition-colors duration-150 border rounded ring-blue-700 bg-teal-50 text-black border-teal-50 hover:bg-gray-200 text-sm p-1"
|
||||
class="disabled:bg-gray-200 inline-flex cursor-pointer justify-center items-center whitespace-nowrap focus:outline-none transition-colors duration-150 border rounded ring-blue-700 bg-teal-50 text-black border-teal-50 text-sm p-1"
|
||||
type="button"
|
||||
@click.prevent="zoomOut"
|
||||
>
|
||||
|
@ -42,8 +42,8 @@ export default class ZoomControlComponent extends Vue {
|
|||
*/
|
||||
@Prop() public mapId: string;
|
||||
|
||||
@Ref('inputPlus') private _inputPlus: HTMLElement;
|
||||
@Ref('inputMinus') private _inpuMinus: HTMLElement;
|
||||
@Ref('inputPlus') inputPlus: HTMLButtonElement;
|
||||
@Ref('inputMinus') inputMinus: HTMLButtonElement;
|
||||
|
||||
mapService = MapService();
|
||||
map;
|
||||
|
@ -71,19 +71,19 @@ export default class ZoomControlComponent extends Vue {
|
|||
let map = this.mapService.getMap(this.mapId);
|
||||
// let className = 'leaflet-disabled';
|
||||
|
||||
// this._inputPlus.nativeElement.disabled = false;
|
||||
this._inputPlus.setAttribute('aria-disabled', 'false');
|
||||
this.inputPlus.disabled = false;
|
||||
this.inputPlus.setAttribute('aria-disabled', 'false');
|
||||
|
||||
// this._inpuMinus.nativeElement.disabled = false;
|
||||
this._inpuMinus.setAttribute('aria-disabled', 'false');
|
||||
this.inputMinus.disabled = false;
|
||||
this.inputMinus.setAttribute('aria-disabled', 'false');
|
||||
|
||||
if (map.getZoom() === map.getMinZoom()) {
|
||||
// this._inpuMinus.nativeElement.disabled = true;
|
||||
this._inpuMinus.setAttribute('aria-disabled', 'true');
|
||||
this.inputMinus.disabled = true;
|
||||
this.inputMinus.setAttribute('aria-disabled', 'true');
|
||||
}
|
||||
if (map.getZoom() === map.getMaxZoom()) {
|
||||
// this._inputPlus.nativeElement.disabled = true;
|
||||
this._inputPlus.setAttribute('aria-disabled', 'true');
|
||||
this.inputPlus.disabled = true;
|
||||
this.inputPlus.setAttribute('aria-disabled', 'true');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -100,7 +100,7 @@ export default class ZoomControlComponent extends Vue {
|
|||
position: absolute;
|
||||
left: 10px;
|
||||
top: 10px;
|
||||
z-index: 500;
|
||||
z-index: 40;
|
||||
}
|
||||
|
||||
.btn-group-vertical button {
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue