Add example for updateAnnotation

This commit is contained in:
Christopher Dro
2016-01-08 12:41:11 -08:00
parent 89226adbb6
commit fd396622c8
+14
View File
@@ -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>