From fd396622c8d6e5d32d408c86f2ae510c3fb9b9cc Mon Sep 17 00:00:00 2001 From: Christopher Dro Date: Fri, 8 Jan 2016 12:41:11 -0800 Subject: [PATCH] Add example for updateAnnotation --- ios/example.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ios/example.js b/ios/example.js index d22ed26..be6ea7c 100644 --- a/ios/example.js +++ b/ios/example.js @@ -113,6 +113,20 @@ var MapExample = React.createClass({ }])}> Add new marker + 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 + this.selectAnnotationAnimated(mapRef, 'marker1')}> Open marker1 popup