Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JS-marker-cluster is not working, when I apply server side rendering #1571

Closed
DineshChopra opened this issue Jan 8, 2019 · 1 comment
Closed

Comments

@DineshChopra
Copy link

**
Hi, I apply agm-marker-cluster, code for that is given below, Its working fine for me, but when I try to use it with server side rendering its giving me an error
window['MarkerCluster']

<agm-map
[latitude]="lat"
[longitude]="lng"
[zoom]="zoom"
[streetViewControl]="false"
[zoomControl]="mapExpended"
[zoomControlOptions]="zoomControlOptions"
(centerChange)="onCenterChange($event)">
<agm-marker-cluster [styles]="clusterStyles">
<agm-marker
*ngFor = "let community of communityList; let i = index;"
[latitude]="community.Lat"
[longitude]="community.Lng"
[title] = "community.CommunityName"
[iconUrl]="getIconurl(i)"
(markerClick)="markerClick($event, community, i)">


**

Steps to reproduce and a minimal demo of the problem

_Use https://plnkr.co or similar -- try this template as a starting point: http://plnkr.co/edit/YX7W20?p=preview

What steps should we try in your demo to see the problem?

Not working in server side rendering

Should also work at server side rendering

angular7 & angular-google-maps version: 1.0.0-beta.5

**
If I update cluster-manager.js file then it works fine for me
Use import 'js-marker-clusterer-universal';
instead of import 'js-marker-clusterer';
**

@sebholstein
Copy link
Owner

duplicate of #1052

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants