forked from react-native-maps/react-native-maps
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix_crash_for_airmap_reference
* master: (31 commits) Wider Note column (prevent horisontal scroll) (react-native-maps#3130) replaced deprecated bridge.imageLoader calls with moduleForClass API (react-native-maps#3125) Implement onUserLocationChange in AIRMap (react-native-maps#2889) keep current mapType when taking snapshot (react-native-maps#3120) Add mapPadding on iOS maps (react-native-maps#3119) [iOS] Expose isAccessibilityElement as a prop (react-native-maps#3115) Add supportLibVersion safeguard in gradle build (react-native-maps#3106) [0.26.1] Release rn 0.60.5 support (react-native-maps#3020) "AIRMap" was not found in the UIManager IN "0.26.0" (react-native-maps#3103) [0.26.0] Release Add Heatmap back in (react-native-maps#3064) Fixes NPE while removing already removed marker. (react-native-maps#3032) Add flat property binding on Marker for iOS (react-native-maps#3051) Add heading to the onUserLocationChange listener (react-native-maps#3045) Add onDoublePress callback (react-native-maps#2937) Allow using onPanDrag while scrollEnabled=true (react-native-maps#2935) updating pods for compile error (react-native-maps#3011) add overlay onPress event (react-native-maps#3007) Fix playServicesVersion name in installation docs (react-native-maps#3016) ...
- Loading branch information
Showing
50 changed files
with
1,500 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# `<Geojson />` Component API | ||
|
||
## Props | ||
|
||
| Prop | Type | Default | Note | | ||
| --------- | ---- | ------------------------------------------------------ | ---- | | ||
| `geojson` | | [Geojson](https://geojson.org/) description of object. | | ||
|
||
## Example | ||
|
||
``` | ||
import React from 'react'; | ||
import MapView, {Geojson} from 'react-native-maps'; | ||
const myPlace = { | ||
type: 'FeatureCollection', | ||
features: [ | ||
{ | ||
type: 'Feature', | ||
properties: {}, | ||
geometry: { | ||
type: 'Point', | ||
coordinates: [64.165329, 48.844287], | ||
} | ||
} | ||
] | ||
}; | ||
const Map = props => ( | ||
<MapView> | ||
<Geojson geojson={myPlace} /> | ||
</MapView> | ||
); | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# `<Heatmap />` Component API | ||
|
||
## Props | ||
|
||
| Prop | Type | Default | Note | | ||
|---|---|---|---| | ||
| `points` | `Array<WeightedLatLng>` | | Array of heatmap entries to apply towards density. | ||
| `radius` | `Number` | `20` | The radius of the heatmap points in pixels, between 10 and 50. | ||
| `opacity` | `Number` | `0.7` | The opacity of the heatmap. | ||
| `gradient` | `Object` | | Heatmap gradient configuration (See below for *Gradient Config*). | ||
|
||
|
||
## Gradient Config | ||
|
||
[Android Doc](https://developers.google.com/maps/documentation/android-sdk/utility/heatmap#custom) | [iOS Doc](https://developers.google.com/maps/documentation/ios-sdk/utility/heatmap#customize) | ||
|
||
| Prop | Type | Default | Note | | ||
|---|---|---|---| | ||
| `colors` | `Array<String>` | | Colors (one or more) to use for gradient. | ||
| `startPoints` | `Array<Number>` | | Array of floating point values from 0 to 1 representing where each color starts. Array length must be equal to `colors` array length. | ||
| `colorMapSize` | `Number` | `256` | Resolution of color map -- number corresponding to the number of steps colors are interpolated into. | ||
|
||
|
||
## Types | ||
|
||
``` | ||
type WeightedLatLng = { | ||
latitude: Number; | ||
longitude: Number; | ||
weight?: Number; | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.