react-native-maps 1.21.0-alpha.99 → 1.21.0
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/README.md +9 -4
- package/android/build.gradle +65 -72
- package/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/android/src/main/RCTAppDependencyProvider.h +25 -0
- package/android/src/main/RCTAppDependencyProvider.mm +55 -0
- package/android/src/main/RCTModulesConformingToProtocolsProvider.h +18 -0
- package/android/src/main/RCTModulesConformingToProtocolsProvider.mm +33 -0
- package/android/src/main/RCTThirdPartyComponentsProvider.h +16 -0
- package/android/src/main/RCTThirdPartyComponentsProvider.mm +28 -0
- package/android/src/main/ReactAppDependencyProvider.podspec +34 -0
- package/android/src/main/java/com/facebook/fbreact/specs/NativeAirMapsModuleSpec.java +63 -0
- package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsCalloutManagerDelegate.java +35 -0
- package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsCalloutManagerInterface.java +17 -0
- package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsCircleManagerDelegate.java +49 -0
- package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsCircleManagerInterface.java +23 -0
- package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsGooglePolygonManagerDelegate.java +49 -0
- package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsGooglePolygonManagerInterface.java +23 -0
- package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsMapViewManagerDelegate.java +209 -0
- package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsMapViewManagerInterface.java +74 -0
- package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsMarkerManagerDelegate.java +104 -0
- package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsMarkerManagerInterface.java +39 -0
- package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsOverlayManagerDelegate.java +45 -0
- package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsOverlayManagerInterface.java +22 -0
- package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsPolylineManagerDelegate.java +58 -0
- package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsPolylineManagerInterface.java +26 -0
- package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsUrlTileManagerDelegate.java +62 -0
- package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsUrlTileManagerInterface.java +27 -0
- package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsWMSTileManagerDelegate.java +56 -0
- package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsWMSTileManagerInterface.java +25 -0
- package/android/src/main/java/com/rnmaps/fabric/MapViewManager.java +5 -1
- package/android/src/main/java/com/rnmaps/fabric/NativeAirMapsModule.java +1 -1
- package/android/src/main/java/com/rnmaps/fabric/OverlayManager.java +9 -3
- package/android/src/main/java/com/rnmaps/fabric/UrlTileManager.java +124 -0
- package/android/src/main/java/com/rnmaps/fabric/WMSTileManager.java +114 -0
- package/android/src/main/java/com/rnmaps/maps/MapAirModulePackage.java +19 -3
- package/android/src/main/java/com/rnmaps/maps/MapMarker.java +608 -603
- package/android/src/main/java/com/rnmaps/maps/MapMarkerManager.java +3 -3
- package/android/src/main/java/com/rnmaps/maps/MapOverlay.java +2 -22
- package/android/src/main/java/com/rnmaps/maps/MapOverlayManager.java +23 -1
- package/android/src/main/java/com/rnmaps/maps/MapUrlTile.java +18 -18
- package/android/src/main/java/com/rnmaps/maps/MapUrlTileManager.java +10 -14
- package/android/src/main/java/com/rnmaps/maps/MapView.java +58 -49
- package/android/src/main/java/com/rnmaps/maps/MapWMSTile.java +3 -3
- package/android/src/main/java/com/rnmaps/maps/MapWMSTileManager.java +10 -10
- package/android/src/main/jni/CMakeLists.txt +36 -0
- package/android/src/main/jni/RNMapsSpecs-generated.cpp +68 -0
- package/android/src/main/jni/RNMapsSpecs.h +31 -0
- package/android/src/main/jni/react/renderer/components/RNMapsSpecs/ComponentDescriptors.cpp +31 -0
- package/android/src/main/jni/react/renderer/components/RNMapsSpecs/ComponentDescriptors.h +33 -0
- package/android/src/main/jni/react/renderer/components/RNMapsSpecs/EventEmitters.cpp +979 -0
- package/android/src/main/jni/react/renderer/components/RNMapsSpecs/EventEmitters.h +860 -0
- package/android/src/main/jni/react/renderer/components/RNMapsSpecs/Props.cpp +227 -0
- package/android/src/main/jni/react/renderer/components/RNMapsSpecs/Props.h +1297 -0
- package/android/src/main/jni/react/renderer/components/RNMapsSpecs/RNMapsSpecsJSI-generated.cpp +74 -0
- package/android/src/main/jni/react/renderer/components/RNMapsSpecs/RNMapsSpecsJSI.h +268 -0
- package/android/src/main/jni/react/renderer/components/RNMapsSpecs/ShadowNodes.cpp +26 -0
- package/android/src/main/jni/react/renderer/components/RNMapsSpecs/ShadowNodes.h +131 -0
- package/android/src/main/jni/react/renderer/components/RNMapsSpecs/States.cpp +16 -0
- package/android/src/main/jni/react/renderer/components/RNMapsSpecs/States.h +137 -0
- package/ios/AirGoogleMaps/AIRGoogleMap.h +13 -13
- package/ios/AirGoogleMaps/{AIRGoogleMap.m → AIRGoogleMap.mm} +32 -34
- package/ios/AirGoogleMaps/AIRGoogleMapManager.h +1 -0
- package/ios/AirGoogleMaps/AIRGoogleMapManager.mm +543 -0
- package/ios/AirGoogleMaps/AIRGoogleMapMarker.m +3 -3
- package/ios/AirGoogleMaps/AIRGoogleMapMarkerManager.m +1 -1
- package/ios/AirGoogleMaps/AIRGoogleMapUrlTile.m +2 -2
- package/ios/AirGoogleMaps/AIRGoogleMapWMSTile.m +2 -2
- package/ios/AirGoogleMaps/RNMapsGoogleMapView.h +5 -2
- package/ios/AirGoogleMaps/RNMapsGoogleMapView.mm +41 -33
- package/ios/AirGoogleMaps/RNMapsGoogleMapViewManager.mm +16 -1
- package/ios/AirGoogleMaps/RNMapsGooglePolygonView.mm +23 -14
- package/ios/AirGoogleMaps/RNMapsGooglePolygonViewManager.mm +1 -0
- package/ios/AirMaps/AIRMap.h +8 -9
- package/ios/AirMaps/{AIRMap.m → AIRMap.mm} +18 -14
- package/ios/AirMaps/AIRMapManager.m +8 -19
- package/ios/AirMaps/AIRMapMarker.m +57 -44
- package/ios/AirMaps/AIRMapOverlay.m +2 -2
- package/ios/AirMaps/AIRMapWMSTile.m +8 -8
- package/ios/AirMaps/FabricPlaceholders/PlaceHolderGoogleMapView.h +25 -0
- package/ios/AirMaps/FabricPlaceholders/PlaceHolderGoogleMapView.mm +77 -0
- package/ios/AirMaps/FabricPlaceholders/PlaceHolderPolygonView.h +25 -0
- package/ios/AirMaps/FabricPlaceholders/PlaceHolderPolygonView.mm +51 -0
- package/ios/AirMaps/RNMapsAirModule.h +2 -3
- package/ios/AirMaps/RNMapsAirModule.mm +14 -0
- package/ios/AirMaps/RNMapsDefines.h +1 -0
- package/ios/AirMaps/RNMapsMapView.h +5 -2
- package/ios/AirMaps/RNMapsMapView.mm +16 -6
- package/ios/AirMaps/RNMapsMapViewManager.mm +19 -1
- package/ios/AirMaps/RNMapsMarkerView.mm +12 -4
- package/ios/AirMaps/RNMapsMarkerViewManager.mm +7 -0
- package/ios/AirMaps/module.modulemap +6 -0
- package/ios/AirMaps.xcodeproj/project.pbxproj +15 -55
- package/ios/generated/RCTAppDependencyProvider.h +25 -0
- package/ios/generated/RCTAppDependencyProvider.mm +55 -0
- package/ios/generated/RCTModulesConformingToProtocolsProvider.h +18 -0
- package/ios/generated/RCTModulesConformingToProtocolsProvider.mm +33 -0
- package/ios/generated/RCTThirdPartyComponentsProvider.h +16 -0
- package/ios/generated/RCTThirdPartyComponentsProvider.mm +26 -0
- package/ios/{AirMaps → generated}/RNMapsAirModuleDelegate.h +1 -1
- package/ios/generated/RNMapsSpecs/ComponentDescriptors.cpp +29 -0
- package/ios/generated/RNMapsSpecs/ComponentDescriptors.h +31 -0
- package/ios/generated/RNMapsSpecs/EventEmitters.cpp +977 -0
- package/ios/generated/RNMapsSpecs/EventEmitters.h +846 -0
- package/ios/generated/RNMapsSpecs/Props.cpp +194 -0
- package/ios/generated/RNMapsSpecs/Props.h +1224 -0
- package/ios/generated/RNMapsSpecs/RCTComponentViewHelpers.h +591 -0
- package/ios/generated/RNMapsSpecs/RNMapsSpecs-generated.mm +92 -0
- package/ios/generated/RNMapsSpecs/RNMapsSpecs.h +137 -0
- package/ios/generated/RNMapsSpecs/ShadowNodes.cpp +24 -0
- package/ios/generated/RNMapsSpecs/ShadowNodes.h +109 -0
- package/ios/generated/RNMapsSpecs/States.cpp +16 -0
- package/ios/generated/RNMapsSpecs/States.h +113 -0
- package/ios/generated/RNMapsSpecsJSI-generated.cpp +74 -0
- package/ios/generated/RNMapsSpecsJSI.h +268 -0
- package/ios/generated/ReactAppDependencyProvider.podspec +34 -0
- package/ios/generated/module.modulemap +15 -0
- package/package.json +30 -26
- package/react-native-google-maps.podspec +27 -0
- package/react-native-maps-generated.podspec +31 -0
- package/react-native-maps.podspec +52 -46
- package/react-native.config.js +16 -0
- package/src/AnimatedRegion.ts +169 -0
- package/src/Geojson.tsx +541 -0
- package/src/MapCallout.tsx +77 -0
- package/src/MapCalloutSubview.tsx +64 -0
- package/src/MapCircle.tsx +162 -0
- package/src/MapHeatmap.tsx +125 -0
- package/src/MapLocalTile.tsx +60 -0
- package/src/MapMarker.tsx +531 -0
- package/src/MapMarkerNativeComponent.ts +51 -0
- package/src/MapOverlay.tsx +178 -0
- package/src/MapPolygon.tsx +188 -0
- package/src/MapPolygon.types.ts +25 -0
- package/src/MapPolyline.tsx +215 -0
- package/src/MapUrlTile.tsx +169 -0
- package/src/MapView.tsx +1230 -0
- package/src/MapView.types.ts +212 -0
- package/src/MapView.web.ts +2 -0
- package/src/MapViewNativeComponent.ts +86 -0
- package/src/MapWMSTile.tsx +148 -0
- package/src/ProviderConstants.ts +2 -0
- package/src/createFabricMap.tsx +253 -0
- package/src/decorateMapComponent.ts +227 -0
- package/src/fixImageProp.ts +17 -0
- package/src/index.ts +52 -0
- package/src/sharedTypes.ts +101 -0
- package/{specs → src/specs}/NativeComponentCircle.ts +3 -4
- package/{specs → src/specs}/NativeComponentGoogleMapView.ts +15 -9
- package/{specs → src/specs}/NativeComponentMapView.ts +61 -32
- package/{specs → src/specs}/NativeComponentOverlay.ts +11 -2
- package/{specs → src/specs}/NativeComponentPolyline.ts +1 -1
- package/src/specs/NativeComponentUrlTile.ts +128 -0
- package/src/specs/NativeComponentWMSTile.ts +107 -0
- package/ios/AirGoogleMaps/AIRGoogleMapManager.m +0 -533
- package/lib/AnimatedRegion.d.ts +0 -19
- package/lib/AnimatedRegion.js +0 -134
- package/lib/Geojson.d.ts +0 -204
- package/lib/Geojson.js +0 -166
- package/lib/MapCallout.d.ts +0 -40
- package/lib/MapCallout.js +0 -51
- package/lib/MapCalloutSubview.d.ts +0 -34
- package/lib/MapCalloutSubview.js +0 -48
- package/lib/MapCircle.d.ts +0 -117
- package/lib/MapCircle.js +0 -53
- package/lib/MapHeatmap.d.ts +0 -78
- package/lib/MapHeatmap.js +0 -59
- package/lib/MapLocalTile.d.ts +0 -35
- package/lib/MapLocalTile.js +0 -44
- package/lib/MapMarker.d.ts +0 -322
- package/lib/MapMarker.js +0 -158
- package/lib/MapMarkerNativeComponent.d.ts +0 -15
- package/lib/MapMarkerNativeComponent.js +0 -15
- package/lib/MapOverlay.d.ts +0 -88
- package/lib/MapOverlay.js +0 -65
- package/lib/MapPolygon.d.ts +0 -140
- package/lib/MapPolygon.js +0 -53
- package/lib/MapPolygon.types.d.ts +0 -18
- package/lib/MapPolygon.types.js +0 -2
- package/lib/MapPolyline.d.ts +0 -156
- package/lib/MapPolyline.js +0 -53
- package/lib/MapUrlTile.d.ts +0 -134
- package/lib/MapUrlTile.js +0 -44
- package/lib/MapView.d.ts +0 -703
- package/lib/MapView.js +0 -427
- package/lib/MapView.types.d.ts +0 -161
- package/lib/MapView.types.js +0 -2
- package/lib/MapView.web.d.ts +0 -1
- package/lib/MapView.web.js +0 -9
- package/lib/MapViewNativeComponent.d.ts +0 -18
- package/lib/MapViewNativeComponent.js +0 -19
- package/lib/MapWMSTile.d.ts +0 -116
- package/lib/MapWMSTile.js +0 -44
- package/lib/ProviderConstants.d.ts +0 -2
- package/lib/ProviderConstants.js +0 -5
- package/lib/createFabricMap.d.ts +0 -24
- package/lib/createFabricMap.js +0 -188
- package/lib/decorateMapComponent.d.ts +0 -36
- package/lib/decorateMapComponent.js +0 -120
- package/lib/fixImageProp.d.ts +0 -4
- package/lib/fixImageProp.js +0 -16
- package/lib/index.d.ts +0 -38
- package/lib/index.js +0 -81
- package/lib/sharedTypes.d.ts +0 -81
- package/lib/sharedTypes.js +0 -2
- package/lib/sharedTypesInternal.js +0 -2
- package/lib/specs/NativeAirMapsModule.d.ts +0 -31
- package/lib/specs/NativeAirMapsModule.js +0 -4
- package/lib/specs/NativeComponentCallout.d.ts +0 -46
- package/lib/specs/NativeComponentCallout.js +0 -9
- package/lib/specs/NativeComponentCircle.d.ts +0 -74
- package/lib/specs/NativeComponentCircle.js +0 -7
- package/lib/specs/NativeComponentGoogleMapView.d.ts +0 -713
- package/lib/specs/NativeComponentGoogleMapView.js +0 -22
- package/lib/specs/NativeComponentGooglePolygon.d.ts +0 -75
- package/lib/specs/NativeComponentGooglePolygon.js +0 -7
- package/lib/specs/NativeComponentMapView.d.ts +0 -847
- package/lib/specs/NativeComponentMapView.js +0 -20
- package/lib/specs/NativeComponentMarker.d.ts +0 -258
- package/lib/specs/NativeComponentMarker.js +0 -19
- package/lib/specs/NativeComponentOverlay.d.ts +0 -67
- package/lib/specs/NativeComponentOverlay.js +0 -7
- package/lib/specs/NativeComponentPolyline.d.ts +0 -101
- package/lib/specs/NativeComponentPolyline.js +0 -7
- /package/ios/AirMaps/{UIView +AirMap.m → UIView+AirMap.m} +0 -0
- /package/ios/{AirMaps → generated}/RNMapsHostVewDelegate.h +0 -0
- /package/{lib/sharedTypesInternal.d.ts → src/sharedTypesInternal.ts} +0 -0
- /package/{specs → src/specs}/NativeAirMapsModule.ts +0 -0
- /package/{specs → src/specs}/NativeComponentCallout.ts +0 -0
- /package/{specs → src/specs}/NativeComponentGooglePolygon.ts +0 -0
- /package/{specs → src/specs}/NativeComponentMarker.ts +0 -0
package/lib/MapMarker.js
DELETED
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.MapMarker = void 0;
|
|
27
|
-
const React = __importStar(require("react"));
|
|
28
|
-
const react_native_1 = require("react-native");
|
|
29
|
-
const decorateMapComponent_1 = __importStar(require("./decorateMapComponent"));
|
|
30
|
-
const MapMarkerNativeComponent_1 = require("./MapMarkerNativeComponent");
|
|
31
|
-
const NativeComponentMarker_1 = require("./specs/NativeComponentMarker");
|
|
32
|
-
const ProviderConstants_1 = require("./ProviderConstants");
|
|
33
|
-
const fixImageProp_1 = require("./fixImageProp");
|
|
34
|
-
class MapMarker extends React.Component {
|
|
35
|
-
getNativeComponent;
|
|
36
|
-
getMapManagerCommand;
|
|
37
|
-
getUIManagerCommand;
|
|
38
|
-
static Animated;
|
|
39
|
-
marker;
|
|
40
|
-
fabricMarker = undefined;
|
|
41
|
-
constructor(props) {
|
|
42
|
-
super(props);
|
|
43
|
-
this.marker = React.createRef();
|
|
44
|
-
this.showCallout = this.showCallout.bind(this);
|
|
45
|
-
this.hideCallout = this.hideCallout.bind(this);
|
|
46
|
-
this.setCoordinates = this.setCoordinates.bind(this);
|
|
47
|
-
this.redrawCallout = this.redrawCallout.bind(this);
|
|
48
|
-
this.animateMarkerToCoordinate = this.animateMarkerToCoordinate.bind(this);
|
|
49
|
-
}
|
|
50
|
-
setNativeProps(props) {
|
|
51
|
-
// @ts-ignore
|
|
52
|
-
this.marker.current?.setNativeProps(props);
|
|
53
|
-
}
|
|
54
|
-
showCallout() {
|
|
55
|
-
if (this.marker.current) {
|
|
56
|
-
if (this.fabricMarker) {
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
NativeComponentMarker_1.Commands.showCallout(this.marker.current);
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
MapMarkerNativeComponent_1.Commands.showCallout(this.marker.current);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
hideCallout() {
|
|
66
|
-
if (this.marker.current) {
|
|
67
|
-
if (this.fabricMarker) {
|
|
68
|
-
// @ts-ignore
|
|
69
|
-
NativeComponentMarker_1.Commands.hideCallout(this.marker.current);
|
|
70
|
-
}
|
|
71
|
-
else {
|
|
72
|
-
MapMarkerNativeComponent_1.Commands.hideCallout(this.marker.current);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
setCoordinates(coordinate) {
|
|
77
|
-
if (this.marker.current) {
|
|
78
|
-
if (this.fabricMarker) {
|
|
79
|
-
NativeComponentMarker_1.Commands.setCoordinates(
|
|
80
|
-
// @ts-ignore
|
|
81
|
-
this.marker.current, coordinate.latitude, coordinate.longitude);
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
MapMarkerNativeComponent_1.Commands.setCoordinates(this.marker.current, coordinate);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
redrawCallout() {
|
|
89
|
-
if (this.marker.current) {
|
|
90
|
-
if (this.fabricMarker) {
|
|
91
|
-
// @ts-ignore
|
|
92
|
-
NativeComponentMarker_1.Commands.redrawCallout(this.marker.current);
|
|
93
|
-
}
|
|
94
|
-
else {
|
|
95
|
-
MapMarkerNativeComponent_1.Commands.redrawCallout(this.marker.current);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
animateMarkerToCoordinate(coordinate, duration = 500) {
|
|
100
|
-
if (this.marker.current) {
|
|
101
|
-
if (this.fabricMarker) {
|
|
102
|
-
NativeComponentMarker_1.Commands.animateToCoordinates(
|
|
103
|
-
// @ts-ignore
|
|
104
|
-
this.marker.current, coordinate.latitude, coordinate.longitude, duration);
|
|
105
|
-
}
|
|
106
|
-
else {
|
|
107
|
-
MapMarkerNativeComponent_1.Commands.animateMarkerToCoordinate(this.marker.current, coordinate, duration);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
redraw() {
|
|
112
|
-
if (this.marker.current) {
|
|
113
|
-
MapMarkerNativeComponent_1.Commands.redraw(this.marker.current);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
render() {
|
|
117
|
-
const { stopPropagation = false } = this.props;
|
|
118
|
-
if (this.fabricMarker === undefined) {
|
|
119
|
-
const provider = this.context;
|
|
120
|
-
this.fabricMarker = !(react_native_1.Platform.OS === 'ios' && provider === ProviderConstants_1.PROVIDER_GOOGLE);
|
|
121
|
-
}
|
|
122
|
-
let icon;
|
|
123
|
-
if (this.props.icon && this.fabricMarker) {
|
|
124
|
-
icon = (0, fixImageProp_1.fixImageProp)(this.props.icon);
|
|
125
|
-
}
|
|
126
|
-
let image;
|
|
127
|
-
if (this.props.image && this.fabricMarker) {
|
|
128
|
-
image = (0, fixImageProp_1.fixImageProp)(this.props.image);
|
|
129
|
-
}
|
|
130
|
-
const AIRMapMarker = this.getNativeComponent();
|
|
131
|
-
return (<AIRMapMarker {...this.props} ref={this.marker}
|
|
132
|
-
// @ts-ignore
|
|
133
|
-
image={image}
|
|
134
|
-
// @ts-ignore
|
|
135
|
-
icon={icon} style={[styles.marker, this.props.style]} onPress={event => {
|
|
136
|
-
if (stopPropagation) {
|
|
137
|
-
event.stopPropagation();
|
|
138
|
-
}
|
|
139
|
-
if (this.props.onPress) {
|
|
140
|
-
this.props.onPress(event);
|
|
141
|
-
}
|
|
142
|
-
}}/>);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
exports.MapMarker = MapMarker;
|
|
146
|
-
const styles = react_native_1.StyleSheet.create({
|
|
147
|
-
marker: {
|
|
148
|
-
position: 'absolute',
|
|
149
|
-
backgroundColor: 'transparent',
|
|
150
|
-
},
|
|
151
|
-
});
|
|
152
|
-
MapMarker.Animated = react_native_1.Animated.createAnimatedComponent(MapMarker);
|
|
153
|
-
exports.default = (0, decorateMapComponent_1.default)(MapMarker, 'Marker', {
|
|
154
|
-
google: {
|
|
155
|
-
ios: decorateMapComponent_1.SUPPORTED,
|
|
156
|
-
android: decorateMapComponent_1.USES_DEFAULT_IMPLEMENTATION,
|
|
157
|
-
},
|
|
158
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { HostComponent } from 'react-native';
|
|
3
|
-
import { NativeProps } from './MapMarker';
|
|
4
|
-
import { LatLng } from './sharedTypes';
|
|
5
|
-
export type MapMarkerNativeComponentType = HostComponent<NativeProps>;
|
|
6
|
-
interface NativeCommands {
|
|
7
|
-
showCallout: (viewRef: NonNullable<React.RefObject<MapMarkerNativeComponentType>['current']>) => void;
|
|
8
|
-
hideCallout: (viewRef: NonNullable<React.RefObject<MapMarkerNativeComponentType>['current']>) => void;
|
|
9
|
-
setCoordinates: (viewRef: NonNullable<React.RefObject<MapMarkerNativeComponentType>['current']>, coordinate: LatLng) => void;
|
|
10
|
-
redrawCallout: (viewRef: NonNullable<React.RefObject<MapMarkerNativeComponentType>['current']>) => void;
|
|
11
|
-
animateMarkerToCoordinate: (viewRef: NonNullable<React.RefObject<MapMarkerNativeComponentType>['current']>, coordinate: LatLng, duration: number) => void;
|
|
12
|
-
redraw: (viewRef: NonNullable<React.RefObject<MapMarkerNativeComponentType>['current']>) => void;
|
|
13
|
-
}
|
|
14
|
-
export declare const Commands: NativeCommands;
|
|
15
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
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 codegenNativeCommands_1 = __importDefault(require("react-native/Libraries/Utilities/codegenNativeCommands"));
|
|
8
|
-
exports.Commands = (0, codegenNativeCommands_1.default)({
|
|
9
|
-
supportedCommands: [
|
|
10
|
-
'showCallout',
|
|
11
|
-
'hideCallout',
|
|
12
|
-
'animateMarkerToCoordinate',
|
|
13
|
-
'setCoordinates',
|
|
14
|
-
],
|
|
15
|
-
});
|
package/lib/MapOverlay.d.ts
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Animated, ViewProps, ImageURISource, ImageRequireSource, NativeSyntheticEvent } from 'react-native';
|
|
3
|
-
import { MapManagerCommand, NativeComponent, ProviderContext, UIManagerCommand } from './decorateMapComponent';
|
|
4
|
-
import { LatLng, Point } from './sharedTypes';
|
|
5
|
-
import { Modify } from './sharedTypesInternal';
|
|
6
|
-
export type MapOverlayProps = ViewProps & {
|
|
7
|
-
/**
|
|
8
|
-
* The bearing in degrees clockwise from north. Values outside the range [0, 360) will be normalized.
|
|
9
|
-
*
|
|
10
|
-
* @default 0
|
|
11
|
-
* @platform iOS: Google Maps only
|
|
12
|
-
* @platform Android: Supported
|
|
13
|
-
*/
|
|
14
|
-
bearing?: number;
|
|
15
|
-
/**
|
|
16
|
-
* The coordinates for the image (left-top corner, right-bottom corner). ie.```[[lat, long], [lat, long]]```
|
|
17
|
-
*
|
|
18
|
-
* @platform iOS: Supported
|
|
19
|
-
* @platform Android: Supported
|
|
20
|
-
*/
|
|
21
|
-
bounds: [Coordinate, Coordinate];
|
|
22
|
-
/**
|
|
23
|
-
* A custom image to be used as the overlay.
|
|
24
|
-
* Only required local image resources and uri (as for images located in the net) are allowed to be used.
|
|
25
|
-
*
|
|
26
|
-
* @platform iOS: Supported
|
|
27
|
-
* @platform Android: Supported
|
|
28
|
-
*/
|
|
29
|
-
image: ImageURISource | ImageRequireSource;
|
|
30
|
-
/**
|
|
31
|
-
* Callback that is called when the user presses on the overlay
|
|
32
|
-
*
|
|
33
|
-
* @platform iOS: Apple Maps only
|
|
34
|
-
* @platform Android: Supported
|
|
35
|
-
*/
|
|
36
|
-
onPress?: (event: OverlayPressEvent) => void;
|
|
37
|
-
/**
|
|
38
|
-
* The opacity of the overlay.
|
|
39
|
-
*
|
|
40
|
-
* @default 1
|
|
41
|
-
* @platform iOS: Google Maps only
|
|
42
|
-
* @platform Android: Supported
|
|
43
|
-
*/
|
|
44
|
-
opacity?: number;
|
|
45
|
-
/**
|
|
46
|
-
* Boolean to allow an overlay to be tappable and use the onPress function.
|
|
47
|
-
*
|
|
48
|
-
* @default false
|
|
49
|
-
* @platform iOS: Not supported
|
|
50
|
-
* @platform Android: Supported
|
|
51
|
-
*/
|
|
52
|
-
tappable?: boolean;
|
|
53
|
-
};
|
|
54
|
-
type NativeProps = Modify<MapOverlayProps, {
|
|
55
|
-
image?: string;
|
|
56
|
-
}>;
|
|
57
|
-
export declare class MapOverlay extends React.Component<MapOverlayProps> {
|
|
58
|
-
context: React.ContextType<typeof ProviderContext>;
|
|
59
|
-
getNativeComponent: () => NativeComponent<NativeProps>;
|
|
60
|
-
getMapManagerCommand: (name: string) => MapManagerCommand;
|
|
61
|
-
getUIManagerCommand: (name: string) => UIManagerCommand;
|
|
62
|
-
static Animated: Animated.AnimatedComponent<typeof MapOverlay>;
|
|
63
|
-
private fabricOverlay?;
|
|
64
|
-
render(): React.JSX.Element;
|
|
65
|
-
}
|
|
66
|
-
type Coordinate = [number, number];
|
|
67
|
-
type OverlayPressEvent = NativeSyntheticEvent<{
|
|
68
|
-
/**
|
|
69
|
-
* @platform iOS: Apple Maps: `image-overlay-press`
|
|
70
|
-
* @platform Android: `overlay-press`
|
|
71
|
-
*/
|
|
72
|
-
action: 'overlay-press' | 'image-overlay-press';
|
|
73
|
-
/**
|
|
74
|
-
* @platform iOS: Apple Maps
|
|
75
|
-
*/
|
|
76
|
-
name?: string;
|
|
77
|
-
/**
|
|
78
|
-
* @platform iOS: Apple Maps
|
|
79
|
-
* @platform Android
|
|
80
|
-
*/
|
|
81
|
-
coordinate?: LatLng;
|
|
82
|
-
/**
|
|
83
|
-
* @platform Android
|
|
84
|
-
*/
|
|
85
|
-
position?: Point;
|
|
86
|
-
}>;
|
|
87
|
-
declare const _default: typeof MapOverlay;
|
|
88
|
-
export default _default;
|
package/lib/MapOverlay.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.MapOverlay = void 0;
|
|
27
|
-
const React = __importStar(require("react"));
|
|
28
|
-
const react_native_1 = require("react-native");
|
|
29
|
-
const decorateMapComponent_1 = __importStar(require("./decorateMapComponent"));
|
|
30
|
-
const fixImageProp_1 = require("./fixImageProp");
|
|
31
|
-
class MapOverlay extends React.Component {
|
|
32
|
-
getNativeComponent;
|
|
33
|
-
getMapManagerCommand;
|
|
34
|
-
getUIManagerCommand;
|
|
35
|
-
static Animated;
|
|
36
|
-
fabricOverlay = undefined;
|
|
37
|
-
render() {
|
|
38
|
-
const { opacity = 1.0 } = this.props;
|
|
39
|
-
if (this.fabricOverlay === undefined) {
|
|
40
|
-
this.fabricOverlay = react_native_1.Platform.OS === 'android';
|
|
41
|
-
}
|
|
42
|
-
const AIRMapOverlay = this.getNativeComponent();
|
|
43
|
-
let image = this.props.image;
|
|
44
|
-
if (this.props.image && this.fabricOverlay) {
|
|
45
|
-
image = (0, fixImageProp_1.fixImageProp)(this.props.image);
|
|
46
|
-
}
|
|
47
|
-
return (<AIRMapOverlay {...this.props} opacity={opacity}
|
|
48
|
-
// @ts-ignore
|
|
49
|
-
image={image} style={[styles.overlay, this.props.style]}/>);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
exports.MapOverlay = MapOverlay;
|
|
53
|
-
const styles = react_native_1.StyleSheet.create({
|
|
54
|
-
overlay: {
|
|
55
|
-
position: 'absolute',
|
|
56
|
-
backgroundColor: 'transparent',
|
|
57
|
-
},
|
|
58
|
-
});
|
|
59
|
-
MapOverlay.Animated = react_native_1.Animated.createAnimatedComponent(MapOverlay);
|
|
60
|
-
exports.default = (0, decorateMapComponent_1.default)(MapOverlay, 'Overlay', {
|
|
61
|
-
google: {
|
|
62
|
-
ios: decorateMapComponent_1.SUPPORTED,
|
|
63
|
-
android: decorateMapComponent_1.USES_DEFAULT_IMPLEMENTATION,
|
|
64
|
-
},
|
|
65
|
-
});
|
package/lib/MapPolygon.d.ts
DELETED
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { View, ViewProps } from 'react-native';
|
|
3
|
-
import { ProviderContext, NativeComponent, MapManagerCommand, UIManagerCommand } from './decorateMapComponent';
|
|
4
|
-
import { PolygonPressEvent } from './MapPolygon.types';
|
|
5
|
-
import { LatLng, LineCapType, LineJoinType } from './sharedTypes';
|
|
6
|
-
export type MapPolygonProps = ViewProps & {
|
|
7
|
-
/**
|
|
8
|
-
* An array of coordinates to describe the polygon
|
|
9
|
-
*
|
|
10
|
-
* @platform iOS: Supported
|
|
11
|
-
* @platform Android: Supported
|
|
12
|
-
*/
|
|
13
|
-
coordinates: LatLng[];
|
|
14
|
-
/**
|
|
15
|
-
* The fill color to use for the path.
|
|
16
|
-
*
|
|
17
|
-
* @default `#000`, `rgba(r,g,b,0.5)`
|
|
18
|
-
* @platform iOS: Supported
|
|
19
|
-
* @platform Android: Supported
|
|
20
|
-
*/
|
|
21
|
-
fillColor?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Boolean to indicate whether to draw each segment of the line as a geodesic as opposed to straight lines on the Mercator projection.
|
|
24
|
-
* A geodesic is the shortest path between two points on the Earth's surface.
|
|
25
|
-
* The geodesic curve is constructed assuming the Earth is a sphere.
|
|
26
|
-
*
|
|
27
|
-
* @platform iOS: Google Maps only
|
|
28
|
-
* @platform Android: Supported
|
|
29
|
-
*/
|
|
30
|
-
geodesic?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* A 2d array of coordinates to describe holes of the polygon where each hole has at least 3 points.
|
|
33
|
-
*
|
|
34
|
-
* @platform iOS: Supported
|
|
35
|
-
* @platform Android: Supported
|
|
36
|
-
*/
|
|
37
|
-
holes?: LatLng[][];
|
|
38
|
-
/**
|
|
39
|
-
* The line cap style to apply to the open ends of the path
|
|
40
|
-
*
|
|
41
|
-
* @default `round`
|
|
42
|
-
* @platform iOS: Apple Maps only
|
|
43
|
-
* @platform Android: Not supported
|
|
44
|
-
*/
|
|
45
|
-
lineCap?: LineCapType;
|
|
46
|
-
/**
|
|
47
|
-
* An array of numbers specifying the dash pattern to use for the path.
|
|
48
|
-
* The array contains one or more numbers that indicate the lengths (measured in points)
|
|
49
|
-
* of the line segments and gaps in the pattern.
|
|
50
|
-
* The values in the array alternate, starting with the first line segment length,
|
|
51
|
-
* followed by the first gap length, followed by the second line segment length, and so on.
|
|
52
|
-
*
|
|
53
|
-
* @platform iOS: Apple Maps only
|
|
54
|
-
* @platform Android: Supported
|
|
55
|
-
*/
|
|
56
|
-
lineDashPattern?: number[];
|
|
57
|
-
/**
|
|
58
|
-
* The offset (in points) at which to start drawing the dash pattern.
|
|
59
|
-
* Use this property to start drawing a dashed line partway through a segment or gap.
|
|
60
|
-
* For example, a phase value of 6 for the patter 5-2-3-2 would cause drawing to begin in the middle of the first gap.
|
|
61
|
-
*
|
|
62
|
-
* @default 0
|
|
63
|
-
* @platform iOS: Apple Maps only
|
|
64
|
-
* @platform Android: Not supported
|
|
65
|
-
*/
|
|
66
|
-
lineDashPhase?: number;
|
|
67
|
-
/**
|
|
68
|
-
* The line join style to apply to corners of the path.
|
|
69
|
-
*
|
|
70
|
-
* @platform iOS: Apple Maps only
|
|
71
|
-
* @platform Android: Not supported
|
|
72
|
-
*/
|
|
73
|
-
lineJoin?: LineJoinType;
|
|
74
|
-
/**
|
|
75
|
-
* The limiting value that helps avoid spikes at junctions between connected line segments.
|
|
76
|
-
* The miter limit helps you avoid spikes in paths that use the `miter` `lineJoin` style.
|
|
77
|
-
* If the ratio of the miter length—that is, the diagonal length of the miter join—to the line thickness exceeds the miter limit,
|
|
78
|
-
* the joint is converted to a bevel join.
|
|
79
|
-
* The default miter limit is 10, which results in the conversion of miters whose angle at the joint is less than 11 degrees.
|
|
80
|
-
*
|
|
81
|
-
* @default 10
|
|
82
|
-
* @platform iOS: Apple Maps only
|
|
83
|
-
* @platform Android: Not supported
|
|
84
|
-
*/
|
|
85
|
-
miterLimit?: number;
|
|
86
|
-
/**
|
|
87
|
-
* Callback that is called when the user presses on the polygon
|
|
88
|
-
*
|
|
89
|
-
* @platform iOS: Supported
|
|
90
|
-
* @platform Android: Supported
|
|
91
|
-
*/
|
|
92
|
-
onPress?: (event: PolygonPressEvent) => void;
|
|
93
|
-
/**
|
|
94
|
-
* The stroke color to use for the path.
|
|
95
|
-
*
|
|
96
|
-
* @default `#000`, `rgba(r,g,b,0.5)`
|
|
97
|
-
* @platform iOS: Supported
|
|
98
|
-
* @platform Android: Supported
|
|
99
|
-
*/
|
|
100
|
-
strokeColor?: string;
|
|
101
|
-
/**
|
|
102
|
-
* The stroke width to use for the path.
|
|
103
|
-
*
|
|
104
|
-
* @default 1
|
|
105
|
-
* @platform iOS: Supported
|
|
106
|
-
* @platform Android: Supported
|
|
107
|
-
*/
|
|
108
|
-
strokeWidth?: number;
|
|
109
|
-
/**
|
|
110
|
-
* Boolean to allow a polygon to be tappable and use the onPress function.
|
|
111
|
-
*
|
|
112
|
-
* @platform iOS: Google Maps only
|
|
113
|
-
* @platform Android: Supported
|
|
114
|
-
*/
|
|
115
|
-
tappable?: boolean;
|
|
116
|
-
/**
|
|
117
|
-
* The order in which this tile overlay is drawn with respect to other overlays.
|
|
118
|
-
* An overlay with a larger z-index is drawn over overlays with smaller z-indices.
|
|
119
|
-
* The order of overlays with the same z-index is arbitrary.
|
|
120
|
-
*
|
|
121
|
-
* @platform iOS: Google Maps only
|
|
122
|
-
* @platform Android: Supported
|
|
123
|
-
*/
|
|
124
|
-
zIndex?: number;
|
|
125
|
-
};
|
|
126
|
-
type NativeProps = MapPolygonProps & {
|
|
127
|
-
ref: React.RefObject<View | null>;
|
|
128
|
-
};
|
|
129
|
-
export declare class MapPolygon extends React.Component<MapPolygonProps> {
|
|
130
|
-
context: React.ContextType<typeof ProviderContext>;
|
|
131
|
-
getNativeComponent: () => NativeComponent<NativeProps>;
|
|
132
|
-
getMapManagerCommand: (name: string) => MapManagerCommand;
|
|
133
|
-
getUIManagerCommand: (name: string) => UIManagerCommand;
|
|
134
|
-
private polygon;
|
|
135
|
-
constructor(props: MapPolygonProps);
|
|
136
|
-
setNativeProps(props: Partial<MapPolygonProps>): void;
|
|
137
|
-
render(): React.JSX.Element;
|
|
138
|
-
}
|
|
139
|
-
declare const _default: typeof MapPolygon;
|
|
140
|
-
export default _default;
|
package/lib/MapPolygon.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.MapPolygon = void 0;
|
|
27
|
-
const React = __importStar(require("react"));
|
|
28
|
-
const decorateMapComponent_1 = __importStar(require("./decorateMapComponent"));
|
|
29
|
-
class MapPolygon extends React.Component {
|
|
30
|
-
getNativeComponent;
|
|
31
|
-
getMapManagerCommand;
|
|
32
|
-
getUIManagerCommand;
|
|
33
|
-
polygon;
|
|
34
|
-
constructor(props) {
|
|
35
|
-
super(props);
|
|
36
|
-
this.polygon = React.createRef();
|
|
37
|
-
}
|
|
38
|
-
setNativeProps(props) {
|
|
39
|
-
this.polygon.current?.setNativeProps(props);
|
|
40
|
-
}
|
|
41
|
-
render() {
|
|
42
|
-
const { strokeColor = '#000', strokeWidth = 1 } = this.props;
|
|
43
|
-
const AIRMapPolygon = this.getNativeComponent();
|
|
44
|
-
return (<AIRMapPolygon {...this.props} strokeColor={strokeColor} strokeWidth={strokeWidth} ref={this.polygon}/>);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
exports.MapPolygon = MapPolygon;
|
|
48
|
-
exports.default = (0, decorateMapComponent_1.default)(MapPolygon, 'Polygon', {
|
|
49
|
-
google: {
|
|
50
|
-
ios: decorateMapComponent_1.SUPPORTED,
|
|
51
|
-
android: decorateMapComponent_1.USES_DEFAULT_IMPLEMENTATION,
|
|
52
|
-
},
|
|
53
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { NativeSyntheticEvent } from 'react-native';
|
|
2
|
-
import { LatLng, Point } from './sharedTypes';
|
|
3
|
-
export type PolygonPressEvent = NativeSyntheticEvent<{
|
|
4
|
-
action: 'polygon-press';
|
|
5
|
-
/**
|
|
6
|
-
* @platform iOS: Google Maps
|
|
7
|
-
*/
|
|
8
|
-
id?: string;
|
|
9
|
-
/**
|
|
10
|
-
* @platform iOS: Apple Maps
|
|
11
|
-
* @platform Android
|
|
12
|
-
*/
|
|
13
|
-
coordinate?: LatLng;
|
|
14
|
-
/**
|
|
15
|
-
* @platform Android
|
|
16
|
-
*/
|
|
17
|
-
position?: Point;
|
|
18
|
-
}>;
|
package/lib/MapPolygon.types.js
DELETED