react-native-maps 1.21.0-alpha.102 → 1.21.0-alpha.104
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 +17 -16
- package/ios/AirMaps.xcodeproj/project.pbxproj +15 -55
- package/lib/MapView.d.ts +2 -2
- package/lib/specs/NativeComponentMapView.d.ts +18 -23
- package/package.json +1 -1
- package/specs/NativeComponentMapView.ts +17 -30
- /package/ios/AirMaps/{fabricplaceholders → FabricPlaceholders}/PlaceHolderGoogleMapView.h +0 -0
- /package/ios/AirMaps/{fabricplaceholders → FabricPlaceholders}/PlaceHolderGoogleMapView.mm +0 -0
- /package/ios/AirMaps/{fabricplaceholders → FabricPlaceholders}/PlaceHolderPolygonView.h +0 -0
- /package/ios/AirMaps/{fabricplaceholders → FabricPlaceholders}/PlaceHolderPolygonView.mm +0 -0
|
@@ -646,35 +646,36 @@ public void onCreate(LifecycleOwner owner) {
|
|
|
646
646
|
|
|
647
647
|
|
|
648
648
|
public static Map<String, Object> getExportedCustomBubblingEventTypeConstants() {
|
|
649
|
+
MapBuilder.Builder<String, Object> builder = MapBuilder.builder();
|
|
650
|
+
return builder.build();
|
|
651
|
+
}
|
|
652
|
+
// , ,
|
|
653
|
+
public static Map<String, Object> getExportedCustomDirectEventTypeConstants() {
|
|
649
654
|
MapBuilder.Builder<String, Object> builder = MapBuilder.builder();
|
|
650
655
|
builder.put(OnMarkerPressEvent.EVENT_NAME, MapBuilder.of("registrationName", OnMarkerPressEvent.EVENT_NAME));
|
|
651
656
|
builder.put(OnPressEvent.EVENT_NAME, MapBuilder.of("registrationName", OnPressEvent.EVENT_NAME));
|
|
652
|
-
builder.put(OnMarkerSelectEvent.EVENT_NAME, MapBuilder.of("registrationName", OnMarkerSelectEvent.EVENT_NAME));
|
|
653
|
-
builder.put(OnMarkerDeselectEvent.EVENT_NAME, MapBuilder.of("registrationName", OnMarkerDeselectEvent.EVENT_NAME));
|
|
654
657
|
builder.put(OnMarkerDragEvent.EVENT_NAME, MapBuilder.of("registrationName", OnMarkerDragEvent.EVENT_NAME));
|
|
655
658
|
builder.put(OnMarkerDragStartEvent.EVENT_NAME, MapBuilder.of("registrationName", OnMarkerDragStartEvent.EVENT_NAME));
|
|
656
659
|
builder.put(OnMarkerDragEndEvent.EVENT_NAME, MapBuilder.of("registrationName", OnMarkerDragEndEvent.EVENT_NAME));
|
|
657
660
|
builder.put(OnPoiClickEvent.EVENT_NAME, MapBuilder.of("registrationName", OnPoiClickEvent.EVENT_NAME));
|
|
658
661
|
builder.put(OnLongPressEvent.EVENT_NAME, MapBuilder.of("registrationName", OnLongPressEvent.EVENT_NAME));
|
|
659
|
-
builder.put(OnRegionChangeStartEvent.EVENT_NAME, MapBuilder.of("registrationName", OnRegionChangeStartEvent.EVENT_NAME));
|
|
660
|
-
builder.put(OnRegionChangeCompleteEvent.EVENT_NAME, MapBuilder.of("registrationName", OnRegionChangeCompleteEvent.EVENT_NAME));
|
|
661
662
|
builder.put(OnDoublePressEvent.EVENT_NAME, MapBuilder.of("registrationName", OnDoublePressEvent.EVENT_NAME));
|
|
662
663
|
builder.put(OnPanDragEvent.EVENT_NAME, MapBuilder.of("registrationName", OnPanDragEvent.EVENT_NAME));
|
|
664
|
+
builder.put(OnMarkerSelectEvent.EVENT_NAME, MapBuilder.of("registrationName", OnMarkerSelectEvent.EVENT_NAME));
|
|
665
|
+
builder.put(OnMarkerDeselectEvent.EVENT_NAME, MapBuilder.of("registrationName", OnMarkerDeselectEvent.EVENT_NAME));
|
|
666
|
+
builder.put(OnMapLoadedEvent.EVENT_NAME, MapBuilder.of("registrationName", OnMapLoadedEvent.EVENT_NAME));
|
|
667
|
+
builder.put(OnMarkerDeselectEvent.EVENT_NAME, MapBuilder.of("registrationName", OnMarkerDeselectEvent.EVENT_NAME));
|
|
668
|
+
builder.put(OnMapReadyEvent.EVENT_NAME, MapBuilder.of("registrationName", OnMapReadyEvent.EVENT_NAME));
|
|
669
|
+
builder.put(OnUserLocationChangeEvent.EVENT_NAME, MapBuilder.of("registrationName", OnUserLocationChangeEvent.EVENT_NAME));
|
|
670
|
+
builder.put(OnRegionChangeEvent.EVENT_NAME, MapBuilder.of("registrationName", OnRegionChangeEvent.EVENT_NAME));
|
|
671
|
+
builder.put(OnRegionChangeStartEvent.EVENT_NAME, MapBuilder.of("registrationName", OnRegionChangeStartEvent.EVENT_NAME));
|
|
672
|
+
builder.put(OnRegionChangeCompleteEvent.EVENT_NAME, MapBuilder.of("registrationName", OnRegionChangeCompleteEvent.EVENT_NAME));
|
|
673
|
+
builder.put(OnIndoorBuildingFocusedEvent.EVENT_NAME, MapBuilder.of("registrationName", OnIndoorBuildingFocusedEvent.EVENT_NAME));
|
|
674
|
+
builder.put(OnIndoorLevelActivatedEvent.EVENT_NAME, MapBuilder.of("registrationName", OnIndoorLevelActivatedEvent.EVENT_NAME));
|
|
675
|
+
builder.put(OnKmlReadyEvent.EVENT_NAME, MapBuilder.of("registrationName", OnKmlReadyEvent.EVENT_NAME));
|
|
663
676
|
return builder.build();
|
|
664
677
|
}
|
|
665
678
|
|
|
666
|
-
public static Map<String, Object> getExportedCustomDirectEventTypeConstants() {
|
|
667
|
-
return MapBuilder.of(
|
|
668
|
-
OnMapLoadedEvent.EVENT_NAME, MapBuilder.of("registrationName", OnMapLoadedEvent.EVENT_NAME),
|
|
669
|
-
OnMapReadyEvent.EVENT_NAME, MapBuilder.of("registrationName", OnMapReadyEvent.EVENT_NAME),
|
|
670
|
-
OnUserLocationChangeEvent.EVENT_NAME, MapBuilder.of("registrationName", OnUserLocationChangeEvent.EVENT_NAME),
|
|
671
|
-
OnRegionChangeEvent.EVENT_NAME, MapBuilder.of("registrationName", OnRegionChangeEvent.EVENT_NAME),
|
|
672
|
-
OnIndoorBuildingFocusedEvent.EVENT_NAME, MapBuilder.of("registrationName", OnIndoorBuildingFocusedEvent.EVENT_NAME),
|
|
673
|
-
OnIndoorLevelActivatedEvent.EVENT_NAME, MapBuilder.of("registrationName", OnIndoorLevelActivatedEvent.EVENT_NAME),
|
|
674
|
-
OnKmlReadyEvent.EVENT_NAME, MapBuilder.of("registrationName", OnKmlReadyEvent.EVENT_NAME)
|
|
675
|
-
);
|
|
676
|
-
}
|
|
677
|
-
|
|
678
679
|
|
|
679
680
|
/*
|
|
680
681
|
onDestroy is final method so I can't override it.
|
|
@@ -26,15 +26,10 @@
|
|
|
26
26
|
4C99C9DE2226CF2800A8693E /* AIRWeakTimerReference.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C99C9DD2226CF2800A8693E /* AIRWeakTimerReference.m */; };
|
|
27
27
|
4C99C9E12226D8C400A8693E /* AIRWeakMapReference.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C99C9E02226D8C400A8693E /* AIRWeakMapReference.m */; };
|
|
28
28
|
4E0CFBDE2B388F2B0017E126 /* RCTComponentData+Maps.m in Sources */ = {isa = PBXBuildFile; fileRef = 4E0CFBDD2B388F2B0017E126 /* RCTComponentData+Maps.m */; };
|
|
29
|
+
4E34FA002D84E24A009CC683 /* PlaceHolderGoogleMapView.mm in Sources */ = {isa = PBXBuildFile; fileRef = 4E34F9FC2D84E24A009CC683 /* PlaceHolderGoogleMapView.mm */; };
|
|
30
|
+
4E34FA012D84E24A009CC683 /* PlaceHolderPolygonView.mm in Sources */ = {isa = PBXBuildFile; fileRef = 4E34F9FE2D84E24A009CC683 /* PlaceHolderPolygonView.mm */; };
|
|
29
31
|
4E430F272CF20153006E4F41 /* RNMapsMarkerManager.mm in Sources */ = {isa = PBXBuildFile; fileRef = 4E430F262CF20153006E4F41 /* RNMapsMarkerManager.mm */; };
|
|
30
32
|
4E430F2A2CF20305006E4F41 /* RNMapsMarker.mm in Sources */ = {isa = PBXBuildFile; fileRef = 4E430F292CF20305006E4F41 /* RNMapsMarker.mm */; };
|
|
31
|
-
4E84CA362D3C4ACF00D23ADD /* EventEmitters.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4E84CA282D3C4ACF00D23ADD /* EventEmitters.cpp */; };
|
|
32
|
-
4E84CA372D3C4ACF00D23ADD /* RNMapsSpecsJSI-generated.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4E84CA342D3C4ACF00D23ADD /* RNMapsSpecsJSI-generated.cpp */; };
|
|
33
|
-
4E84CA382D3C4ACF00D23ADD /* Props.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4E84CA2A2D3C4ACF00D23ADD /* Props.cpp */; };
|
|
34
|
-
4E84CA392D3C4ACF00D23ADD /* ShadowNodes.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4E84CA2F2D3C4ACF00D23ADD /* ShadowNodes.cpp */; };
|
|
35
|
-
4E84CA3A2D3C4ACF00D23ADD /* RNMapsSpecs-generated.mm in Sources */ = {isa = PBXBuildFile; fileRef = 4E84CA2D2D3C4ACF00D23ADD /* RNMapsSpecs-generated.mm */; };
|
|
36
|
-
4E84CA3B2D3C4ACF00D23ADD /* ComponentDescriptors.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4E84CA262D3C4ACF00D23ADD /* ComponentDescriptors.cpp */; };
|
|
37
|
-
4E84CA3C2D3C4ACF00D23ADD /* States.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4E84CA312D3C4ACF00D23ADD /* States.cpp */; };
|
|
38
33
|
53D31636202E723B00B55447 /* AIRMapOverlayManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 53D31635202E723B00B55447 /* AIRMapOverlayManager.m */; };
|
|
39
34
|
53D3163A202E72FC00B55447 /* AIRMapOverlay.m in Sources */ = {isa = PBXBuildFile; fileRef = 53D31639202E72FC00B55447 /* AIRMapOverlay.m */; };
|
|
40
35
|
53D3163D202E734F00B55447 /* AIRMapOverlayRenderer.m in Sources */ = {isa = PBXBuildFile; fileRef = 53D3163C202E734F00B55447 /* AIRMapOverlayRenderer.m */; };
|
|
@@ -126,24 +121,13 @@
|
|
|
126
121
|
4E0A36152BFB4E76009FCCE4 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
|
|
127
122
|
4E0CFBDC2B388F2B0017E126 /* RCTComponentData+Maps.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "RCTComponentData+Maps.h"; sourceTree = "<group>"; };
|
|
128
123
|
4E0CFBDD2B388F2B0017E126 /* RCTComponentData+Maps.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "RCTComponentData+Maps.m"; sourceTree = "<group>"; };
|
|
124
|
+
4E34F9FB2D84E24A009CC683 /* PlaceHolderGoogleMapView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PlaceHolderGoogleMapView.h; sourceTree = "<group>"; };
|
|
125
|
+
4E34F9FC2D84E24A009CC683 /* PlaceHolderGoogleMapView.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = PlaceHolderGoogleMapView.mm; sourceTree = "<group>"; };
|
|
126
|
+
4E34F9FD2D84E24A009CC683 /* PlaceHolderPolygonView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PlaceHolderPolygonView.h; sourceTree = "<group>"; };
|
|
127
|
+
4E34F9FE2D84E24A009CC683 /* PlaceHolderPolygonView.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = PlaceHolderPolygonView.mm; sourceTree = "<group>"; };
|
|
129
128
|
4E430F262CF20153006E4F41 /* RNMapsMarkerManager.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = RNMapsMarkerManager.mm; sourceTree = "<group>"; };
|
|
130
129
|
4E430F282CF20305006E4F41 /* RNMapsMarker.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RNMapsMarker.h; sourceTree = "<group>"; };
|
|
131
130
|
4E430F292CF20305006E4F41 /* RNMapsMarker.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = RNMapsMarker.mm; sourceTree = "<group>"; };
|
|
132
|
-
4E84CA252D3C4ACF00D23ADD /* ComponentDescriptors.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ComponentDescriptors.h; sourceTree = "<group>"; };
|
|
133
|
-
4E84CA262D3C4ACF00D23ADD /* ComponentDescriptors.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = ComponentDescriptors.cpp; sourceTree = "<group>"; };
|
|
134
|
-
4E84CA272D3C4ACF00D23ADD /* EventEmitters.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = EventEmitters.h; sourceTree = "<group>"; };
|
|
135
|
-
4E84CA282D3C4ACF00D23ADD /* EventEmitters.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = EventEmitters.cpp; sourceTree = "<group>"; };
|
|
136
|
-
4E84CA292D3C4ACF00D23ADD /* Props.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Props.h; sourceTree = "<group>"; };
|
|
137
|
-
4E84CA2A2D3C4ACF00D23ADD /* Props.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = Props.cpp; sourceTree = "<group>"; };
|
|
138
|
-
4E84CA2B2D3C4ACF00D23ADD /* RCTComponentViewHelpers.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RCTComponentViewHelpers.h; sourceTree = "<group>"; };
|
|
139
|
-
4E84CA2C2D3C4ACF00D23ADD /* RNMapsSpecs.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RNMapsSpecs.h; sourceTree = "<group>"; };
|
|
140
|
-
4E84CA2D2D3C4ACF00D23ADD /* RNMapsSpecs-generated.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = "RNMapsSpecs-generated.mm"; sourceTree = "<group>"; };
|
|
141
|
-
4E84CA2E2D3C4ACF00D23ADD /* ShadowNodes.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ShadowNodes.h; sourceTree = "<group>"; };
|
|
142
|
-
4E84CA2F2D3C4ACF00D23ADD /* ShadowNodes.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = ShadowNodes.cpp; sourceTree = "<group>"; };
|
|
143
|
-
4E84CA302D3C4ACF00D23ADD /* States.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = States.h; sourceTree = "<group>"; };
|
|
144
|
-
4E84CA312D3C4ACF00D23ADD /* States.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = States.cpp; sourceTree = "<group>"; };
|
|
145
|
-
4E84CA332D3C4ACF00D23ADD /* RNMapsSpecsJSI.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RNMapsSpecsJSI.h; sourceTree = "<group>"; };
|
|
146
|
-
4E84CA342D3C4ACF00D23ADD /* RNMapsSpecsJSI-generated.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = "RNMapsSpecsJSI-generated.cpp"; sourceTree = "<group>"; };
|
|
147
131
|
53D31635202E723B00B55447 /* AIRMapOverlayManager.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AIRMapOverlayManager.m; sourceTree = "<group>"; };
|
|
148
132
|
53D31637202E725E00B55447 /* AIRMapOverlayManager.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AIRMapOverlayManager.h; sourceTree = "<group>"; };
|
|
149
133
|
53D31638202E72D500B55447 /* AIRMapOverlay.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AIRMapOverlay.h; sourceTree = "<group>"; };
|
|
@@ -230,7 +214,6 @@
|
|
|
230
214
|
11FA5C481C4A1296003AC2EE = {
|
|
231
215
|
isa = PBXGroup;
|
|
232
216
|
children = (
|
|
233
|
-
4E84CA352D3C4ACF00D23ADD /* generated */,
|
|
234
217
|
4E0A36152BFB4E76009FCCE4 /* PrivacyInfo.xcprivacy */,
|
|
235
218
|
9B9498A32017EF9D00158761 /* AirGoogleMaps */,
|
|
236
219
|
62AEC4D31FD5A0AA003225E0 /* AIRMapLocalTileOverlay.m */,
|
|
@@ -251,6 +234,7 @@
|
|
|
251
234
|
11FA5C531C4A1296003AC2EE /* AirMaps */ = {
|
|
252
235
|
isa = PBXGroup;
|
|
253
236
|
children = (
|
|
237
|
+
4E34F9FF2D84E24A009CC683 /* FabricPlaceholders */,
|
|
254
238
|
4E0CFBDC2B388F2B0017E126 /* RCTComponentData+Maps.h */,
|
|
255
239
|
4E0CFBDD2B388F2B0017E126 /* RCTComponentData+Maps.m */,
|
|
256
240
|
BE2E4EC72621F63C00CC7F2E /* AIRMapUrlTileCachedOverlay.h */,
|
|
@@ -320,34 +304,15 @@
|
|
|
320
304
|
path = AirMaps;
|
|
321
305
|
sourceTree = "<group>";
|
|
322
306
|
};
|
|
323
|
-
|
|
307
|
+
4E34F9FF2D84E24A009CC683 /* FabricPlaceholders */ = {
|
|
324
308
|
isa = PBXGroup;
|
|
325
309
|
children = (
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
4E84CA292D3C4ACF00D23ADD /* Props.h */,
|
|
331
|
-
4E84CA2A2D3C4ACF00D23ADD /* Props.cpp */,
|
|
332
|
-
4E84CA2B2D3C4ACF00D23ADD /* RCTComponentViewHelpers.h */,
|
|
333
|
-
4E84CA2C2D3C4ACF00D23ADD /* RNMapsSpecs.h */,
|
|
334
|
-
4E84CA2D2D3C4ACF00D23ADD /* RNMapsSpecs-generated.mm */,
|
|
335
|
-
4E84CA2E2D3C4ACF00D23ADD /* ShadowNodes.h */,
|
|
336
|
-
4E84CA2F2D3C4ACF00D23ADD /* ShadowNodes.cpp */,
|
|
337
|
-
4E84CA302D3C4ACF00D23ADD /* States.h */,
|
|
338
|
-
4E84CA312D3C4ACF00D23ADD /* States.cpp */,
|
|
310
|
+
4E34F9FB2D84E24A009CC683 /* PlaceHolderGoogleMapView.h */,
|
|
311
|
+
4E34F9FC2D84E24A009CC683 /* PlaceHolderGoogleMapView.mm */,
|
|
312
|
+
4E34F9FD2D84E24A009CC683 /* PlaceHolderPolygonView.h */,
|
|
313
|
+
4E34F9FE2D84E24A009CC683 /* PlaceHolderPolygonView.mm */,
|
|
339
314
|
);
|
|
340
|
-
path =
|
|
341
|
-
sourceTree = "<group>";
|
|
342
|
-
};
|
|
343
|
-
4E84CA352D3C4ACF00D23ADD /* generated */ = {
|
|
344
|
-
isa = PBXGroup;
|
|
345
|
-
children = (
|
|
346
|
-
4E84CA322D3C4ACF00D23ADD /* RNMapsSpecs */,
|
|
347
|
-
4E84CA332D3C4ACF00D23ADD /* RNMapsSpecsJSI.h */,
|
|
348
|
-
4E84CA342D3C4ACF00D23ADD /* RNMapsSpecsJSI-generated.cpp */,
|
|
349
|
-
);
|
|
350
|
-
path = generated;
|
|
315
|
+
path = FabricPlaceholders;
|
|
351
316
|
sourceTree = "<group>";
|
|
352
317
|
};
|
|
353
318
|
9B9498A32017EF9D00158761 /* AirGoogleMaps */ = {
|
|
@@ -490,6 +455,8 @@
|
|
|
490
455
|
BE2E4EC92621F63C00CC7F2E /* AIRMapUrlTileCachedOverlay.m in Sources */,
|
|
491
456
|
DA6C263E1C9E324A0035349F /* AIRMapUrlTileManager.m in Sources */,
|
|
492
457
|
9B9498DB2017EFB800158761 /* AIRGoogleMapMarker.m in Sources */,
|
|
458
|
+
4E34FA002D84E24A009CC683 /* PlaceHolderGoogleMapView.mm in Sources */,
|
|
459
|
+
4E34FA012D84E24A009CC683 /* PlaceHolderPolygonView.mm in Sources */,
|
|
493
460
|
628F81201FD16DF80058313A /* AIRMapLocalTile.m in Sources */,
|
|
494
461
|
9B9498D92017EFB800158761 /* AIRGoogleMapCalloutManager.m in Sources */,
|
|
495
462
|
53D3163A202E72FC00B55447 /* AIRMapOverlay.m in Sources */,
|
|
@@ -498,13 +465,6 @@
|
|
|
498
465
|
1125B2DF1C4AD3DA007D0023 /* AIRMapCoordinate.m in Sources */,
|
|
499
466
|
9B9498D62017EFB800158761 /* AIRGoogleMapCircleManager.m in Sources */,
|
|
500
467
|
8BC85FB02107CFEC0006CEA5 /* AIRGoogleMapOverlay.m in Sources */,
|
|
501
|
-
4E84CA362D3C4ACF00D23ADD /* EventEmitters.cpp in Sources */,
|
|
502
|
-
4E84CA372D3C4ACF00D23ADD /* RNMapsSpecsJSI-generated.cpp in Sources */,
|
|
503
|
-
4E84CA382D3C4ACF00D23ADD /* Props.cpp in Sources */,
|
|
504
|
-
4E84CA392D3C4ACF00D23ADD /* ShadowNodes.cpp in Sources */,
|
|
505
|
-
4E84CA3A2D3C4ACF00D23ADD /* RNMapsSpecs-generated.mm in Sources */,
|
|
506
|
-
4E84CA3B2D3C4ACF00D23ADD /* ComponentDescriptors.cpp in Sources */,
|
|
507
|
-
4E84CA3C2D3C4ACF00D23ADD /* States.cpp in Sources */,
|
|
508
468
|
1125B2F21C4AD445007D0023 /* SMCalloutView.m in Sources */,
|
|
509
469
|
2163AA501FEAEDD100BBEC95 /* AIRMapPolylineRenderer.m in Sources */,
|
|
510
470
|
9B9498D02017EFB800158761 /* AIRGoogleMapPolylineManager.m in Sources */,
|
package/lib/MapView.d.ts
CHANGED
|
@@ -245,7 +245,7 @@ export type MapViewProps = ViewProps & {
|
|
|
245
245
|
* @platform iOS: Google Maps only
|
|
246
246
|
* @platform Android: Supported
|
|
247
247
|
*/
|
|
248
|
-
onMapLoaded?: (event: NativeSyntheticEvent<
|
|
248
|
+
onMapLoaded?: (event: NativeSyntheticEvent<null>) => void;
|
|
249
249
|
/**
|
|
250
250
|
* Callback that is called once the map is ready.
|
|
251
251
|
*
|
|
@@ -255,7 +255,7 @@ export type MapViewProps = ViewProps & {
|
|
|
255
255
|
* @platform iOS: Supported
|
|
256
256
|
* @platform Android: Supported
|
|
257
257
|
*/
|
|
258
|
-
onMapReady?: (event?: NativeSyntheticEvent<
|
|
258
|
+
onMapReady?: (event?: NativeSyntheticEvent<null>) => void;
|
|
259
259
|
/**
|
|
260
260
|
* Callback that is called when a marker on the map becomes deselected.
|
|
261
261
|
* This will be called when the callout for that marker is about to be hidden.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { HostComponent, ViewProps, ColorValue } from 'react-native';
|
|
3
|
-
import { Double, Int32, WithDefault, Float, DirectEventHandler
|
|
3
|
+
import { Double, Int32, WithDefault, Float, DirectEventHandler } from 'react-native/Libraries/Types/CodegenTypes';
|
|
4
4
|
export type EdgePadding = Readonly<{
|
|
5
5
|
top: Double;
|
|
6
6
|
right: Double;
|
|
@@ -14,7 +14,7 @@ export type Frame = Readonly<{
|
|
|
14
14
|
width: Double;
|
|
15
15
|
height: Double;
|
|
16
16
|
}>;
|
|
17
|
-
export type ClickEvent =
|
|
17
|
+
export type ClickEvent = DirectEventHandler<Readonly<{
|
|
18
18
|
coordinate: {
|
|
19
19
|
latitude: Double;
|
|
20
20
|
longitude: Double;
|
|
@@ -37,7 +37,7 @@ export type KmlMarker = {
|
|
|
37
37
|
y: Double;
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
|
-
export type LongPressEventHandler =
|
|
40
|
+
export type LongPressEventHandler = DirectEventHandler<Readonly<{
|
|
41
41
|
coordinate: {
|
|
42
42
|
latitude: Double;
|
|
43
43
|
longitude: Double;
|
|
@@ -48,7 +48,7 @@ export type LongPressEventHandler = BubblingEventHandler<Readonly<{
|
|
|
48
48
|
};
|
|
49
49
|
action?: string;
|
|
50
50
|
}>>;
|
|
51
|
-
export type MarkerDeselectEventHandler =
|
|
51
|
+
export type MarkerDeselectEventHandler = DirectEventHandler<Readonly<{
|
|
52
52
|
action?: string;
|
|
53
53
|
id: string;
|
|
54
54
|
coordinate: {
|
|
@@ -56,7 +56,7 @@ export type MarkerDeselectEventHandler = BubblingEventHandler<Readonly<{
|
|
|
56
56
|
longitude: Double;
|
|
57
57
|
};
|
|
58
58
|
}>>;
|
|
59
|
-
export type MarkerSelectEventHandler =
|
|
59
|
+
export type MarkerSelectEventHandler = DirectEventHandler<Readonly<{
|
|
60
60
|
action?: string;
|
|
61
61
|
id: string;
|
|
62
62
|
coordinate: {
|
|
@@ -64,7 +64,7 @@ export type MarkerSelectEventHandler = BubblingEventHandler<Readonly<{
|
|
|
64
64
|
longitude: Double;
|
|
65
65
|
};
|
|
66
66
|
}>>;
|
|
67
|
-
export type CalloutPressEvent =
|
|
67
|
+
export type CalloutPressEvent = DirectEventHandler<{
|
|
68
68
|
action?: string;
|
|
69
69
|
/**
|
|
70
70
|
* @platform iOS
|
|
@@ -150,13 +150,10 @@ export type IndoorBuildingEventHandler = DirectEventHandler<Readonly<{
|
|
|
150
150
|
activeLevelIndex: Int32;
|
|
151
151
|
};
|
|
152
152
|
}>>;
|
|
153
|
-
export type KmlMapEventHandler = DirectEventHandler<Readonly<{}>>;
|
|
154
|
-
export type MapLoadedEventHandler = DirectEventHandler<Readonly<{}>>;
|
|
155
|
-
export type MapReadyEventHandler = DirectEventHandler<Readonly<{}>>;
|
|
156
153
|
export type Details = Readonly<{
|
|
157
154
|
isGesture?: boolean;
|
|
158
155
|
}>;
|
|
159
|
-
export type MarkerDragEventHandler =
|
|
156
|
+
export type MarkerDragEventHandler = DirectEventHandler<Readonly<{
|
|
160
157
|
coordinate: {
|
|
161
158
|
latitude: Double;
|
|
162
159
|
longitude: Double;
|
|
@@ -167,7 +164,7 @@ export type MarkerDragEventHandler = BubblingEventHandler<Readonly<{
|
|
|
167
164
|
};
|
|
168
165
|
id?: string;
|
|
169
166
|
}>>;
|
|
170
|
-
export type MarkerDragStartEndEventHandler =
|
|
167
|
+
export type MarkerDragStartEndEventHandler = DirectEventHandler<Readonly<{
|
|
171
168
|
coordinate: {
|
|
172
169
|
latitude: Double;
|
|
173
170
|
longitude: Double;
|
|
@@ -178,7 +175,7 @@ export type MarkerDragStartEndEventHandler = BubblingEventHandler<Readonly<{
|
|
|
178
175
|
y: Double;
|
|
179
176
|
};
|
|
180
177
|
}>>;
|
|
181
|
-
export type MarkerPressEventHandler =
|
|
178
|
+
export type MarkerPressEventHandler = DirectEventHandler<Readonly<{
|
|
182
179
|
action?: string;
|
|
183
180
|
id: string;
|
|
184
181
|
coordinate: {
|
|
@@ -190,7 +187,7 @@ export type MarkerPressEventHandler = BubblingEventHandler<Readonly<{
|
|
|
190
187
|
y: Double;
|
|
191
188
|
};
|
|
192
189
|
}>>;
|
|
193
|
-
export type PanDragEventHandler =
|
|
190
|
+
export type PanDragEventHandler = DirectEventHandler<Readonly<{
|
|
194
191
|
coordinate: {
|
|
195
192
|
latitude: Double;
|
|
196
193
|
longitude: Double;
|
|
@@ -200,7 +197,7 @@ export type PanDragEventHandler = BubblingEventHandler<Readonly<{
|
|
|
200
197
|
y: Double;
|
|
201
198
|
};
|
|
202
199
|
}>>;
|
|
203
|
-
export type PoiClickEventHandler =
|
|
200
|
+
export type PoiClickEventHandler = DirectEventHandler<Readonly<{
|
|
204
201
|
placeId: string;
|
|
205
202
|
name: string;
|
|
206
203
|
coordinate: {
|
|
@@ -212,7 +209,7 @@ export type PoiClickEventHandler = BubblingEventHandler<Readonly<{
|
|
|
212
209
|
y: Double;
|
|
213
210
|
};
|
|
214
211
|
}>>;
|
|
215
|
-
export type MapPressEventHandler =
|
|
212
|
+
export type MapPressEventHandler = DirectEventHandler<Readonly<{
|
|
216
213
|
coordinate: {
|
|
217
214
|
latitude: Double;
|
|
218
215
|
longitude: Double;
|
|
@@ -223,7 +220,6 @@ export type MapPressEventHandler = BubblingEventHandler<Readonly<{
|
|
|
223
220
|
};
|
|
224
221
|
action?: string;
|
|
225
222
|
}>>;
|
|
226
|
-
export type RegionChangeStartEventHandler = DirectEventHandler<Details>;
|
|
227
223
|
export type RegionChangeEvent = Readonly<{
|
|
228
224
|
region: {
|
|
229
225
|
latitude: Double;
|
|
@@ -233,7 +229,6 @@ export type RegionChangeEvent = Readonly<{
|
|
|
233
229
|
};
|
|
234
230
|
continuous?: boolean;
|
|
235
231
|
}>;
|
|
236
|
-
export type RegionChangeEventHandler = BubblingEventHandler<RegionChangeEvent>;
|
|
237
232
|
export type UserLocationChangeEvent = Readonly<{
|
|
238
233
|
coordinate?: {
|
|
239
234
|
latitude: Double;
|
|
@@ -482,7 +477,7 @@ export interface MapFabricNativeProps extends ViewProps {
|
|
|
482
477
|
* @platform iOS: Google Maps only
|
|
483
478
|
* @platform Android: Supported
|
|
484
479
|
*/
|
|
485
|
-
onKmlReady?:
|
|
480
|
+
onKmlReady?: DirectEventHandler<null>;
|
|
486
481
|
/**
|
|
487
482
|
* Callback that is called when user makes a "long press" somewhere on the map.
|
|
488
483
|
*
|
|
@@ -496,7 +491,7 @@ export interface MapFabricNativeProps extends ViewProps {
|
|
|
496
491
|
* @platform iOS: Google Maps only
|
|
497
492
|
* @platform Android: Supported
|
|
498
493
|
*/
|
|
499
|
-
onMapLoaded?:
|
|
494
|
+
onMapLoaded?: DirectEventHandler<null>;
|
|
500
495
|
/**
|
|
501
496
|
* Callback that is called once the map is ready.
|
|
502
497
|
*
|
|
@@ -506,7 +501,7 @@ export interface MapFabricNativeProps extends ViewProps {
|
|
|
506
501
|
* @platform iOS: Supported
|
|
507
502
|
* @platform Android: Supported
|
|
508
503
|
*/
|
|
509
|
-
onMapReady?:
|
|
504
|
+
onMapReady?: DirectEventHandler<null>;
|
|
510
505
|
/**
|
|
511
506
|
* Callback that is called when a marker on the map becomes deselected.
|
|
512
507
|
* This will be called when the callout for that marker is about to be hidden.
|
|
@@ -583,7 +578,7 @@ export interface MapFabricNativeProps extends ViewProps {
|
|
|
583
578
|
* @platform iOS: Supported
|
|
584
579
|
* @platform Android: Supported
|
|
585
580
|
*/
|
|
586
|
-
onRegionChangeStart?:
|
|
581
|
+
onRegionChangeStart?: DirectEventHandler<RegionChangeEvent>;
|
|
587
582
|
/**
|
|
588
583
|
* Callback that is called continuously when the region changes, such as when a user is dragging the map.
|
|
589
584
|
* `isGesture` property indicates if the move was from the user (true) or an animation (false).
|
|
@@ -592,7 +587,7 @@ export interface MapFabricNativeProps extends ViewProps {
|
|
|
592
587
|
* @platform iOS: Supported
|
|
593
588
|
* @platform Android: Supported
|
|
594
589
|
*/
|
|
595
|
-
onRegionChange?:
|
|
590
|
+
onRegionChange?: DirectEventHandler<RegionChangeEvent>;
|
|
596
591
|
/**
|
|
597
592
|
* Callback that is called once when the region changes, such as when the user is done moving the map.
|
|
598
593
|
* `isGesture` property indicates if the move was from the user (true) or an animation (false).
|
|
@@ -601,7 +596,7 @@ export interface MapFabricNativeProps extends ViewProps {
|
|
|
601
596
|
* @platform iOS: Supported
|
|
602
597
|
* @platform Android: Supported
|
|
603
598
|
*/
|
|
604
|
-
onRegionChangeComplete?:
|
|
599
|
+
onRegionChangeComplete?: DirectEventHandler<RegionChangeEvent>;
|
|
605
600
|
/**
|
|
606
601
|
* Callback that is called when the underlying map figures our users current location
|
|
607
602
|
* (coordinate also includes isFromMockProvider value for Android API 18 and above).
|
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.104",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"lint": "eslint . --max-warnings 0",
|
|
@@ -8,7 +8,6 @@ import {
|
|
|
8
8
|
WithDefault,
|
|
9
9
|
Float,
|
|
10
10
|
DirectEventHandler,
|
|
11
|
-
BubblingEventHandler,
|
|
12
11
|
} from 'react-native/Libraries/Types/CodegenTypes';
|
|
13
12
|
|
|
14
13
|
export type EdgePadding = Readonly<{
|
|
@@ -33,7 +32,7 @@ export type Frame = Readonly<{
|
|
|
33
32
|
height: Double;
|
|
34
33
|
}>;
|
|
35
34
|
|
|
36
|
-
export type ClickEvent =
|
|
35
|
+
export type ClickEvent = DirectEventHandler<
|
|
37
36
|
Readonly<{
|
|
38
37
|
coordinate: {
|
|
39
38
|
latitude: Double; // Inlined LatLng
|
|
@@ -60,7 +59,7 @@ export type KmlMarker = {
|
|
|
60
59
|
}; // Non-nullable Point
|
|
61
60
|
};
|
|
62
61
|
|
|
63
|
-
export type LongPressEventHandler =
|
|
62
|
+
export type LongPressEventHandler = DirectEventHandler<
|
|
64
63
|
Readonly<{
|
|
65
64
|
coordinate: {
|
|
66
65
|
latitude: Double; // Inlined LatLng
|
|
@@ -74,7 +73,7 @@ export type LongPressEventHandler = BubblingEventHandler<
|
|
|
74
73
|
}>
|
|
75
74
|
>;
|
|
76
75
|
|
|
77
|
-
export type MarkerDeselectEventHandler =
|
|
76
|
+
export type MarkerDeselectEventHandler = DirectEventHandler<
|
|
78
77
|
Readonly<{
|
|
79
78
|
action?: string;
|
|
80
79
|
id: string;
|
|
@@ -85,7 +84,7 @@ export type MarkerDeselectEventHandler = BubblingEventHandler<
|
|
|
85
84
|
}>
|
|
86
85
|
>;
|
|
87
86
|
|
|
88
|
-
export type MarkerSelectEventHandler =
|
|
87
|
+
export type MarkerSelectEventHandler = DirectEventHandler<
|
|
89
88
|
Readonly<{
|
|
90
89
|
action?: string;
|
|
91
90
|
id: string;
|
|
@@ -96,7 +95,7 @@ export type MarkerSelectEventHandler = BubblingEventHandler<
|
|
|
96
95
|
}>
|
|
97
96
|
>;
|
|
98
97
|
|
|
99
|
-
export type CalloutPressEvent =
|
|
98
|
+
export type CalloutPressEvent = DirectEventHandler<{
|
|
100
99
|
action?: string;
|
|
101
100
|
|
|
102
101
|
/**
|
|
@@ -204,17 +203,11 @@ export type IndoorBuildingEventHandler = DirectEventHandler<
|
|
|
204
203
|
}>
|
|
205
204
|
>;
|
|
206
205
|
|
|
207
|
-
export type KmlMapEventHandler = DirectEventHandler<Readonly<{}>>;
|
|
208
|
-
|
|
209
|
-
export type MapLoadedEventHandler = DirectEventHandler<Readonly<{}>>;
|
|
210
|
-
|
|
211
|
-
export type MapReadyEventHandler = DirectEventHandler<Readonly<{}>>;
|
|
212
|
-
|
|
213
206
|
export type Details = Readonly<{
|
|
214
207
|
isGesture?: boolean; // Optional boolean for gesture detail
|
|
215
208
|
}>;
|
|
216
209
|
|
|
217
|
-
export type MarkerDragEventHandler =
|
|
210
|
+
export type MarkerDragEventHandler = DirectEventHandler<
|
|
218
211
|
Readonly<{
|
|
219
212
|
coordinate: {
|
|
220
213
|
latitude: Double; // Inlined LatLng
|
|
@@ -228,7 +221,7 @@ export type MarkerDragEventHandler = BubblingEventHandler<
|
|
|
228
221
|
}>
|
|
229
222
|
>;
|
|
230
223
|
|
|
231
|
-
export type MarkerDragStartEndEventHandler =
|
|
224
|
+
export type MarkerDragStartEndEventHandler = DirectEventHandler<
|
|
232
225
|
Readonly<{
|
|
233
226
|
coordinate: {
|
|
234
227
|
latitude: Double; // Inlined LatLng
|
|
@@ -242,7 +235,7 @@ export type MarkerDragStartEndEventHandler = BubblingEventHandler<
|
|
|
242
235
|
}>
|
|
243
236
|
>;
|
|
244
237
|
|
|
245
|
-
export type MarkerPressEventHandler =
|
|
238
|
+
export type MarkerPressEventHandler = DirectEventHandler<
|
|
246
239
|
Readonly<{
|
|
247
240
|
action?: string;
|
|
248
241
|
id: string;
|
|
@@ -257,7 +250,7 @@ export type MarkerPressEventHandler = BubblingEventHandler<
|
|
|
257
250
|
}>
|
|
258
251
|
>;
|
|
259
252
|
|
|
260
|
-
export type PanDragEventHandler =
|
|
253
|
+
export type PanDragEventHandler = DirectEventHandler<
|
|
261
254
|
Readonly<{
|
|
262
255
|
coordinate: {
|
|
263
256
|
latitude: Double; // Inlined LatLng
|
|
@@ -270,7 +263,7 @@ export type PanDragEventHandler = BubblingEventHandler<
|
|
|
270
263
|
}>
|
|
271
264
|
>;
|
|
272
265
|
|
|
273
|
-
export type PoiClickEventHandler =
|
|
266
|
+
export type PoiClickEventHandler = DirectEventHandler<
|
|
274
267
|
Readonly<{
|
|
275
268
|
placeId: string;
|
|
276
269
|
name: string;
|
|
@@ -285,7 +278,7 @@ export type PoiClickEventHandler = BubblingEventHandler<
|
|
|
285
278
|
}>
|
|
286
279
|
>;
|
|
287
280
|
|
|
288
|
-
export type MapPressEventHandler =
|
|
281
|
+
export type MapPressEventHandler = DirectEventHandler<
|
|
289
282
|
Readonly<{
|
|
290
283
|
coordinate: {
|
|
291
284
|
latitude: Double; // Inlined LatLng
|
|
@@ -298,9 +291,6 @@ export type MapPressEventHandler = BubblingEventHandler<
|
|
|
298
291
|
action?: string;
|
|
299
292
|
}>
|
|
300
293
|
>;
|
|
301
|
-
|
|
302
|
-
export type RegionChangeStartEventHandler = DirectEventHandler<Details>;
|
|
303
|
-
|
|
304
294
|
export type RegionChangeEvent = Readonly<{
|
|
305
295
|
region: {
|
|
306
296
|
latitude: Double; // Non-nullable Double for latitude
|
|
@@ -310,9 +300,6 @@ export type RegionChangeEvent = Readonly<{
|
|
|
310
300
|
}; // The region object
|
|
311
301
|
continuous?: boolean;
|
|
312
302
|
}>;
|
|
313
|
-
|
|
314
|
-
export type RegionChangeEventHandler = BubblingEventHandler<RegionChangeEvent>;
|
|
315
|
-
|
|
316
303
|
export type UserLocationChangeEvent = Readonly<{
|
|
317
304
|
coordinate?: {
|
|
318
305
|
latitude: Double; // Non-nullable Double for latitude
|
|
@@ -604,7 +591,7 @@ export interface MapFabricNativeProps extends ViewProps {
|
|
|
604
591
|
* @platform iOS: Google Maps only
|
|
605
592
|
* @platform Android: Supported
|
|
606
593
|
*/
|
|
607
|
-
onKmlReady?:
|
|
594
|
+
onKmlReady?: DirectEventHandler<null>;
|
|
608
595
|
|
|
609
596
|
/**
|
|
610
597
|
* Callback that is called when user makes a "long press" somewhere on the map.
|
|
@@ -620,7 +607,7 @@ export interface MapFabricNativeProps extends ViewProps {
|
|
|
620
607
|
* @platform iOS: Google Maps only
|
|
621
608
|
* @platform Android: Supported
|
|
622
609
|
*/
|
|
623
|
-
onMapLoaded?:
|
|
610
|
+
onMapLoaded?: DirectEventHandler<null>;
|
|
624
611
|
|
|
625
612
|
/**
|
|
626
613
|
* Callback that is called once the map is ready.
|
|
@@ -631,7 +618,7 @@ export interface MapFabricNativeProps extends ViewProps {
|
|
|
631
618
|
* @platform iOS: Supported
|
|
632
619
|
* @platform Android: Supported
|
|
633
620
|
*/
|
|
634
|
-
onMapReady?:
|
|
621
|
+
onMapReady?: DirectEventHandler<null>;
|
|
635
622
|
|
|
636
623
|
/**
|
|
637
624
|
* Callback that is called when a marker on the map becomes deselected.
|
|
@@ -723,7 +710,7 @@ export interface MapFabricNativeProps extends ViewProps {
|
|
|
723
710
|
* @platform iOS: Supported
|
|
724
711
|
* @platform Android: Supported
|
|
725
712
|
*/
|
|
726
|
-
onRegionChangeStart?:
|
|
713
|
+
onRegionChangeStart?: DirectEventHandler<RegionChangeEvent>;
|
|
727
714
|
|
|
728
715
|
/**
|
|
729
716
|
* Callback that is called continuously when the region changes, such as when a user is dragging the map.
|
|
@@ -733,7 +720,7 @@ export interface MapFabricNativeProps extends ViewProps {
|
|
|
733
720
|
* @platform iOS: Supported
|
|
734
721
|
* @platform Android: Supported
|
|
735
722
|
*/
|
|
736
|
-
onRegionChange?:
|
|
723
|
+
onRegionChange?: DirectEventHandler<RegionChangeEvent>;
|
|
737
724
|
|
|
738
725
|
/**
|
|
739
726
|
* Callback that is called once when the region changes, such as when the user is done moving the map.
|
|
@@ -743,7 +730,7 @@ export interface MapFabricNativeProps extends ViewProps {
|
|
|
743
730
|
* @platform iOS: Supported
|
|
744
731
|
* @platform Android: Supported
|
|
745
732
|
*/
|
|
746
|
-
onRegionChangeComplete?:
|
|
733
|
+
onRegionChangeComplete?: DirectEventHandler<RegionChangeEvent>;
|
|
747
734
|
|
|
748
735
|
/**
|
|
749
736
|
* Callback that is called when the underlying map figures our users current location
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|