-
Notifications
You must be signed in to change notification settings - Fork 106
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
[Bug] MarkerClustering Redraw() do not work #204
Comments
I couldnt find that option in documentations |
Yeah, it looks like that redraw method was available a long time ago, but it's gone now. https://groups.google.com/g/google-maps-js-api-v3/c/kspTUjVcFsY Rather than calling ClearMarkers() and adding all the markers back with AddMarkers(), I'm rather just going to remove the updated markers with RemoveMarkers() and then add only the update ones back in with AddMarkers(). There was a problem with the RemoveMarkers() method though. |
I will try review your changes and and merge |
Your links aren't working for me but... I know this was working 6 months ago when I was last doing a lot of work on this project. Looks like the current method to redraw is now so presumably the text string here https://github.com/rungwiroon/BlazorGoogleMaps/blob/master/GoogleMapsComponents/Maps/MarkerClustering.cs#L143 For completeness we should probably make ReDraw |
I updated redraw to render |
Can anyone confirm if the markerClustering.Redraw method works.
I'm trying to hide a marker and refresh the clustering.
Calling
await marker.SetVisible(value);
await markerClustering.Redraw();
Doesn't work, but calling
await marker.SetVisible(value);
await markerClustering.ClearMarkers();
await markerClustering.AddMarkers(markers);
does work.
The text was updated successfully, but these errors were encountered: