mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Add map type property (standard, satellite, hybrid) to MapView.
Summary: Here is an example project demonstrating this pull request: [AKMapView](https://github.com/adamkrell/AKMapView) Closes https://github.com/facebook/react-native/pull/1503 Github Author: Adam Krell <akrell@bethanyassociates.com> Test Plan: Imported from GitHub, without a `Test Plan:` line.
This commit is contained in:
committed by
Spencer Ahrens
parent
8d6d0ec4a4
commit
373854a47f
@@ -82,6 +82,19 @@ var MapView = React.createClass({
|
||||
*/
|
||||
scrollEnabled: React.PropTypes.bool,
|
||||
|
||||
/**
|
||||
* The map type to be displayed.
|
||||
*
|
||||
* - standard: standard road map (default)
|
||||
* - satellite: satellite view
|
||||
* - hybrid: satellite view with roads and points of interest overlayed
|
||||
*/
|
||||
mapType: React.PropTypes.oneOf([
|
||||
'standard',
|
||||
'satellite',
|
||||
'hybrid',
|
||||
]),
|
||||
|
||||
/**
|
||||
* The region to be displayed by the map.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user