File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -305,6 +305,7 @@ export default MyMap;
305305* [ ` enableAccessibilityElements(...) ` ] ( #enableaccessibilityelements )
306306* [ ` enableCurrentLocation(...) ` ] ( #enablecurrentlocation )
307307* [ ` setPadding(...) ` ] ( #setpadding )
308+ * [ ` getMapBounds() ` ] ( #getmapbounds )
308309* [ ` fitBounds(...) ` ] ( #fitbounds )
309310* [ ` setOnBoundsChangedListener(...) ` ] ( #setonboundschangedlistener )
310311* [ ` setOnCameraIdleListener(...) ` ] ( #setoncameraidlelistener )
@@ -640,6 +641,19 @@ setPadding(padding: MapPadding) => Promise<void>
640641--------------------
641642
642643
644+ ### getMapBounds()
645+
646+ ``` typescript
647+ getMapBounds () => Promise < LatLngBounds >
648+ ```
649+
650+ Get the map's current viewport latitude and longitude bounds.
651+
652+ ** Returns:** <code >Promise< ; LatLngBounds> ; </code >
653+
654+ --------------------
655+
656+
643657### fitBounds(...)
644658
645659``` typescript
Original file line number Diff line number Diff line change @@ -57,6 +57,12 @@ export interface GoogleMapInterface {
5757 enableAccessibilityElements ( enabled : boolean ) : Promise < void > ;
5858 enableCurrentLocation ( enabled : boolean ) : Promise < void > ;
5959 setPadding ( padding : MapPadding ) : Promise < void > ;
60+ /**
61+ * Get the map's current viewport latitude and longitude bounds.
62+ *
63+ * @returns {LatLngBounds }
64+ */
65+ getMapBounds ( ) : Promise < LatLngBounds > ;
6066 /**
6167 * Sets the map viewport to contain the given bounds.
6268 * @param bounds The bounds to fit in the viewport.
You can’t perform that action at this time.
0 commit comments