<!--
Copyright 2020 Google LLC

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<mat-list-item>
  <img matListAvatar [src]="pinUrl" />
  <h3 matLine>
    {{ layer?.name?.get(lang) }}
  </h3>
  <button mat-icon-button [matMenuTriggerFor]="featureMenu">
    <mat-icon>more_vert</mat-icon>
  </button>
  <mat-menu #featureMenu="matMenu">
    <button mat-menu-item aria-label="delete" (click)="onDeleteFeatureClick()">
      <mat-icon>delete_forever</mat-icon>
      <span>Delete feature</span>
    </button>
    <button mat-menu-item aria-label="back" (click)="onCloseClick()">
      <mat-icon>close</mat-icon>
      <span>Back</span>
    </button>
  </mat-menu>
</mat-list-item>

<!--
Copyright 2020 Google LLC

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<button mat-button
        color="primary"
        aria-label="back"
        (click)="onCloseClick()">
  <mat-icon>arrow_back</mat-icon>
  <span>Back to layers list</span>
</button>
<mat-list-item>
  <img matListAvatar [src]="pinUrl" />
  <h3 matLine>
    {{ layer?.name?.get(lang) }}
  </h3>
  <button mat-icon-button [matMenuTriggerFor]="featureMenu">
    <mat-icon>more_vert</mat-icon>
  </button>
  <mat-menu #featureMenu="matMenu">
    <button mat-menu-item aria-label="delete" (click)="onDeleteFeatureClick()">
      <mat-icon>delete_forever</mat-icon>
      <span>Delete feature</span>
    </button>
  </mat-menu>
</mat-list-item>

Move back button out of menu and on top of the header.
Move back button out of menu and on top of the header.
