diff --git a/docs/mapview.html b/docs/mapview.html index 0f379baff4d..3dbaec7953f 100644 --- a/docs/mapview.html +++ b/docs/mapview.html @@ -8,12 +8,13 @@ the map, the camera’s heading angle is used to rotate the plane of the map around its center point. When this property is set to false, the camera’s heading angle is ignored and the map is always oriented so that true north is situated at the top of the map view

scrollEnabled bool #

If false the user won't be able to change the map region being displayed. -Default value is true.

showsUserLocation bool #

If true the app will ask for the user's location and focus on it. -Default value is false.

NOTE: You need to add NSLocationWhenInUseUsageDescription key in -Info.plist to enable geolocation, otherwise it is going -to fail silently!

style View#style #

Used to style and layout the MapView. See StyleSheet.js and +Default value is true.

showsUserLocation bool #

If true the app will ask for the user's location and display it on +the map. Default value is false.

NOTE: on iOS, you need to add the NSLocationWhenInUseUsageDescription +key in Info.plist to enable geolocation, otherwise it will fail silently.

style View#style #

Used to style and layout the MapView. See StyleSheet.js and ViewStylePropTypes.js for more info.

zoomEnabled bool #

If false the user won't be able to pinch/zoom the map. -Default value is true.

androidactive bool #

iosannotations [{latitude: number, longitude: number, animateDrop: bool, draggable: bool, onDragStateChange: function, title: string, subtitle: string, leftCalloutView: element, rightCalloutView: element, detailCalloutView: element, tintColor: ColorPropType, image: Image.propTypes.source, view: element, id: string, hasLeftCallout: bool, hasRightCallout: bool, onLeftCalloutPress: function, onRightCalloutPress: function}] #

Map annotations with title/subtitle.

ioslegalLabelInsets {top: number, left: number, bottom: number, right: number} #

Insets for the map's legal label, originally at bottom left of the map. +Default value is true.

androidactive bool #

iosannotations [{latitude: number, longitude: number, animateDrop: bool, draggable: bool, onDragStateChange: function, title: string, subtitle: string, leftCalloutView: element, rightCalloutView: element, detailCalloutView: element, tintColor: ColorPropType, image: Image.propTypes.source, view: element, id: string, hasLeftCallout: bool, hasRightCallout: bool, onLeftCalloutPress: function, onRightCalloutPress: function}] #

Map annotations with title/subtitle.

iosfollowUserLocation bool #

If true the map will follow the user's location whenever it changes. +Note that this has no effect unless showsUserLocation is enabled. +Default value is true.

ioslegalLabelInsets {top: number, left: number, bottom: number, right: number} #

Insets for the map's legal label, originally at bottom left of the map. See EdgeInsetsPropType.js for more information.

iosmapType enum('standard', 'satellite', 'hybrid') #

The map type to be displayed.

iosmaxDelta number #

Maximum size of area that can be displayed.

iosminDelta number #

Minimum size of area that can be displayed.

iosoverlays [{coordinates: [{latitude: number, longitude: number}], lineWidth: number, strokeColor: ColorPropType, fillColor: ColorPropType, id: string}] #

Map overlays

iosshowsCompass bool #

If false compass won't be displayed on the map. Default value is true.

iosshowsPointsOfInterest bool #

If false points of interest won't be displayed on the map. Default value is true.

Edit on GitHubExamples #

'use strict'; @@ -293,9 +294,15 @@ exports.examples } }, { - title: 'Map shows user location', + title: 'showsUserLocation + followUserLocation', render() { - return <MapView style={styles.map} showsUserLocation={true} />; + return ( + <MapView + style={styles.map} + showsUserLocation={true} + followUserLocation={true} + /> + ); } }, {