Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.

Commit e547df8

Browse files
jigfoxsebholstein
authored andcommitted
fix(AgmMarkerCluster): fixes info windows
the marker cluster needs it's own `InfoWindowManager`, otherwise `InfoWindowManager` would be injected with the root `MarkerManager` instead of the `ClusterManager` fixes #1126
1 parent f1163fd commit e547df8

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

packages/js-marker-clusterer/directives/marker-cluster.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {Directive, Input, OnDestroy, OnChanges, OnInit, SimpleChange} from '@angular/core';
22

33
import {ClusterManager} from '../services/managers/cluster-manager';
4-
import {MarkerManager} from '@agm/core';
4+
import {MarkerManager, InfoWindowManager} from '@agm/core';
55

66
import {ClusterOptions, ClusterStyle} from '../services/google-clusterer-types';
77

@@ -34,7 +34,11 @@ import {ClusterOptions, ClusterStyle} from '../services/google-clusterer-types';
3434
*/
3535
@Directive({
3636
selector: 'agm-marker-cluster',
37-
providers: [ClusterManager, {provide: MarkerManager, useExisting: ClusterManager}]
37+
providers: [
38+
ClusterManager,
39+
{provide: MarkerManager, useExisting: ClusterManager},
40+
InfoWindowManager,
41+
]
3842
})
3943
export class AgmMarkerCluster implements OnDestroy, OnChanges, OnInit, ClusterOptions {
4044
/**

0 commit comments

Comments
 (0)