Skip to content

Commit cef8701

Browse files
committed
Update index.ios.ts
1 parent 1718d84 commit cef8701

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/google-maps/index.ios.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,15 @@ export class CameraPosition implements ICameraPosition {
131131
set zoom(value) {
132132
this.#native = GMSCameraPosition.cameraWithTargetZoomBearingViewingAngle(this.native.target, value, this.native.bearing, this.native.viewingAngle);
133133
}
134+
135+
toJSON() {
136+
return {
137+
target: this.target,
138+
tilt: this.tilt,
139+
bearing: this.bearing,
140+
zoom: this.zoom,
141+
};
142+
}
134143
}
135144

136145
@ObjCClass(GMSMapViewDelegate)

0 commit comments

Comments
 (0)