Skip to content

Commit 4fb47b5

Browse files
chore: release 7.0.2 [skip ci]
1 parent 363f29e commit 4fb47b5

File tree

4 files changed

+52
-1
lines changed

4 files changed

+52
-1
lines changed

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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&lt;LatLngBounds&gt;</code>
667+
668+
--------------------
669+
670+
657671
### fitBounds(...)
658672

659673
```typescript
@@ -1166,9 +1180,28 @@ Array should contain between two and three elements.
11661180
The previous GeoJSON specification allowed more elements (e.g., which could be used to represent M values),
11671181
but 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

plugin/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [7.0.2](https://github.com/ionic-team/capacitor-google-maps/compare/@capacitor/[email protected]...@capacitor/[email protected]) (2025-04-29)
7+
8+
### Fixes
9+
* **android:** Replace events.removeFirst with events.removeAt(0) ([#50](https://github.com/ionic-team/capacitor-google-maps/pull/50))
10+
11+
612
# [7.0.1](https://github.com/ionic-team/capacitor-google-maps/compare/@capacitor/[email protected]...@capacitor/[email protected]) (2025-02-21)
713

814
### Refactor

plugin/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,6 +1180,18 @@ Array should contain between two and three elements.
11801180
The previous GeoJSON specification allowed more elements (e.g., which could be used to represent M values),
11811181
but the current specification only allows X, Y, and (optionally) Z to be defined.
11821182

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+
11831195
<code>number[]</code>
11841196

11851197

plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@capacitor/google-maps",
3-
"version": "7.0.1",
3+
"version": "7.0.2",
44
"description": "Google maps on Capacitor",
55
"main": "dist/plugin.cjs.js",
66
"module": "dist/esm/index.js",

0 commit comments

Comments
 (0)