<!--
  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-button-toggle-group 
class="drawing-buttons"
[(value)] = "selectedValue">
<!-- TODO: replace these with icons. -->
  <mat-button-toggle value = "{{pointValue}}" (click)="onButtonClick()">
    add point
  </mat-button-toggle>
  <mat-button-toggle value = "{{polygonValue}}" (click)="onButtonClick()">
    add polygon
  </mat-button-toggle>
</mat-button-toggle-group>

<mat-form-field
*ngIf="selectedValue"
class="drawing-layer-selector"
appearance="fill">
  <mat-label>Adding {{selectedValue}} for</mat-label>
  <mat-select [(value)]="selectedLayerId" (selectionChange)="onLayerIdChange()">
    <mat-option *ngFor="let layer of layers$ | async" [value]="layer.id">
      <img [src]="layerPinUrl(layer)" />&nbsp;{{ layer?.name?.get(lang) }}
    </mat-option>
  </mat-select>
</mat-form-field>

<!--
  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-button-toggle-group 
class="drawing-buttons"
[(value)] = "selectedValue">
<!-- TODO: replace these with icons. -->
  <mat-button-toggle value = "{{pointValue}}" (click)="onButtonClick()">
    add point
  </mat-button-toggle>
  <mat-button-toggle hidden value = "{{polygonValue}}" (click)="onButtonClick()">
    add polygon
  </mat-button-toggle>
</mat-button-toggle-group>

<mat-form-field
*ngIf="selectedValue"
class="drawing-layer-selector"
appearance="fill">
  <mat-label>Adding {{selectedValue}} for</mat-label>
  <mat-select [(value)]="selectedLayerId" (selectionChange)="onLayerIdChange()">
    <mat-option *ngFor="let layer of layers$ | async" [value]="layer.id">
      <img [src]="layerPinUrl(layer)" />&nbsp;{{ layer?.name?.get(lang) }}
    </mat-option>
  </mat-select>
</mat-form-field>

Hide add polygon button since the function behind this button is not yet implemented.
Hide add polygon button since the function behind this button is not yet implemented.
