diff --git a/README.md b/README.md index 6d9e347..2964128 100644 --- a/README.md +++ b/README.md @@ -319,6 +319,7 @@ export default MyMap; * [`enableAccessibilityElements(...)`](#enableaccessibilityelements) * [`enableCurrentLocation(...)`](#enablecurrentlocation) * [`setPadding(...)`](#setpadding) +* [`getMapBounds()`](#getmapbounds) * [`fitBounds(...)`](#fitbounds) * [`setOnBoundsChangedListener(...)`](#setonboundschangedlistener) * [`setOnCameraIdleListener(...)`](#setoncameraidlelistener) @@ -654,6 +655,19 @@ setPadding(padding: MapPadding) => Promise -------------------- +### getMapBounds() + +```typescript +getMapBounds() => Promise +``` + +Get the map's current viewport latitude and longitude bounds. + +**Returns:** Promise<LatLngBounds> + +-------------------- + + ### fitBounds(...) ```typescript