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
This commit is contained in:
parent
f5b2659f35
commit
22cc044a67
|
@ -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`.
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue