Skip to content

Commit 4061db0

Browse files
authored
Google Maps - docs updated. (#844)
1 parent 63371e4 commit 4061db0

File tree

20 files changed

+814
-18
lines changed

20 files changed

+814
-18
lines changed

blazorbootstrap/Components/Maps/GoogleMap.razor.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ protected override async Task OnInitializedAsync()
1717
await base.OnInitializedAsync();
1818
}
1919

20+
/// <summary>
21+
/// Adds a marker to the GoogleMap.
22+
/// </summary>
23+
/// <param name="marker">The marker to add to the map.</param>
24+
/// <returns>A completed task.</returns>
2025
public ValueTask AddMarkerAsync(GoogleMapMarker marker)
2126
{
2227
JSRuntime.InvokeVoidAsync("window.blazorBootstrap.googlemaps.addMarker", Id, marker, objRef);
@@ -31,13 +36,21 @@ public async Task OnMarkerClickJS(GoogleMapMarker marker)
3136
await OnMarkerClick.InvokeAsync(marker);
3237
}
3338

39+
/// <summary>
40+
/// Refreshes the Google Maps component.
41+
/// </summary>
42+
/// <returns>A completed task.</returns>
3443
public ValueTask RefreshAsync()
3544
{
3645
JSRuntime.InvokeVoidAsync("window.blazorBootstrap.googlemaps.initialize", Id, Zoom, Center, Markers, Clickable, objRef);
3746

3847
return ValueTask.CompletedTask;
3948
}
4049

50+
/// <summary>
51+
/// Updates the markers on the Google Map.
52+
/// </summary>
53+
/// <returns>A completed task.</returns>
4154
public ValueTask UpdateMarkersAsync(IEnumerable<GoogleMapMarker> markers)
4255
{
4356
JSRuntime.InvokeVoidAsync("window.blazorBootstrap.googlemaps.updateMarkers", Id, markers, objRef);

0 commit comments

Comments
 (0)