@@ -319,6 +319,7 @@ export default MyMap;
319319* [ ` enableAccessibilityElements(...) ` ] ( #enableaccessibilityelements )
320320* [ ` enableCurrentLocation(...) ` ] ( #enablecurrentlocation )
321321* [ ` setPadding(...) ` ] ( #setpadding )
322+ * [ ` getMapBounds() ` ] ( #getmapbounds )
322323* [ ` fitBounds(...) ` ] ( #fitbounds )
323324* [ ` setOnBoundsChangedListener(...) ` ] ( #setonboundschangedlistener )
324325* [ ` setOnCameraIdleListener(...) ` ] ( #setoncameraidlelistener )
@@ -654,6 +655,19 @@ setPadding(padding: MapPadding) => Promise<void>
654655--------------------
655656
656657
658+ ### getMapBounds()
659+
660+ ``` typescript
661+ getMapBounds () => Promise < LatLngBounds >
662+ ```
663+
664+ Get the map's current viewport latitude and longitude bounds.
665+
666+ ** Returns:** <code >Promise< ; LatLngBounds> ; </code >
667+
668+ --------------------
669+
670+
657671### fitBounds(...)
658672
659673``` typescript
@@ -1166,9 +1180,28 @@ Array should contain between two and three elements.
11661180The previous GeoJSON specification allowed more elements (e.g., which could be used to represent M values),
11671181but the current specification only allows X, Y, and (optionally) Z to be defined.
11681182
1183+ Note: the type will not be narrowed down to ` [number, number] | [number, number, number] ` due to
1184+ marginal benefits and the large impact of breaking change.
1185+
1186+ See previous discussions on the type narrowing:
1187+ - {@link https://github.com/DefinitelyTyped/DefinitelyTyped/pull/21590|Nov 2017}
1188+ - {@link https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/67773|Dec 2023}
1189+ - {@link https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/71441| Dec 2024}
1190+
1191+ One can use a
1192+ {@link https://www.typescriptlang.org/docs/handbook/2/narrowing.html#using-type-predicates|user-defined type guard that returns a type predicate}
1193+ to determine if a position is a 2D or 3D position.
1194+
11691195<code >number[ ] </code >
11701196
11711197
1198+ #### Marker
1199+
1200+ Supports markers of either either "legacy" or "advanced" types.
1201+
1202+ <code >google.maps.<a href =" #marker " >Marker</a > | google.maps.marker.AdvancedMarkerElement</code >
1203+
1204+
11721205### Enums
11731206
11741207
0 commit comments