Skip to content

Commit 749d43c

Browse files
Added overload for fitBounds
1 parent 6e8e0ef commit 749d43c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Fable.ReactGoogleMaps/Fable.Helpers.ReactGoogleMaps.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ type MapRef(mapRef) =
6969
member __.GetCenter() : Coordinates.Position =
7070
mapRef?getCenter() |> unbox
7171

72-
member __.FitBounds(bounds: Coordinates.LatLngBounds) : unit =
73-
mapRef?fitBounds(bounds)
72+
member __.FitBounds(bounds: U2<Coordinates.LatLngBounds, Coordinates.Bounds>, ?padding: float) : unit =
73+
mapRef?fitBounds(bounds, padding)
7474

7575
module Props =
7676

0 commit comments

Comments
 (0)