react-native-maps 1.9.0 → 1.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/build.gradle +3 -3
- package/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/ios/AirGoogleMaps/AIRGoogleMapMarker.m +2 -2
- package/lib/Geojson.d.ts +2 -2
- package/lib/MapCallout.d.ts +1 -1
- package/lib/MapCalloutSubview.d.ts +1 -1
- package/lib/MapCircle.d.ts +1 -1
- package/lib/MapHeatmap.d.ts +1 -1
- package/lib/MapLocalTile.d.ts +1 -1
- package/lib/MapMarker.d.ts +1 -5
- package/lib/MapMarker.js +0 -5
- package/lib/MapOverlay.d.ts +1 -1
- package/lib/MapPolygon.d.ts +1 -1
- package/lib/MapPolyline.d.ts +1 -1
- package/lib/MapUrlTile.d.ts +1 -1
- package/lib/MapView.d.ts +1 -5
- package/lib/MapView.js +0 -5
- package/lib/MapWMSTile.d.ts +1 -1
- package/lib/index.d.ts +2 -2
- package/package.json +13 -10
- package/react-native-google-maps.podspec +1 -1
package/android/build.gradle
CHANGED
|
@@ -12,7 +12,7 @@ buildscript {
|
|
|
12
12
|
mavenCentral()
|
|
13
13
|
}
|
|
14
14
|
dependencies {
|
|
15
|
-
classpath("com.android.tools.build:gradle:
|
|
15
|
+
classpath("com.android.tools.build:gradle:7.6.3")
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -25,11 +25,11 @@ android {
|
|
|
25
25
|
namespace "com.rnmaps.maps"
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
compileSdk safeExtGet('compileSdkVersion', 34)
|
|
29
29
|
|
|
30
30
|
defaultConfig {
|
|
31
31
|
minSdkVersion safeExtGet('minSdkVersion', 21)
|
|
32
|
-
targetSdkVersion safeExtGet('targetSdkVersion',
|
|
32
|
+
targetSdkVersion safeExtGet('targetSdkVersion', 34)
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
distributionBase=GRADLE_USER_HOME
|
|
2
2
|
distributionPath=wrapper/dists
|
|
3
|
-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.
|
|
3
|
+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
|
|
4
4
|
zipStoreBase=GRADLE_USER_HOME
|
|
5
5
|
zipStorePath=wrapper/dists
|
|
@@ -97,12 +97,12 @@ CGRect unionRect(CGRect a, CGRect b) {
|
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
- (void)removeReactSubview:(id<RCTComponent>)dummySubview {
|
|
100
|
-
|
|
100
|
+
UIView *subview = [dummySubview isKindOfClass:[AIRDummyView class]] ? ((AIRDummyView *)dummySubview).view : (UIView *)dummySubview;
|
|
101
101
|
|
|
102
102
|
if ([subview isKindOfClass:[AIRGoogleMapCallout class]]) {
|
|
103
103
|
self.calloutView = nil;
|
|
104
104
|
} else {
|
|
105
|
-
[
|
|
105
|
+
[subview removeFromSuperview];
|
|
106
106
|
}
|
|
107
107
|
[super removeReactSubview:(UIView*)dummySubview];
|
|
108
108
|
}
|
package/lib/Geojson.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { Feature, FeatureCollection, Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon } from 'geojson';
|
|
3
3
|
import { MapMarkerProps as MarkerProps } from './MapMarker';
|
|
4
4
|
import { MapPolygonProps as PolygonProps } from './MapPolygon';
|
|
@@ -151,7 +151,7 @@ export type GeojsonProps = {
|
|
|
151
151
|
*/
|
|
152
152
|
zIndex?: MarkerProps['zIndex'] | PolygonProps['zIndex'] | PolylineProps['zIndex'];
|
|
153
153
|
};
|
|
154
|
-
declare const Geojson: (props: GeojsonProps) => JSX.Element;
|
|
154
|
+
declare const Geojson: (props: GeojsonProps) => React.JSX.Element;
|
|
155
155
|
export default Geojson;
|
|
156
156
|
type OverlayPressEvent = {
|
|
157
157
|
type: AnyPointOverlay['type'] | AnyLineStringOverlay['type'] | AnyPolygonOverlay['type'];
|
package/lib/MapCallout.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export declare class MapCallout extends React.Component<MapCalloutProps> {
|
|
|
34
34
|
getNativeComponent: () => NativeComponent<NativeProps>;
|
|
35
35
|
getMapManagerCommand: (name: string) => MapManagerCommand;
|
|
36
36
|
getUIManagerCommand: (name: string) => UIManagerCommand;
|
|
37
|
-
render(): JSX.Element;
|
|
37
|
+
render(): React.JSX.Element;
|
|
38
38
|
}
|
|
39
39
|
declare const _default: typeof MapCallout;
|
|
40
40
|
export default _default;
|
|
@@ -17,7 +17,7 @@ export declare class MapCalloutSubview extends React.Component<MapCalloutSubview
|
|
|
17
17
|
getNativeComponent: () => NativeComponent<NativeProps>;
|
|
18
18
|
getMapManagerCommand: (name: string) => MapManagerCommand;
|
|
19
19
|
getUIManagerCommand: (name: string) => UIManagerCommand;
|
|
20
|
-
render(): JSX.Element;
|
|
20
|
+
render(): React.JSX.Element;
|
|
21
21
|
}
|
|
22
22
|
declare const _default: typeof MapCalloutSubview;
|
|
23
23
|
export default _default;
|
package/lib/MapCircle.d.ts
CHANGED
|
@@ -111,7 +111,7 @@ export declare class MapCircle extends React.Component<MapCircleProps> {
|
|
|
111
111
|
private circle;
|
|
112
112
|
constructor(props: MapCircleProps);
|
|
113
113
|
setNativeProps(props: Partial<NativeProps>): void;
|
|
114
|
-
render(): JSX.Element;
|
|
114
|
+
render(): React.JSX.Element;
|
|
115
115
|
}
|
|
116
116
|
declare const _default: typeof MapCircle;
|
|
117
117
|
export default _default;
|
package/lib/MapHeatmap.d.ts
CHANGED
|
@@ -69,7 +69,7 @@ export declare class MapHeatmap extends React.Component<MapHeatmapProps> {
|
|
|
69
69
|
private heatmap;
|
|
70
70
|
constructor(props: MapHeatmapProps);
|
|
71
71
|
setNativeProps(props: Partial<NativeProps>): void;
|
|
72
|
-
render(): JSX.Element;
|
|
72
|
+
render(): React.JSX.Element;
|
|
73
73
|
}
|
|
74
74
|
declare const _default: typeof MapHeatmap;
|
|
75
75
|
export default _default;
|
package/lib/MapLocalTile.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export declare class MapLocalTile extends React.Component<MapLocalTileProps> {
|
|
|
29
29
|
getNativeComponent: () => NativeComponent<NativeProps>;
|
|
30
30
|
getMapManagerCommand: (name: string) => MapManagerCommand;
|
|
31
31
|
getUIManagerCommand: (name: string) => UIManagerCommand;
|
|
32
|
-
render(): JSX.Element;
|
|
32
|
+
render(): React.JSX.Element;
|
|
33
33
|
}
|
|
34
34
|
declare const _default: typeof MapLocalTile;
|
|
35
35
|
export default _default;
|
package/lib/MapMarker.d.ts
CHANGED
|
@@ -276,17 +276,13 @@ export declare class MapMarker extends React.Component<MapMarkerProps> {
|
|
|
276
276
|
static Animated: Animated.AnimatedComponent<typeof MapMarker>;
|
|
277
277
|
private marker;
|
|
278
278
|
constructor(props: MapMarkerProps);
|
|
279
|
-
/**
|
|
280
|
-
* @deprecated Will be removed in v2.0.0, as setNativeProps is not a thing in fabric.
|
|
281
|
-
* See https://reactnative.dev/docs/new-architecture-library-intro#migrating-off-setnativeprops
|
|
282
|
-
*/
|
|
283
279
|
setNativeProps(props: Partial<NativeProps>): void;
|
|
284
280
|
showCallout(): void;
|
|
285
281
|
hideCallout(): void;
|
|
286
282
|
redrawCallout(): void;
|
|
287
283
|
animateMarkerToCoordinate(coordinate: LatLng, duration?: number): void;
|
|
288
284
|
redraw(): void;
|
|
289
|
-
render(): JSX.Element;
|
|
285
|
+
render(): React.JSX.Element;
|
|
290
286
|
}
|
|
291
287
|
declare const _default: typeof MapMarker;
|
|
292
288
|
export default _default;
|
package/lib/MapMarker.js
CHANGED
|
@@ -42,12 +42,7 @@ class MapMarker extends React.Component {
|
|
|
42
42
|
this.redrawCallout = this.redrawCallout.bind(this);
|
|
43
43
|
this.animateMarkerToCoordinate = this.animateMarkerToCoordinate.bind(this);
|
|
44
44
|
}
|
|
45
|
-
/**
|
|
46
|
-
* @deprecated Will be removed in v2.0.0, as setNativeProps is not a thing in fabric.
|
|
47
|
-
* See https://reactnative.dev/docs/new-architecture-library-intro#migrating-off-setnativeprops
|
|
48
|
-
*/
|
|
49
45
|
setNativeProps(props) {
|
|
50
|
-
// setNativeProps is deprecated and will be removed in next major release
|
|
51
46
|
// @ts-ignore
|
|
52
47
|
this.marker.current?.setNativeProps(props);
|
|
53
48
|
}
|
package/lib/MapOverlay.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ export declare class MapOverlay extends React.Component<MapOverlayProps> {
|
|
|
60
60
|
getMapManagerCommand: (name: string) => MapManagerCommand;
|
|
61
61
|
getUIManagerCommand: (name: string) => UIManagerCommand;
|
|
62
62
|
static Animated: Animated.AnimatedComponent<typeof MapOverlay>;
|
|
63
|
-
render(): JSX.Element;
|
|
63
|
+
render(): React.JSX.Element;
|
|
64
64
|
}
|
|
65
65
|
type Coordinate = [number, number];
|
|
66
66
|
type OverlayPressEvent = NativeSyntheticEvent<{
|
package/lib/MapPolygon.d.ts
CHANGED
|
@@ -134,7 +134,7 @@ export declare class MapPolygon extends React.Component<MapPolygonProps> {
|
|
|
134
134
|
private polygon;
|
|
135
135
|
constructor(props: MapPolygonProps);
|
|
136
136
|
setNativeProps(props: Partial<MapPolygonProps>): void;
|
|
137
|
-
render(): JSX.Element;
|
|
137
|
+
render(): React.JSX.Element;
|
|
138
138
|
}
|
|
139
139
|
declare const _default: typeof MapPolygon;
|
|
140
140
|
export default _default;
|
package/lib/MapPolyline.d.ts
CHANGED
|
@@ -135,7 +135,7 @@ export declare class MapPolyline extends React.Component<MapPolylineProps> {
|
|
|
135
135
|
private polyline;
|
|
136
136
|
constructor(props: MapPolylineProps);
|
|
137
137
|
setNativeProps(props: Partial<NativeProps>): void;
|
|
138
|
-
render(): JSX.Element;
|
|
138
|
+
render(): React.JSX.Element;
|
|
139
139
|
}
|
|
140
140
|
declare const _default: typeof MapPolyline;
|
|
141
141
|
export default _default;
|
package/lib/MapUrlTile.d.ts
CHANGED
|
@@ -128,7 +128,7 @@ export declare class MapUrlTile extends React.Component<MapUrlTileProps> {
|
|
|
128
128
|
getNativeComponent: () => NativeComponent<NativeProps>;
|
|
129
129
|
getMapManagerCommand: (name: string) => MapManagerCommand;
|
|
130
130
|
getUIManagerCommand: (name: string) => UIManagerCommand;
|
|
131
|
-
render(): JSX.Element;
|
|
131
|
+
render(): React.JSX.Element;
|
|
132
132
|
}
|
|
133
133
|
declare const _default: typeof MapUrlTile;
|
|
134
134
|
export default _default;
|
package/lib/MapView.d.ts
CHANGED
|
@@ -578,10 +578,6 @@ declare class MapView extends React.Component<MapViewProps, State> {
|
|
|
578
578
|
static Animated: Animated.AnimatedComponent<typeof MapView>;
|
|
579
579
|
private map;
|
|
580
580
|
constructor(props: MapViewProps);
|
|
581
|
-
/**
|
|
582
|
-
* @deprecated Will be removed in v2.0.0, as setNativeProps is not a thing in fabric.
|
|
583
|
-
* See https://reactnative.dev/docs/new-architecture-library-intro#migrating-off-setnativeprops
|
|
584
|
-
*/
|
|
585
581
|
setNativeProps(props: Partial<NativeProps>): void;
|
|
586
582
|
private _onMapReady;
|
|
587
583
|
private _onChange;
|
|
@@ -671,7 +667,7 @@ declare class MapView extends React.Component<MapViewProps, State> {
|
|
|
671
667
|
private _mapManagerCommand;
|
|
672
668
|
private _getHandle;
|
|
673
669
|
private _runCommand;
|
|
674
|
-
render(): JSX.Element;
|
|
670
|
+
render(): React.JSX.Element;
|
|
675
671
|
}
|
|
676
672
|
export declare const AnimatedMapView: RNAnimated.AnimatedComponent<typeof MapView>;
|
|
677
673
|
export declare const enableLatestRenderer: () => any;
|
package/lib/MapView.js
CHANGED
|
@@ -50,12 +50,7 @@ class MapView extends React.Component {
|
|
|
50
50
|
this._onMapReady = this._onMapReady.bind(this);
|
|
51
51
|
this._onChange = this._onChange.bind(this);
|
|
52
52
|
}
|
|
53
|
-
/**
|
|
54
|
-
* @deprecated Will be removed in v2.0.0, as setNativeProps is not a thing in fabric.
|
|
55
|
-
* See https://reactnative.dev/docs/new-architecture-library-intro#migrating-off-setnativeprops
|
|
56
|
-
*/
|
|
57
53
|
setNativeProps(props) {
|
|
58
|
-
console.warn('setNativeProps is deprecated and will be removed in next major release');
|
|
59
54
|
// @ts-ignore
|
|
60
55
|
this.map.current?.setNativeProps(props);
|
|
61
56
|
}
|
package/lib/MapWMSTile.d.ts
CHANGED
|
@@ -110,7 +110,7 @@ export declare class MapWMSTile extends React.Component<MapWMSTileProps> {
|
|
|
110
110
|
getNativeComponent: () => NativeComponent<NativeProps>;
|
|
111
111
|
getMapManagerCommand: (name: string) => MapManagerCommand;
|
|
112
112
|
getUIManagerCommand: (name: string) => UIManagerCommand;
|
|
113
|
-
render(): JSX.Element;
|
|
113
|
+
render(): React.JSX.Element;
|
|
114
114
|
}
|
|
115
115
|
declare const _default: typeof MapWMSTile;
|
|
116
116
|
export default _default;
|
package/lib/index.d.ts
CHANGED
|
@@ -33,6 +33,6 @@ export * from './ProviderConstants';
|
|
|
33
33
|
export * from './MapView.types';
|
|
34
34
|
export * from './MapPolygon.types';
|
|
35
35
|
export * from './sharedTypes';
|
|
36
|
-
export declare const MarkerAnimated: import("react-native").Animated.AnimatedComponent<typeof import("./MapMarker").MapMarker>;
|
|
37
|
-
export declare const OverlayAnimated: import("react-native").Animated.AnimatedComponent<typeof import("./MapOverlay").MapOverlay>;
|
|
36
|
+
export declare const MarkerAnimated: import("react-native/types").Animated.AnimatedComponent<typeof import("./MapMarker").MapMarker>;
|
|
37
|
+
export declare const OverlayAnimated: import("react-native/types").Animated.AnimatedComponent<typeof import("./MapOverlay").MapOverlay>;
|
|
38
38
|
export default MapView;
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"author": "Leland Richardson <leland.m.richardson@gmail.com>",
|
|
7
7
|
"homepage": "https://github.com/react-native-maps/react-native-maps#readme",
|
|
8
|
-
"version": "1.9.
|
|
8
|
+
"version": "1.9.1",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"lint": "eslint . --max-warnings 0",
|
|
@@ -57,24 +57,24 @@
|
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@commitlint/cli": "17.6.1",
|
|
59
59
|
"@commitlint/config-conventional": "17.6.1",
|
|
60
|
-
"@react-native
|
|
60
|
+
"@react-native/eslint-config": "^0.73.1",
|
|
61
61
|
"@semantic-release/changelog": "6.0.3",
|
|
62
62
|
"@semantic-release/git": "10.0.1",
|
|
63
63
|
"@types/jest": "29.5.1",
|
|
64
|
-
"@types/react-native": "0.
|
|
65
|
-
"babel-jest": "29.
|
|
64
|
+
"@types/react-native": "0.72.8",
|
|
65
|
+
"babel-jest": "^29.6.3",
|
|
66
66
|
"detox": "20.7.0",
|
|
67
67
|
"eslint": "8.38.0",
|
|
68
68
|
"husky": "8.0.3",
|
|
69
|
-
"jest": "29.
|
|
70
|
-
"prettier": "2.8.
|
|
71
|
-
"react": "18.
|
|
72
|
-
"react-native": "0.
|
|
73
|
-
"semantic-release": "21.
|
|
69
|
+
"jest": "^29.6.3",
|
|
70
|
+
"prettier": "2.8.8",
|
|
71
|
+
"react": "18.2.0",
|
|
72
|
+
"react-native": "0.73.0",
|
|
73
|
+
"semantic-release": "21.1.2",
|
|
74
74
|
"typescript": "5.0.4"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@types/geojson": "^7946.0.
|
|
77
|
+
"@types/geojson": "^7946.0.13"
|
|
78
78
|
},
|
|
79
79
|
"jest": {
|
|
80
80
|
"preset": "react-native",
|
|
@@ -82,5 +82,8 @@
|
|
|
82
82
|
"/node_modules/",
|
|
83
83
|
"e2e"
|
|
84
84
|
]
|
|
85
|
+
},
|
|
86
|
+
"engines": {
|
|
87
|
+
"node": ">=18"
|
|
85
88
|
}
|
|
86
89
|
}
|
|
@@ -9,7 +9,7 @@ Pod::Spec.new do |s|
|
|
|
9
9
|
s.authors = package["author"]
|
|
10
10
|
s.homepage = package["homepage"]
|
|
11
11
|
s.license = package["license"]
|
|
12
|
-
s.platform = :ios, "13.
|
|
12
|
+
s.platform = :ios, "13.4"
|
|
13
13
|
|
|
14
14
|
s.source = { :git => "https://github.com/react-native-maps/react-native-maps.git", :tag=> "v#{s.version}" }
|
|
15
15
|
s.source_files = "ios/AirGoogleMaps/**/*.{h,m}"
|