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' of https://github.com/airbnb/react-native-maps …
…into upstream-update * 'master' of https://github.com/airbnb/react-native-maps: v0.17.0 Update index.d.ts v0.16.4 [MapMarker] fix android release crash on custom marker (react-native-maps#1643) Add support for animateToViewingAngle and animateToBearing for Android Bump 0.16.3 Revert "[MapView] revert initialRegion change (react-native-maps#1613)" [MapView] revert initialRegion change (react-native-maps#1613) Added missing satellite option for iOS Google Maps (react-native-maps#1603) Remove legalNotice from android AirMapModule As per https://developers.google.com/android/reference/com/google/android/gms/common/GooglePlayServicesUtil this information does not need to be displayed in app. Set initial region on view (react-native-maps#1579) Added Typescript Definitions Updated "showsIndoorLevelPicker" documentation. Added [iOS / Google Maps] support for showsIndoorLevelPicker. Fall back to View.propTypes if ViewPropTypes is not available (react-native-maps#1473) (react-native-maps#1474) fixe mistakes on circle.md (react-native-maps#1584) Add support for AirMap (Native IOS Maps) as suggested on the PR comments. Adds support to animateToBearing and animateToViewingAngle functions on IOS. fix rare android crashes when map size is 0 Remove caret from "react": "^16.0.0-alpha.12"
- Loading branch information
Showing
17 changed files
with
375 additions
and
24 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
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,156 @@ | ||
import * as React from 'react'; | ||
|
||
interface MapViewProps { | ||
provider?: 'google'; | ||
style: any; | ||
customMapStyle?: any[]; | ||
customMapStyleString?: string; | ||
showsUserLocation?: boolean; | ||
userLocationAnnotationTitle?: string; | ||
showsMyLocationButton?: boolean; | ||
followsUserLocation?: boolean; | ||
showsPointsOfInterest?: boolean; | ||
showsCompass?: boolean; | ||
zoomEnabled?: boolean; | ||
rotateEnabled?: boolean; | ||
cacheEnabled?: boolean; | ||
loadingEnabled?: boolean; | ||
loadingBackgroundColor?: any; | ||
loadingIndicatorColor?: any; | ||
scrollEnabled?: boolean; | ||
pitchEnabled?: boolean; | ||
toolbarEnabled?: boolean; | ||
moveOnMarkerPress?: boolean; | ||
showsScale?: boolean; | ||
showsBuildings?: boolean; | ||
showsTraffic?: boolean; | ||
showsIndoors?: boolean; | ||
showsIndoorLevelPicker?: boolean; | ||
mapType?: 'standard' | 'satellite' | 'hybrid' | 'terrain' | 'none'; | ||
region?: { latitude: number; longitude: number; latitudeDelta: number; longitudeDelta: number; }; | ||
initialRegion?: { latitude: number; longitude: number; latitudeDelta: number; longitudeDelta: number; }; | ||
liteMode?: boolean; | ||
maxDelta?: number; | ||
minDelta?: number; | ||
legalLabelInsets?: any; | ||
onChange?: Function; | ||
onMapReady?: Function; | ||
onRegionChange?: Function; | ||
onRegionChangeComplete?: Function; | ||
onPress?: Function; | ||
onLayout?: Function; | ||
onLongPress?: Function; | ||
onPanDrag?: Function; | ||
onMarkerPress?: Function; | ||
onMarkerSelect?: Function; | ||
onMarkerDeselect?: Function; | ||
onCalloutPress?: Function; | ||
onMarkerDragStart?: Function; | ||
onMarkerDrag?: Function; | ||
onMarkerDragEnd?: Function; | ||
minZoomLevel?: number; | ||
maxZoomLevel?: number; | ||
} | ||
|
||
declare class MapView extends React.Component<MapViewProps, any> { | ||
static Animated: any; | ||
static AnimatedRegion: any; | ||
} | ||
|
||
declare namespace MapView { | ||
|
||
type LineCapType = 'butt' | 'round' | 'square'; | ||
type LineJoinType = 'miter' | 'round' | 'bevel'; | ||
|
||
interface MarkerProps { | ||
identifier?: string; | ||
reuseIdentifier?: string; | ||
title?: string; | ||
description?: string; | ||
image?: any; | ||
opacity?: number; | ||
pinColor?: string; | ||
coordinate: { latitude: number; longitude: number }; | ||
centerOffset?: { x: number; y: number }; | ||
calloutOffset?: { x: number; y: number }; | ||
anchor?: { x: number; y: number }; | ||
calloutAnchor?: { x: number; y: number }; | ||
flat?: boolean; | ||
draggable?: boolean; | ||
onPress?: Function; | ||
onSelect?: Function; | ||
onDeselect?: Function; | ||
onCalloutPress?: Function; | ||
onDragStart?: Function; | ||
onDrag?: Function; | ||
onDragEnd?: Function; | ||
zIndex?: number; | ||
} | ||
|
||
interface MapPolylineProps { | ||
coordinates?: { latitude: number; longitude: number; }[]; | ||
onPress?: Function; | ||
tappable?: boolean; | ||
fillColor?: string; | ||
strokeWidth?: number; | ||
strokeColor?: string; | ||
zIndex?: number; | ||
lineCap?: LineCapType; | ||
lineJoin?: LineJoinType; | ||
miterLimit?: number; | ||
geodesic?: boolean; | ||
lineDashPhase?: number; | ||
lineDashPattern?: number[]; | ||
} | ||
|
||
interface MapPolygonProps { | ||
coordinates?: { latitude: number; longitude: number; }[]; | ||
holes?: { latitude: number; longitude: number; }[][]; | ||
onPress?: Function; | ||
tappable?: boolean; | ||
strokeWidth?: number; | ||
strokeColor?: string; | ||
fillColor?: string; | ||
zIndex?: number; | ||
lineCap?: LineCapType; | ||
lineJoin?: LineJoinType; | ||
miterLimit?: number; | ||
geodesic?: boolean; | ||
lineDashPhase?: number; | ||
lineDashPattern?: number[]; | ||
} | ||
|
||
interface MapCircleProps { | ||
center: { latitude: number; longitude: number }; | ||
radius: number; | ||
onPress?: Function; | ||
strokeWidth?: number; | ||
strokeColor?: string; | ||
fillColor?: string; | ||
zIndex?: number; | ||
lineCap?: LineCapType; | ||
lineJoin?: LineJoinType; | ||
miterLimit?: number; | ||
lineDashPhase?: number; | ||
lineDashPattern?: number[]; | ||
} | ||
|
||
interface MapUrlTitleProps { | ||
urlTemplate: string; | ||
zIndex?: number; | ||
} | ||
|
||
interface MapCalloutProps { | ||
tooltip?: boolean; | ||
onPress?: Function; | ||
} | ||
|
||
export class Marker extends React.Component<MarkerProps, any> {} | ||
export class Polyline extends React.Component<MapPolylineProps, any> {} | ||
export class Polygon extends React.Component<MapPolygonProps, any> {} | ||
export class Circle extends React.Component<MapCircleProps, any> {} | ||
export class UrlTile extends React.Component<MapUrlTitleProps, any> {} | ||
export class Callout extends React.Component<MapCalloutProps, any> {} | ||
} | ||
|
||
export = 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
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
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.