-
Notifications
You must be signed in to change notification settings - Fork 33
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
Cluster component gives error #18
Comments
I also have this issue when using the Cluster. |
Hello! Thanks for reporting this problem, sorry for the delay, its holiday where I live today.
Can you remember the last version you were using before? |
Hi @NathanAP!
Never mind. It's not an emergency, and you've responded quickly to the issue ticket.
Tomorrow, I've tried to downgrade to [email protected] but the problem is continuing to present. So, apparently, I was wrong about the VueJs conflict. Hoping it will be more helpful, however here it is my dependencies:
|
OK, I found out some information about this issue:
@tahaipek , @lugrinder , @YassineChe sorry to ping you guys directly. Did you find something about this problem? |
Since i posted the issue i tried many solutions but none of 'em worked, Keep me up to date. |
This comment was marked as off-topic.
This comment was marked as off-topic.
Some more research:
Not working case (when we get the error): There is a lot of cases it is using correctly, so I guess that |
You're totally right @NathanAP! I've also debugged the code, and as you pointed out it obviously couldn't work due to the change of the new class used for rendering the clusters on the map. The bindProps method (that you mention here), that is called from here, tries to bind the Cluster component properties to the relative As you can see from here, this is due to the lack of the setters and getters for the Cluster component props in the new class So, the |
If thats the case, in
we could just add
... Right? 🤔🤔🤔🤔🤔 I will test it tomorrow! |
Then it should be added to all the Cluster props because none of these props hasn't a setter/getter method in that class. However, I tried brutally removing all the props from the component, and this only solves the error rising but the clusters aren't rendered.
Of course, it's too late to continue thinking about it 😅 |
Yeah, I don't think it will resolve because we need to reference the map that we wanna show the clusters... Anyway, I'm investigating the code again. It seems that when we are using the For example, if we only use a simple Marker and keep track of
Edit: my mistake in the last part. I changed the image I first uploaded. |
You get the point! In particular, there is no bind between the
Yes, as you can see from your screenshot, there're no setters or getters. That is the problem that leads to the However, I'm currently working on the fix to work with the new class constructor. Also, the fix will permit to define a custom render function (default DefaultRenderer) and choose the clustering algorithm (default SuperClusterAlgorithm). Within today, I will make a PR. |
Yeah, I start to make some console.log in the entire
Thanks you so much and good luck with the PR! If you need something please let us know. |
Hello again, any news about Clustering ? |
As promised, I made PR #19 which ends the porting started by Fawmi to the new MarkerClusterer class and should fix the Edit: I forgot to add the link to the PR in the comment. |
Almost sure that today is the last day of this problem! |
@NathanAP |
Still getting
Even i added Any suggestions ? |
Sorry guys, I made a mistake when I publish the I'm fixing it right now, will update this comment when everything is ok. Edit: its up. You can update to |
@NathanAP , |
@YassineChe of course you can. And not only the color. Note that the component properties have been changed since version 0.1.5. Please, have a look at PR #19. In particular, I suggest having a deep look at the @googlemaps/markerclusterer documentation linked at the end of the PR. Here you can find more examples of the render function you could implement to change marker cluster color. |
I think we could add a color change example later in the docs! |
@NathanAP |
Still having this issue in
|
Codepen support
Unfortunately, I'm not able to make the code work on Codepen.
Describe what you're reporting
I suppose that a recent update of the VueJs is conflicting with the component code. The library was correctly grouping the markers in clusters until a couple of weeks ago. Now, the markers are no more shown on the map due to the following error:
Note that if you try to make the markers be rendered directly on the map (i.e., removing the Cluster component and using the Marker component directly), the problem is not showing up.
How can we reproduce it?
You should reproduce it using the example code that is in the README file in the Cluster component section.
What were your expecting to happen?
The marker should be grouped correctly in clusters and shown on the map without the above error.
Device or environment
The text was updated successfully, but these errors were encountered: