Skip to content

Commit

Permalink
A fix for the warnings related to track in latest version of angular (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
HarelM authored Aug 21, 2024
1 parent 152d704 commit a4bb473
Showing 1 changed file with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,21 +80,21 @@ let uniqId = 0;
type="circle"
[paint]="{ 'circle-radius': 0 }"
></mgl-layer>
@for (feature of clusterPoints(); track feature.id) { @if
(feature.properties.cluster) {
<mgl-marker [feature]="feature">
<ng-container
*ngTemplateOutlet="clusterPointTpl(); context: { $implicit: feature }"
></ng-container>
</mgl-marker>
} @else {
<mgl-marker [feature]="feature">
<ng-container
*ngTemplateOutlet="pointTpl(); context: { $implicit: feature }"
></ng-container>
</mgl-marker>
} }
`,
@for (feature of clusterPoints(); track $index) {
@if (feature.properties.cluster) {
<mgl-marker [feature]="feature">
<ng-container
*ngTemplateOutlet="clusterPointTpl(); context: { $implicit: feature }"
></ng-container>
</mgl-marker>
} @else {
<mgl-marker [feature]="feature">
<ng-container
*ngTemplateOutlet="pointTpl(); context: { $implicit: feature }"
></ng-container>
</mgl-marker>
}
}`,
changeDetection: ChangeDetectionStrategy.OnPush,
preserveWhitespaces: false,
standalone: true,
Expand Down

0 comments on commit a4bb473

Please sign in to comment.