You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add initialCamera and camera props.
* Support camera and initialCamera properties on Android.
* Declare camera and initialCamera properties in JS.
* Add animateCamera, setCamera, getCamera on iOS/Mapkit.
Deprecate the old animateTo* methods and warn on use.
* Add an example for camera control.
* Add animateCamera, setCamera, getCamera on iOS/GMaps.
* Support setCamera, animateCamera, getCamera in Android.
* Fix eslint errors.
* Update documentation.
* Remove use of deprecated methods from examples.
* Fix crash in animateCamera() if duration not given.
* Add new methods and props to TypeScript typings.
* Fix bug in Android method map setup.
Copy file name to clipboardexpand all lines: docs/mapview.md
+29-4
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,8 @@
7
7
| `provider` | `string` | | The map framework to use. <br/><br/>Either `"google"` for GoogleMaps, otherwise `null` or `undefined` to use the native map framework (`MapKit` in iOS and `GoogleMaps` in android).
8
8
| `region` | `Region` | | The region to be displayed by the map. <br/><br/>The region is defined by the center coordinates and the span of coordinates to display.
9
9
| `initialRegion` | `Region` | | The initial region to be displayed by the map. Use this prop instead of `region` only if you don't want to control the viewport of the map besides the initial region.<br/><br/> Changing this prop after the component has mounted will not result in a region change.<br/><br/> This is similar to the `initialValue` prop of a text input.
10
+
| `camera` | `Camera` | | The camera view the map should display. If you use this, the `region` property is ignored.
11
+
| `initialCamera` | `Camera` | | Like `initialRegion`, use this prop instead of `camera` only if you don't want to control the viewport of the map besides the initial camera setting.<br/><br/> Changing this prop after the component has mounted will not result in a region change.<br/><br/> This is similar to the `initialValue` prop of a text input.
10
12
| `mapPadding` | `EdgePadding` | | Adds custom padding to each side of the map. Useful when map elements/markers are obscured. **Note** Google Maps only.
11
13
| `paddingAdjustmentBehavior` | 'always'\|'automatic'\|'never' | 'never' | Indicates how/when to affect padding with safe area insets (`GoogleMaps` in iOS only)
| `getCamera` | | Returns a `Camera` structure indicating the current camera configuration.
77
+
| `animateCamera` | `camera: Camera`, `{ duration: Number }` | Animate the camera to a new view. You can pass a partial camera object here; any property not given will remain unmodified.
78
+
| `setCamera` | `camera: Camera`, `{ duration: Number }` | Like `animateCamera`, but sets the new view instantly, without an animation.
0 commit comments