From 22cc044a67ae716a29451c7980dd189ca6f57323 Mon Sep 17 00:00:00 2001 From: Andr3wHur5t Date: Thu, 29 Oct 2015 10:56:27 -0700 Subject: [PATCH] Added support for toggling POI visibility on iOS map view. Summary: Adds support for toggling points of interests visibility on iOS map view; resolving #3244 Closes https://github.com/facebook/react-native/pull/3631 Reviewed By: svcscm Differential Revision: D2575148 Pulled By: nicklockwood fb-gh-sync-id: 0d0ee9d3b4726aa40bc439bc2f36d1db4cae1147 --- Libraries/Components/MapView/MapView.js | 7 +++++++ React/Views/RCTMapManager.m | 1 + 2 files changed, 8 insertions(+) diff --git a/Libraries/Components/MapView/MapView.js b/Libraries/Components/MapView/MapView.js index ac715e896..37c11187e 100644 --- a/Libraries/Components/MapView/MapView.js +++ b/Libraries/Components/MapView/MapView.js @@ -80,6 +80,13 @@ var MapView = React.createClass({ */ showsUserLocation: React.PropTypes.bool, + /** + * If `false` points of interest won't be displayed on the map. + * Default value is `true`. + * @platform ios + */ + showsPointsOfInterest: React.PropTypes.bool, + /** * If `false` the user won't be able to pinch/zoom the map. * Default value is `true`. diff --git a/React/Views/RCTMapManager.m b/React/Views/RCTMapManager.m index f4ee06f98..44dd0743e 100644 --- a/React/Views/RCTMapManager.m +++ b/React/Views/RCTMapManager.m @@ -37,6 +37,7 @@ RCT_EXPORT_MODULE() } RCT_EXPORT_VIEW_PROPERTY(showsUserLocation, BOOL) +RCT_EXPORT_VIEW_PROPERTY(showsPointsOfInterest, BOOL) RCT_EXPORT_VIEW_PROPERTY(zoomEnabled, BOOL) RCT_EXPORT_VIEW_PROPERTY(rotateEnabled, BOOL) RCT_EXPORT_VIEW_PROPERTY(pitchEnabled, BOOL)