Skip to content

Commit

Permalink
[Bug] MarkerClustering Redraw() do not work #204
Browse files Browse the repository at this point in the history
  • Loading branch information
valentasm committed Aug 27, 2022
1 parent d167be7 commit 5cbe4e1
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions GoogleMapsComponents/Maps/MarkerClustering.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,17 +130,27 @@ public virtual async Task FitMapToMarkers(int padding)
/// Recalculates and redraws all the marker clusters from scratch. Call this after changing any properties.
/// </summary>
[Obsolete("Deprecated in favor of Redraw() to match latest js-markerclusterer")]
public virtual async Task Repaint()
public virtual Task Repaint()
{
await Redraw();
return Render();
}

/// <summary>
/// Recalculates and redraws all the marker clusters from scratch. Call this after changing any properties.
/// </summary>
public virtual async Task Redraw()
[Obsolete("Deprecated in favor of Render() to match latest js-markerclusterer")]
public virtual Task Redraw()
{
await _jsObjectRef.InvokeAsync("redraw");
return Render();
}

/// <summary>
/// https://googlemaps.github.io/js-markerclusterer/interfaces/Renderer.html#render
/// </summary>
/// <returns></returns>
public virtual Task Render()
{
return _jsObjectRef.InvokeAsync("render");

}

Expand Down

0 comments on commit 5cbe4e1

Please sign in to comment.