Skip to content

Commit

Permalink
Update docs from maps rnmapbox/maps@21b28da
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 10, 2023
1 parent 6c3db72 commit 09d705c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
10 changes: 10 additions & 0 deletions docs/components/MapView.md
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,16 @@ The emitted frequency of regiondidchange events
_defaults to:_ `500`


### deselectAnnotationOnTap

```tsx
boolean
```
Set to true to deselect any selected annotation when the map is tapped. If set to true you will not receive
the onPress event for the taps that deselect the annotation. Default is false.

[Show Point Annotations](../examples/Annotations/ShowPointAnnotation)




Expand Down
2 changes: 1 addition & 1 deletion docs/components/PointAnnotation.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,4 +181,4 @@ On v10 and pre v10 android point annotation is rendered offscreen with a canvas




[Show Point Annotations](../examples/Annotations/ShowPointAnnotation)
3 changes: 2 additions & 1 deletion docs/examples/Annotations/ShowPointAnnotation.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Show Point Annotations
tags: [PointAnnotation]
tags: [PointAnnotation, MapView#deselectAnnotationOnTap, PointAnnotation#refresh, getAnnotationsLayerID]
custom_props:
example_rel_path: Annotations/ShowPointAnnotation.tsx
custom_edit_url: https://github.com/rnmapbox/maps/tree/master/example/src/examples/Annotations/ShowPointAnnotation.tsx
Expand Down Expand Up @@ -150,6 +150,7 @@ const ShowPointAnnotation = () => {
]);
}}
style={styles.matchParent}
deselectAnnotationOnTap={true}
>
<Camera
defaultSettings={{ centerCoordinate: coordinates[0], zoomLevel: 16 }}
Expand Down

0 comments on commit 09d705c

Please sign in to comment.