All files / si-map/components/si-map-popover si-map-popover.component.html

100% Statements 21/21
50% Branches 2/4
100% Functions 0/0
100% Lines 15/15

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 2723x 23x   23x   23x 23x       23x 6x 6x     2x   2x 2x 4x 4x 2x   1x      
<div #popover class="si-map-popover">
  <div class="si-map-popover-arrow"></div>
 
  <div class="si-map-popover-content">
    <div class="overflow-auto px-5">
      <div #contentContainer></div>
    </div>
  </div>
</div>
 
<ng-template #defaultContent let-mapPoint="mapPoint" siMapPopoverTemplate>
  <div>{{ mapPoint?.name }}</div>
  <div [innerHTML]="mapPoint?.description"></div>
</ng-template>
<ng-template #defaultCluster let-mapPoints="mapPoints" siMapPopoverClusterTemplate>
  <div [style.max-block-size.px]="maxHeight()">
    <div class="si-map-popover-list">
      @for (point of mapPoints; track $index) {
        <div class="si-map-popover-item">
          <div class="si-map-popover-item-title">{{ point.name }}</div>
          <div class="si-map-popover-item-description" [innerHTML]="point.description"></div>
        </div>
      }
    </div>
  </div>
</ng-template>