Skip to content

Commit

Permalink
Merge pull request #3 from 2gis/change-user-location-button-default-v…
Browse files Browse the repository at this point in the history
…alue

Change "user location button" default value
  • Loading branch information
alexHlebnikov authored Aug 12, 2016
2 parents 9511597 + 2084e3d commit 797b578
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public void setShowsUserLocation(AirMapView view, boolean showUserLocation) {
view.setShowsUserLocation(showUserLocation);
}

@ReactProp(name = "showsUserLocationButton", defaultBoolean = false)
@ReactProp(name = "showsUserLocationButton", defaultBoolean = true)
public void setShowsUserLocationButton(AirMapView view, boolean showUserLocationButton) {
view.setShowsUserLocationButton(showUserLocationButton);
}
Expand Down
2 changes: 1 addition & 1 deletion components/MapView.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ var MapView = React.createClass({

/**
* If `true` the user location button will be shown in the right corner of the map.
* Default value is `false`. This only works if
* Default value is `true`. This only works if
* `showsUserLocation` is true and the user has shared their location.
*
* @platform android
Expand Down
2 changes: 1 addition & 1 deletion docs/mapview.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
| `initialRegion` | `Region` | | The initial region to be displayed by the map. Use this prop instead of `region` only if you don't want to control the viewport of the map besides the initial region.<br/><br/> Changing this prop after the component has mounted will not result in a region change.<br/><br/> This is similar to the `initialValue` prop of a text input.
| `mapType` | `String` | `"standard"` | The map type to be displayed. <br/><br/> - standard: standard road map (default)<br/> - satellite: satellite view<br/> - hybrid: satellite view with roads and points of interest overlayed<br/> - terrain: (Android only) topographic view
| `showsUserLocation` | `Boolean` | `false` | If `true` the app will ask for the user's location. **NOTE**: You need to add `NSLocationWhenInUseUsageDescription` key in Info.plist to enable geolocation, otherwise it is going to *fail silently*!
| `showsUserLocationButton` | `Boolean` | `false` | (Android only) If `true` the user location button will be shown in the right corner of the map. Default value is `false`. This only works if `showsUserLocation` is true and the user has shared their location.
| `showsUserLocationButton` | `Boolean` | `false` | (Android only) If `true` the user location button will be shown in the right corner of the map. Default value is `true`. This only works if `showsUserLocation` is true and the user has shared their location.
| `followsUserLocation` | `Boolean` | `false` | If `true` the map will focus on the user's location. This only works if `showsUserLocation` is true and the user has shared their location.
| `showsPointsOfInterest` | `Boolean` | `true` | If `false` points of interest won't be displayed on the map.
| `showsCompass` | `Boolean` | `true` | If `false` compass won't be displayed on the map.
Expand Down

0 comments on commit 797b578

Please sign in to comment.