react-native-maps 1.21.0-alpha.5 → 1.21.0-alpha.7
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/ios/AirGoogleMaps/AIRGoogleMap.h +6 -1
- package/ios/AirGoogleMaps/AIRGoogleMap.m +90 -7
- package/ios/AirGoogleMaps/AIRGoogleMapCircle.h +0 -1
- package/ios/AirGoogleMaps/AIRGoogleMapCoordinate.h +13 -0
- package/ios/AirGoogleMaps/AIRGoogleMapCoordinate.m +10 -0
- package/ios/AirGoogleMaps/AIRGoogleMapManager.h +7 -0
- package/ios/AirGoogleMaps/AIRGoogleMapManager.m +13 -91
- package/ios/AirGoogleMaps/AIRGoogleMapMarkerManager.m +0 -1
- package/ios/AirGoogleMaps/AIRGoogleMapOverlay.h +0 -1
- package/ios/AirGoogleMaps/AIRGoogleMapPolygon.h +3 -3
- package/ios/AirGoogleMaps/AIRGoogleMapPolygon.m +2 -2
- package/ios/AirGoogleMaps/AIRGoogleMapPolygonManager.m +3 -3
- package/ios/AirGoogleMaps/AIRGoogleMapPolyline.h +3 -2
- package/ios/AirGoogleMaps/AIRGoogleMapPolyline.m +2 -3
- package/ios/AirGoogleMaps/AIRGoogleMapPolylineManager.m +2 -2
- package/ios/AirGoogleMaps/RCTConvert+GMSMapViewType.m +16 -0
- package/ios/AirGoogleMaps/RNMapsGoogleMapView.h +26 -0
- package/ios/AirGoogleMaps/RNMapsGoogleMapView.mm +529 -0
- package/ios/AirGoogleMaps/RNMapsGoogleMapViewManager.mm +25 -0
- package/ios/AirMaps/AIRMap.h +2 -2
- package/ios/AirMaps/AIRMap.m +2 -2
- package/ios/AirMaps/AIRMapManager.m +4 -4
- package/ios/AirMaps/RNMapsAirModule.h +3 -0
- package/ios/AirMaps/RNMapsMapView.h +3 -0
- package/ios/AirMaps/RNMapsMapView.mm +2 -25
- package/lib/FabricMapView.d.ts +7 -2
- package/lib/FabricMapView.js +7 -1
- package/lib/MapOverlay.d.ts +1 -1
- package/lib/MapView.d.ts +2 -2
- package/lib/MapView.js +5 -12
- package/lib/specs/NativeComponentGoogleMapView.d.ts +713 -0
- package/lib/specs/NativeComponentGoogleMapView.js +21 -0
- package/lib/specs/NativeComponentMapView.d.ts +4 -11
- package/package.json +6 -6
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Commands = void 0;
|
|
7
|
+
const codegenNativeComponent_1 = __importDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));
|
|
8
|
+
const codegenNativeCommands_1 = __importDefault(require("react-native/Libraries/Utilities/codegenNativeCommands"));
|
|
9
|
+
exports.Commands = (0, codegenNativeCommands_1.default)({
|
|
10
|
+
supportedCommands: [
|
|
11
|
+
'animateToRegion',
|
|
12
|
+
'setCamera',
|
|
13
|
+
'animateCamera',
|
|
14
|
+
'fitToElements',
|
|
15
|
+
'fitToSuppliedMarkers',
|
|
16
|
+
'fitToCoordinates',
|
|
17
|
+
],
|
|
18
|
+
});
|
|
19
|
+
exports.default = (0, codegenNativeComponent_1.default)('RNMapsGoogleMapView', {
|
|
20
|
+
excludedPlatforms: ['android'],
|
|
21
|
+
});
|
|
@@ -270,7 +270,7 @@ export interface MapFabricNativeProps extends ViewProps {
|
|
|
270
270
|
* If `true` map will be cached and displayed as an image instead of being interactable, for performance usage.
|
|
271
271
|
*
|
|
272
272
|
* @default false
|
|
273
|
-
* @platform iOS: Apple
|
|
273
|
+
* @platform iOS: Apple Maps only
|
|
274
274
|
* @platform Android: Supported
|
|
275
275
|
*/
|
|
276
276
|
cacheEnabled?: boolean;
|
|
@@ -343,7 +343,7 @@ export interface MapFabricNativeProps extends ViewProps {
|
|
|
343
343
|
*/
|
|
344
344
|
kmlSrc?: string;
|
|
345
345
|
/**
|
|
346
|
-
* If set, changes the position of the "Legal" label link in Apple
|
|
346
|
+
* If set, changes the position of the "Legal" label link in Apple Maps.
|
|
347
347
|
*
|
|
348
348
|
* @platform iOS: Apple Maps only
|
|
349
349
|
* @platform Android: Not supported
|
|
@@ -423,7 +423,7 @@ export interface MapFabricNativeProps extends ViewProps {
|
|
|
423
423
|
* @platform Android: Supported
|
|
424
424
|
* @deprecated on Apple Maps, use `cameraZoomRange` instead
|
|
425
425
|
*/
|
|
426
|
-
|
|
426
|
+
maxZoom?: Float;
|
|
427
427
|
/**
|
|
428
428
|
* TODO: Add documentation
|
|
429
429
|
*
|
|
@@ -439,7 +439,7 @@ export interface MapFabricNativeProps extends ViewProps {
|
|
|
439
439
|
* @platform Android: Supported
|
|
440
440
|
* @deprecated on Apple Maps, use `cameraZoomRange` instead
|
|
441
441
|
*/
|
|
442
|
-
|
|
442
|
+
minZoom?: Float;
|
|
443
443
|
/**
|
|
444
444
|
* If `false` the map won't move to the marker when pressed.
|
|
445
445
|
*
|
|
@@ -625,13 +625,6 @@ export interface MapFabricNativeProps extends ViewProps {
|
|
|
625
625
|
* @platform Android: Supported
|
|
626
626
|
*/
|
|
627
627
|
pitchEnabled?: boolean;
|
|
628
|
-
/**
|
|
629
|
-
* The map framework to use.
|
|
630
|
-
* Either `"google"` for GoogleMaps, otherwise `undefined` to use the native map framework (`MapKit` in iOS and `GoogleMaps` in android).
|
|
631
|
-
*
|
|
632
|
-
* @platform iOS: Supported
|
|
633
|
-
* @platform Android: Supported
|
|
634
|
-
*/
|
|
635
628
|
/**
|
|
636
629
|
* The region to be displayed by the map.
|
|
637
630
|
* The region is defined by the center coordinates and the span of coordinates to display.
|
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.21.0-alpha.
|
|
8
|
+
"version": "1.21.0-alpha.7",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"lint": "eslint . --max-warnings 0",
|
|
@@ -64,12 +64,12 @@
|
|
|
64
64
|
"@babel/core": "^7.25.2",
|
|
65
65
|
"@babel/preset-env": "^7.25.3",
|
|
66
66
|
"@babel/runtime": "^7.25.0",
|
|
67
|
-
"react-native": "^0.76.
|
|
67
|
+
"react-native": "^0.76.5",
|
|
68
68
|
"react": "^18.3.1",
|
|
69
|
-
"@react-native/babel-preset": "0.76.
|
|
70
|
-
"@react-native/eslint-config": "0.76.
|
|
71
|
-
"@react-native/metro-config": "0.76.
|
|
72
|
-
"@react-native/typescript-config": "0.76.
|
|
69
|
+
"@react-native/babel-preset": "0.76.5",
|
|
70
|
+
"@react-native/eslint-config": "0.76.5",
|
|
71
|
+
"@react-native/metro-config": "0.76.5",
|
|
72
|
+
"@react-native/typescript-config": "0.76.5",
|
|
73
73
|
"@types/react": "^18.2.6",
|
|
74
74
|
"@types/react-test-renderer": "^18.0.0",
|
|
75
75
|
"babel-jest": "^29.6.3",
|