react-native-maps 1.21.0-alpha.100 → 1.21.0-alpha.102
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/src/main/java/com/rnmaps/maps/MapView.java +1 -0
- package/ios/AirMaps/fabricplaceholders/PlaceHolderGoogleMapView.h +26 -0
- package/ios/AirMaps/fabricplaceholders/PlaceHolderGoogleMapView.mm +68 -0
- package/ios/AirMaps/fabricplaceholders/PlaceHolderPolygonView.h +23 -0
- package/ios/AirMaps/fabricplaceholders/PlaceHolderPolygonView.mm +43 -0
- package/lib/MapView.js +1 -3
- package/package.json +1 -1
- package/react-native-maps.podspec +0 -25
|
@@ -657,6 +657,7 @@ public void onCreate(LifecycleOwner owner) {
|
|
|
657
657
|
builder.put(OnPoiClickEvent.EVENT_NAME, MapBuilder.of("registrationName", OnPoiClickEvent.EVENT_NAME));
|
|
658
658
|
builder.put(OnLongPressEvent.EVENT_NAME, MapBuilder.of("registrationName", OnLongPressEvent.EVENT_NAME));
|
|
659
659
|
builder.put(OnRegionChangeStartEvent.EVENT_NAME, MapBuilder.of("registrationName", OnRegionChangeStartEvent.EVENT_NAME));
|
|
660
|
+
builder.put(OnRegionChangeCompleteEvent.EVENT_NAME, MapBuilder.of("registrationName", OnRegionChangeCompleteEvent.EVENT_NAME));
|
|
660
661
|
builder.put(OnDoublePressEvent.EVENT_NAME, MapBuilder.of("registrationName", OnDoublePressEvent.EVENT_NAME));
|
|
661
662
|
builder.put(OnPanDragEvent.EVENT_NAME, MapBuilder.of("registrationName", OnPanDragEvent.EVENT_NAME));
|
|
662
663
|
return builder.build();
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RNMapsGoogleMapView.h
|
|
3
|
+
//
|
|
4
|
+
//
|
|
5
|
+
// Created by Salah Ghanim on 23.11.24.
|
|
6
|
+
// Copyright © 2024 react-native-maps. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
#ifdef RCT_NEW_ARCH_ENABLED
|
|
9
|
+
#ifndef HAVE_GOOGLE_MAPS
|
|
10
|
+
|
|
11
|
+
#import <React/RCTViewComponentView.h>
|
|
12
|
+
#import <UIKit/UIKit.h>
|
|
13
|
+
#import "RNMapsHostVewDelegate.h"
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
18
|
+
|
|
19
|
+
@interface RNMapsGoogleMapView : RCTViewComponentView
|
|
20
|
+
|
|
21
|
+
@end
|
|
22
|
+
|
|
23
|
+
NS_ASSUME_NONNULL_END
|
|
24
|
+
|
|
25
|
+
#endif
|
|
26
|
+
#endif
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RNMapsGoogleMapView.mm
|
|
3
|
+
//
|
|
4
|
+
//
|
|
5
|
+
// Created by Salah Ghanim on 23.11.24.
|
|
6
|
+
// Copyright © 2024 react-native-maps. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
#ifndef HAVE_GOOGLE_MAPS
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
#import <react/renderer/components/RNMapsSpecs/ComponentDescriptors.h>
|
|
13
|
+
#import <react/renderer/components/RNMapsSpecs/EventEmitters.h>
|
|
14
|
+
#import <react/renderer/components/RNMapsSpecs/Props.h>
|
|
15
|
+
#import <react/renderer/components/RNMapsSpecs/RCTComponentViewHelpers.h>
|
|
16
|
+
#import "RCTFabricComponentsPlugins.h"
|
|
17
|
+
#import <React/RCTConversions.h>
|
|
18
|
+
#import "PlaceHolderGoogleMapView.h"
|
|
19
|
+
|
|
20
|
+
using namespace facebook::react;
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
@implementation RNMapsGoogleMapView
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
#pragma mark - JS Commands
|
|
27
|
+
- (void)animateToRegion:(NSString *)regionJSON duration:(NSInteger)duration{
|
|
28
|
+
}
|
|
29
|
+
- (void)setCamera:(NSString *)cameraJSON{
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
- (void)animateCamera:(NSString *)cameraJSON duration:(NSInteger)duration{
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
- (void)fitToElements:(NSString *)edgePaddingJSON animated:(BOOL)animated {
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
- (void)fitToSuppliedMarkers:(NSString *)markersJSON edgePaddingJSON:(NSString *)edgePaddingJSON animated:(BOOL)animated {
|
|
39
|
+
}
|
|
40
|
+
- (void)fitToCoordinates:(NSString *)coordinatesJSON edgePaddingJSON:(NSString *)edgePaddingJSON animated:(BOOL)animated {
|
|
41
|
+
|
|
42
|
+
}
|
|
43
|
+
- (void) setIndoorActiveLevelIndex:(NSInteger)activeLevelIndex
|
|
44
|
+
{
|
|
45
|
+
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
#pragma mark - Native commands
|
|
49
|
+
|
|
50
|
+
- (void)handleCommand:(const NSString *)commandName args:(const NSArray *)args
|
|
51
|
+
{
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
+ (ComponentDescriptorProvider)componentDescriptorProvider
|
|
56
|
+
{
|
|
57
|
+
return concreteComponentDescriptorProvider<RNMapsGoogleMapViewComponentDescriptor>();
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
@end
|
|
62
|
+
|
|
63
|
+
Class<RCTComponentViewProtocol> RNMapsGoogleMapViewCls(void)
|
|
64
|
+
{
|
|
65
|
+
return RNMapsGoogleMapView.class;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
#endif
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RNMapsGoogleMapView.h
|
|
3
|
+
//
|
|
4
|
+
//
|
|
5
|
+
// Created by Salah Ghanim on 23.11.24.
|
|
6
|
+
// Copyright © 2024 react-native-maps. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
#ifdef RCT_NEW_ARCH_ENABLED
|
|
9
|
+
#ifndef HAVE_GOOGLE_MAPS
|
|
10
|
+
|
|
11
|
+
#import <React/RCTViewComponentView.h>
|
|
12
|
+
#import <UIKit/UIKit.h>
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
16
|
+
@interface RNMapsGooglePolygonView : RCTViewComponentView
|
|
17
|
+
|
|
18
|
+
@end
|
|
19
|
+
|
|
20
|
+
NS_ASSUME_NONNULL_END
|
|
21
|
+
|
|
22
|
+
#endif
|
|
23
|
+
#endif
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RNMapsGoogleMapView.mm
|
|
3
|
+
//
|
|
4
|
+
//
|
|
5
|
+
// Created by Salah Ghanim on 23.11.24.
|
|
6
|
+
// Copyright © 2024 react-native-maps. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
#ifndef HAVE_GOOGLE_MAPS
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
#import <react/renderer/components/RNMapsSpecs/ComponentDescriptors.h>
|
|
13
|
+
#import <react/renderer/components/RNMapsSpecs/EventEmitters.h>
|
|
14
|
+
#import <react/renderer/components/RNMapsSpecs/Props.h>
|
|
15
|
+
#import <react/renderer/components/RNMapsSpecs/RCTComponentViewHelpers.h>
|
|
16
|
+
|
|
17
|
+
#import "RCTFabricComponentsPlugins.h"
|
|
18
|
+
#import <React/RCTConversions.h>
|
|
19
|
+
#import "PlaceHolderPolygonView.h"
|
|
20
|
+
|
|
21
|
+
using namespace facebook::react;
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
@interface RNMapsGooglePolygonView () <RCTRNMapsGooglePolygonViewProtocol>
|
|
25
|
+
@end
|
|
26
|
+
|
|
27
|
+
@implementation RNMapsGooglePolygonView
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
+ (ComponentDescriptorProvider)componentDescriptorProvider
|
|
32
|
+
{
|
|
33
|
+
return concreteComponentDescriptorProvider<RNMapsGooglePolygonComponentDescriptor>();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@end
|
|
37
|
+
|
|
38
|
+
Class<RCTComponentViewProtocol> RNMapsGooglePolygonCls(void)
|
|
39
|
+
{
|
|
40
|
+
return RNMapsGooglePolygonView.class;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
#endif
|
package/lib/MapView.js
CHANGED
|
@@ -418,9 +418,7 @@ if (react_native_1.Platform.OS === 'android') {
|
|
|
418
418
|
airMaps.google = airMaps.default;
|
|
419
419
|
}
|
|
420
420
|
else {
|
|
421
|
-
airMaps.google = decorateMapComponent_1.
|
|
422
|
-
? (0, react_native_1.requireNativeComponent)('AIRGoogleMap')
|
|
423
|
-
: (0, decorateMapComponent_1.createNotSupportedComponent)('react-native-maps: AirGoogleMaps dir must be added to your xCode project to support GoogleMaps on iOS.');
|
|
421
|
+
airMaps.google = (0, decorateMapComponent_1.createNotSupportedComponent)('react-native-maps: AirGoogleMaps dir must be added to your xCode project to support GoogleMaps on iOS.');
|
|
424
422
|
}
|
|
425
423
|
exports.AnimatedMapView = react_native_1.Animated.createAnimatedComponent(MapView);
|
|
426
424
|
MapView.Animated = exports.AnimatedMapView;
|
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.102",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"lint": "eslint . --max-warnings 0",
|
|
@@ -21,7 +21,6 @@ Pod::Spec.new do |s|
|
|
|
21
21
|
s.subspec 'base' do |sp|
|
|
22
22
|
sp.source_files = "ios/AirMaps/**/*.{h,m,mm,swift}"
|
|
23
23
|
sp.dependency "React-Core"
|
|
24
|
-
sp.dependency "react-native-maps/generated"
|
|
25
24
|
sp.compiler_flags = folly_compiler_flags
|
|
26
25
|
install_modules_dependencies(sp)
|
|
27
26
|
end
|
|
@@ -40,28 +39,4 @@ Pod::Spec.new do |s|
|
|
|
40
39
|
install_modules_dependencies(sp)
|
|
41
40
|
end
|
|
42
41
|
|
|
43
|
-
# Generated podspec as a subspec
|
|
44
|
-
s.subspec 'generated' do |sp|
|
|
45
|
-
sp.source_files = 'ios/generated/**/*.{h,m,mm,cpp}'
|
|
46
|
-
sp.exclude_files = [
|
|
47
|
-
'ios/generated/**/RCTAppDependencyProvider.{h,mm}',
|
|
48
|
-
'ios/generated/**/RCTThirdPartyComponentsProvider.{h,mm}',
|
|
49
|
-
'ios/generated/**/RCTModulesConformingToProtocolsProvider.{h,mm}'
|
|
50
|
-
]
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
sp.public_header_files = [
|
|
54
|
-
'ios/generated/react-native-maps-generated-umbrella.h',
|
|
55
|
-
'ios/generated/RNMapsSpecs/ComponentDescriptors.h',
|
|
56
|
-
'ios/generated/RNMapsSpecs/EventEmitters.h',
|
|
57
|
-
'ios/generated/RNMapsSpecs/Props.h',
|
|
58
|
-
'ios/generated/RNMapsSpecs/RCTComponentViewHelpers.h',
|
|
59
|
-
'ios/generated/RNMapsSpecs/RNMapsSpecs.h'
|
|
60
|
-
]
|
|
61
|
-
sp.header_mappings_dir = 'ios/generated'
|
|
62
|
-
sp.resource_bundles = {
|
|
63
|
-
'ReactNativeMapsPrivacy' => ['ios/PrivacyInfo.xcprivacy']
|
|
64
|
-
}
|
|
65
|
-
install_modules_dependencies(sp)
|
|
66
|
-
end
|
|
67
42
|
end
|