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 Android support for onPoiClick
* add example of onPoiClick event handling
* lint
* typo
* add support for GM on IOS
* Update docs since onPoiClick is now available on Android and IOS.
The MapView can accept an `AnimatedRegion` value as its `region` prop. This allows you to utilize the Animated API to control the map's center and zoom.
Copy file name to clipboardexpand all lines: docs/mapview.md
+1
Original file line number
Diff line number
Diff line change
@@ -51,6 +51,7 @@ To access event data, you will need to use `e.nativeEvent`. For example, `onPres
51
51
| `onUserLocationChange` | `{ coordinate: LatLng }` | Callback that is called when the underlying map figures our users current location. Make sure **showsUserLocation** is set to *true* and that the provider is `"google"`.
52
52
| `onPress` | `{ coordinate: LatLng, position: Point }` | Callback that is called when user taps on the map.
53
53
| `onPanDrag` | `{ coordinate: LatLng, position: Point }` | Callback that is called when user presses and drags the map. **NOTE**: for iOS `scrollEnabled` should be set to false to trigger the event
54
+
| `onPoiClick` | `{ coordinate: LatLng, position: Point, placeId: string, name: string }` | Callback that is called when user click on a POI.
54
55
| `onLongPress` | `{ coordinate: LatLng, position: Point }` | Callback that is called when user makes a "long press" somewhere on the map.
55
56
| `onMarkerPress` | | Callback that is called when a marker on the map is tapped by the user.
56
57
| `onMarkerSelect` | | Callback that is called when a marker on the map becomes selected. This will be called when the callout for that marker is about to be shown. **Note**: iOS only.
0 commit comments