mirror of
https://github.com/status-im/react-native-mapbox-gl.git
synced 2026-08-27 19:11:15 +00:00
Add example for updateAnnotation
This commit is contained in:
@@ -113,6 +113,20 @@ var MapExample = React.createClass({
|
||||
}])}>
|
||||
Add new marker
|
||||
</Text>
|
||||
<Text style={styles.text} onPress={() => this.updateAnnotation(mapRef, {
|
||||
coordinates: [40.714541341726175,-74.00579452514648],
|
||||
'type': 'point',
|
||||
title: 'New Title!',
|
||||
subtitle: 'New Subtitle',
|
||||
annotationImage: {
|
||||
url: 'https://cldup.com/7NLZklp8zS.png',
|
||||
height: 25,
|
||||
width: 25
|
||||
},
|
||||
id: 'marker2'
|
||||
})}>
|
||||
Update marker2
|
||||
</Text>
|
||||
<Text style={styles.text} onPress={() => this.selectAnnotationAnimated(mapRef, 'marker1')}>
|
||||
Open marker1 popup
|
||||
</Text>
|
||||
|
||||
Reference in New Issue
Block a user