Skip to content

Commit fe2ae94

Browse files
committed
fix: align map animation defaults
1 parent c16eca0 commit fe2ae94

5 files changed

Lines changed: 13 additions & 13 deletions

File tree

android/src/main/java/com/rngooglemapsplus/RNGoogleMapsPlusStreetView.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class RNGoogleMapsPlusStreetView(
101101
view.setPanoramaCamera(
102102
camera.toStreetViewPanoramaCamera(current),
103103
animated ?: false,
104-
durationMs?.toInt() ?: 1000,
104+
durationMs?.toInt() ?: 3000,
105105
)
106106
}
107107

ios/RNGoogleMapsPlusStreetView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ final class RNGoogleMapsPlusStreetView: HybridRNGoogleMapsPlusStreetViewSpec {
6161
func setCamera(camera: RNStreetViewCamera, animated: Bool?, durationMs: Double?) {
6262
onMain {
6363
let cam = camera.toGMSPanoramaCamera(current: self.impl.currentCamera)
64-
self.impl.setCamera(cam, animated: animated ?? false, durationMs: durationMs ?? 1000)
64+
self.impl.setCamera(cam, animated: animated ?? false, durationMs: durationMs ?? 3000)
6565
}
6666
}
6767

src/RNGoogleMapsPlusStreetView.nitro.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export interface RNGoogleMapsPlusStreetViewMethods extends HybridViewMethods {
6969
* @param animated - Whether to animate.
7070
* @defaultValue `false`
7171
* @param durationMs - Animation duration in milliseconds.
72-
* @defaultValue `1000`
72+
* @defaultValue `3000`
7373
*/
7474
setCamera(
7575
camera: RNStreetViewCamera,

src/RNGoogleMapsPlusView.nitro.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export interface RNGoogleMapsPlusViewProps extends HybridViewProps {
5252

5353
/**
5454
* Enables 3D buildings.
55-
* @defaultValue `true`
55+
* @defaultValue `false`
5656
*/
5757
buildingEnabled?: boolean;
5858

@@ -64,7 +64,7 @@ export interface RNGoogleMapsPlusViewProps extends HybridViewProps {
6464

6565
/**
6666
* Enables indoor maps.
67-
* @defaultValue `true`
67+
* @defaultValue `false`
6868
*/
6969
indoorEnabled?: boolean;
7070

@@ -237,7 +237,7 @@ export interface RNGoogleMapsPlusViewMethods extends HybridViewMethods {
237237
* @param animated - Whether to animate.
238238
* @defaultValue `false`
239239
* @param durationMs - Animation duration in milliseconds.
240-
* @defaultValue `1000`
240+
* @defaultValue `3000`
241241
*/
242242
setCamera(
243243
camera: RNCameraUpdate,
@@ -256,7 +256,7 @@ export interface RNGoogleMapsPlusViewMethods extends HybridViewMethods {
256256
* @param animated - Whether to animate.
257257
* @defaultValue `false`
258258
* @param durationMs - Animation duration in milliseconds.
259-
* @defaultValue `1000`
259+
* @defaultValue `3000`
260260
*/
261261
setCameraToCoordinates(
262262
coordinates: RNLatLng[],
@@ -283,7 +283,7 @@ export interface RNGoogleMapsPlusViewMethods extends HybridViewMethods {
283283
* @param padding - Padding in logical units.
284284
* @defaultValue `0`
285285
* @param durationMs - Animation duration in milliseconds.
286-
* @defaultValue `1000`
286+
* @defaultValue `3000`
287287
* @param lockBounds - Restricts the camera to these bounds after animating.
288288
* @defaultValue `false`
289289
*/

src/types.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ export type RNMapUiSettings = {
5050

5151
/**
5252
* Shows the compass.
53-
* @defaultValue `true`
53+
* @defaultValue `false`
5454
*/
5555
compassEnabled?: boolean;
5656

5757
/**
5858
* Enables the indoor level picker.
59-
* @defaultValue `true`
59+
* @defaultValue `false`
6060
*/
6161
indoorLevelPickerEnabled?: boolean;
6262

@@ -65,13 +65,13 @@ export type RNMapUiSettings = {
6565
*
6666
* Android: supported.
6767
* iOS: not supported.
68-
* @defaultValue `true`
68+
* @defaultValue `false`
6969
*/
7070
mapToolbarEnabled?: boolean;
7171

7272
/**
7373
* Enables the "My Location" button.
74-
* @defaultValue `true`
74+
* @defaultValue `false`
7575
*/
7676
myLocationButtonEnabled?: boolean;
7777

@@ -104,7 +104,7 @@ export type RNMapUiSettings = {
104104
*
105105
* Android: supported.
106106
* iOS: not supported.
107-
* @defaultValue `true`
107+
* @defaultValue `false`
108108
*/
109109
zoomControlsEnabled?: boolean;
110110

0 commit comments

Comments
 (0)