@lugg/maps 0.2.0-alpha.0 → 0.2.0-alpha.2
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/luggmaps/{LuggMapsGoogleMapView.kt → LuggGoogleMapView.kt} +107 -30
- package/android/src/main/java/com/luggmaps/{LuggMapsGoogleMapViewManager.kt → LuggGoogleMapViewManager.kt} +66 -39
- package/android/src/main/java/com/luggmaps/{LuggMapsWrapperView.kt → LuggMapWrapperView.kt} +1 -1
- package/android/src/main/java/com/luggmaps/LuggMapWrapperViewManager.kt +25 -0
- package/android/src/main/java/com/luggmaps/{LuggMapsMarkerView.kt → LuggMarkerView.kt} +6 -6
- package/android/src/main/java/com/luggmaps/{LuggMapsMarkerViewManager.kt → LuggMarkerViewManager.kt} +17 -17
- package/android/src/main/java/com/luggmaps/{LuggMapsPackage.kt → LuggPackage.kt} +2 -2
- package/android/src/main/java/com/luggmaps/{LuggMapsPolylineView.kt → LuggPolylineView.kt} +4 -4
- package/android/src/main/java/com/luggmaps/{LuggMapsPolylineViewManager.kt → LuggPolylineViewManager.kt} +16 -16
- package/android/src/main/java/com/luggmaps/events/CameraIdleEvent.kt +10 -2
- package/android/src/main/java/com/luggmaps/events/CameraMoveEvent.kt +6 -5
- package/android/src/main/java/com/luggmaps/events/ReadyEvent.kt +12 -0
- package/android/src/main/java/com/luggmaps/extensions/ViewExtensions.kt +14 -0
- package/ios/{LuggMapsAppleMapView.h → LuggAppleMapView.h} +2 -2
- package/ios/{LuggMapsAppleMapView.mm → LuggAppleMapView.mm} +104 -68
- package/ios/{LuggMapsGoogleMapView.h → LuggGoogleMapView.h} +1 -1
- package/ios/{LuggMapsGoogleMapView.mm → LuggGoogleMapView.mm} +75 -60
- package/ios/{LuggMapsWrapperView.h → LuggMapWrapperView.h} +1 -1
- package/ios/{LuggMapsWrapperView.mm → LuggMapWrapperView.mm} +7 -7
- package/ios/{LuggMapsMarkerView.h → LuggMarkerView.h} +6 -6
- package/ios/{LuggMapsMarkerView.mm → LuggMarkerView.mm} +8 -8
- package/ios/{LuggMapsPolylineView.h → LuggPolylineView.h} +5 -5
- package/ios/{LuggMapsPolylineView.mm → LuggPolylineView.mm} +8 -8
- package/ios/events/CameraIdleEvent.h +6 -1
- package/ios/events/CameraMoveEvent.h +6 -3
- package/ios/events/ReadyEvent.h +20 -0
- package/lib/module/MapView.js +21 -7
- package/lib/module/MapView.js.map +1 -1
- package/lib/module/{Marker.js → components/Marker.js} +2 -2
- package/lib/module/components/Marker.js.map +1 -0
- package/lib/module/{Polyline.js → components/Polyline.js} +2 -2
- package/lib/module/components/Polyline.js.map +1 -0
- package/lib/module/components/index.js +5 -0
- package/lib/module/components/index.js.map +1 -0
- package/{src/fabric/LuggMapsAppleMapViewNativeComponent.ts → lib/module/fabric/LuggAppleMapViewNativeComponent.ts} +13 -3
- package/lib/module/fabric/{LuggMapsGoogleMapViewNativeComponent.ts → LuggGoogleMapViewNativeComponent.ts} +13 -3
- package/{src/fabric/LuggMapsWrapperViewNativeComponent.ts → lib/module/fabric/LuggMapWrapperViewNativeComponent.ts} +1 -1
- package/lib/module/fabric/{LuggMapsMarkerViewNativeComponent.ts → LuggMarkerViewNativeComponent.ts} +1 -1
- package/{src/fabric/LuggMapsPolylineViewNativeComponent.ts → lib/module/fabric/LuggPolylineViewNativeComponent.ts} +1 -1
- package/lib/module/index.js +1 -2
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/plugin/src/withLuggMapsAndroid.d.ts +6 -0
- package/lib/typescript/plugin/src/withLuggMapsAndroid.d.ts.map +1 -0
- package/lib/typescript/plugin/src/withLuggMapsIOS.d.ts +6 -0
- package/lib/typescript/plugin/src/withLuggMapsIOS.d.ts.map +1 -0
- package/lib/typescript/src/MapView.d.ts.map +1 -1
- package/lib/typescript/src/MapView.types.d.ts +24 -14
- package/lib/typescript/src/MapView.types.d.ts.map +1 -1
- package/lib/typescript/src/{Marker.types.d.ts → components/Marker.d.ts} +6 -5
- package/lib/typescript/src/components/Marker.d.ts.map +1 -0
- package/lib/typescript/src/{Polyline.types.d.ts → components/Polyline.d.ts} +6 -5
- package/lib/typescript/src/components/Polyline.d.ts.map +1 -0
- package/lib/typescript/src/components/index.d.ts +3 -0
- package/lib/typescript/src/components/index.d.ts.map +1 -0
- package/lib/typescript/src/fabric/{LuggMapsAppleMapViewNativeComponent.d.ts → LuggAppleMapViewNativeComponent.d.ts} +10 -3
- package/lib/typescript/src/fabric/LuggAppleMapViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/fabric/{LuggMapsGoogleMapViewNativeComponent.d.ts → LuggGoogleMapViewNativeComponent.d.ts} +10 -3
- package/lib/typescript/src/fabric/LuggGoogleMapViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/fabric/{LuggMapsWrapperViewNativeComponent.d.ts → LuggMapWrapperViewNativeComponent.d.ts} +1 -1
- package/lib/typescript/src/fabric/LuggMapWrapperViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/fabric/{LuggMapsMarkerViewNativeComponent.d.ts → LuggMarkerViewNativeComponent.d.ts} +1 -1
- package/lib/typescript/src/fabric/LuggMarkerViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/fabric/{LuggMapsPolylineViewNativeComponent.d.ts → LuggPolylineViewNativeComponent.d.ts} +1 -1
- package/lib/typescript/src/fabric/LuggPolylineViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +2 -5
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +6 -6
- package/plugin/build/index.js +4 -4
- package/{lib/typescript/plugin/src/withMapsAndroid.d.ts → plugin/build/withLuggMapsAndroid.d.ts} +0 -1
- package/plugin/build/withLuggMapsAndroid.js +15 -0
- package/{lib/typescript/plugin/src/withMapsIOS.d.ts → plugin/build/withLuggMapsIOS.d.ts} +0 -1
- package/plugin/build/withLuggMapsIOS.js +27 -0
- package/plugin/build/withMapsAndroid.d.ts +1 -1
- package/plugin/build/withMapsIOS.d.ts +1 -1
- package/src/MapView.tsx +27 -10
- package/src/MapView.types.ts +24 -15
- package/src/components/Marker.tsx +59 -0
- package/src/{Polyline.tsx → components/Polyline.tsx} +23 -3
- package/src/components/index.ts +2 -0
- package/{lib/module/fabric/LuggMapsAppleMapViewNativeComponent.ts → src/fabric/LuggAppleMapViewNativeComponent.ts} +13 -3
- package/src/fabric/{LuggMapsGoogleMapViewNativeComponent.ts → LuggGoogleMapViewNativeComponent.ts} +13 -3
- package/{lib/module/fabric/LuggMapsWrapperViewNativeComponent.ts → src/fabric/LuggMapWrapperViewNativeComponent.ts} +1 -1
- package/src/fabric/{LuggMapsMarkerViewNativeComponent.ts → LuggMarkerViewNativeComponent.ts} +1 -1
- package/{lib/module/fabric/LuggMapsPolylineViewNativeComponent.ts → src/fabric/LuggPolylineViewNativeComponent.ts} +1 -1
- package/src/index.ts +3 -6
- package/android/src/main/java/com/luggmaps/LuggMapsWrapperViewManager.kt +0 -25
- package/lib/module/Marker.js.map +0 -1
- package/lib/module/Marker.types.js +0 -4
- package/lib/module/Marker.types.js.map +0 -1
- package/lib/module/Polyline.js.map +0 -1
- package/lib/module/Polyline.types.js +0 -4
- package/lib/module/Polyline.types.js.map +0 -1
- package/lib/typescript/plugin/src/withMapsAndroid.d.ts.map +0 -1
- package/lib/typescript/plugin/src/withMapsIOS.d.ts.map +0 -1
- package/lib/typescript/src/Marker.d.ts +0 -6
- package/lib/typescript/src/Marker.d.ts.map +0 -1
- package/lib/typescript/src/Marker.types.d.ts.map +0 -1
- package/lib/typescript/src/Polyline.d.ts +0 -6
- package/lib/typescript/src/Polyline.d.ts.map +0 -1
- package/lib/typescript/src/Polyline.types.d.ts.map +0 -1
- package/lib/typescript/src/fabric/LuggMapsAppleMapViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/src/fabric/LuggMapsGoogleMapViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/src/fabric/LuggMapsMarkerViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/src/fabric/LuggMapsPolylineViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/src/fabric/LuggMapsWrapperViewNativeComponent.d.ts.map +0 -1
- package/src/Marker.tsx +0 -31
- package/src/Marker.types.ts +0 -32
- package/src/Polyline.types.ts +0 -24
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Platform","StyleSheet","
|
|
1
|
+
{"version":3,"names":["React","Platform","StyleSheet","LuggGoogleMapViewNativeComponent","Commands","GoogleMapCommands","LuggAppleMapViewNativeComponent","AppleMapCommands","LuggMapWrapperViewNativeComponent","jsx","_jsx","jsxs","_jsxs","MapView","Component","defaultProps","provider","OS","initialZoom","zoomEnabled","scrollEnabled","rotateEnabled","pitchEnabled","nativeRef","createRef","nativeCommands","props","isApple","moveCamera","coordinate","options","ref","current","zoom","duration","latitude","longitude","fitCoordinates","coordinates","first","padding","top","left","bottom","right","length","render","mapId","initialCoordinate","minZoom","maxZoom","userLocationEnabled","onCameraMove","onCameraIdle","onReady","children","rest","NativeMapView","style","absoluteFill"],"sourceRoot":"../../src","sources":["MapView.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,EAAEC,UAAU,QAAQ,cAAc;AACnD,OAAOC,gCAAgC,IACrCC,QAAQ,IAAIC,iBAAiB,QACxB,2CAA2C;AAClD,OAAOC,+BAA+B,IACpCF,QAAQ,IAAIG,gBAAgB,QACvB,0CAA0C;AACjD,OAAOC,iCAAiC,MAAM,4CAA4C;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAS3F,OAAO,MAAMC,OAAO,SACVb,KAAK,CAACc,SAAS,CAEzB;EACE,OAAOC,YAAY,GAA0B;IAC3CC,QAAQ,EAAEf,QAAQ,CAACgB,EAAE,KAAK,KAAK,GAAG,OAAO,GAAG,QAAQ;IACpDC,WAAW,EAAE,EAAE;IACfC,WAAW,EAAE,IAAI;IACjBC,aAAa,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jB7C,IAAA,CAACF,iCAAiC;QAACkD,KAAK,EAAExD,UAAU,CAACyD;MAAa,CAAE,CAAC,EACpEJ,QAAQ;IAAA,CACI,CAAC;EAEpB;AACF","ignoreList":[]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import LuggMapsMarkerViewNativeComponent from './fabric/LuggMapsMarkerViewNativeComponent';
|
|
5
4
|
import { StyleSheet } from 'react-native';
|
|
5
|
+
import LuggMarkerViewNativeComponent from '../fabric/LuggMarkerViewNativeComponent';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
export class Marker extends React.Component {
|
|
8
8
|
render() {
|
|
@@ -14,7 +14,7 @@ export class Marker extends React.Component {
|
|
|
14
14
|
anchor,
|
|
15
15
|
children
|
|
16
16
|
} = this.props;
|
|
17
|
-
return /*#__PURE__*/_jsx(
|
|
17
|
+
return /*#__PURE__*/_jsx(LuggMarkerViewNativeComponent, {
|
|
18
18
|
style: styles.marker,
|
|
19
19
|
name: name,
|
|
20
20
|
coordinate: coordinate,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","LuggMarkerViewNativeComponent","jsx","_jsx","Marker","Component","render","name","coordinate","title","description","anchor","children","props","style","styles","marker","create","position","pointerEvents"],"sourceRoot":"../../../src","sources":["components/Marker.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,UAAU,QAAQ,cAAc;AACzC,OAAOC,6BAA6B,MAAM,yCAAyC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AA8BpF,OAAO,MAAMC,MAAM,SAASL,KAAK,CAACM,SAAS,CAAc;EACvDC,MAAMA,CAAA,EAAG;IACP,MAAM;MAAEC,IAAI;MAAEC,UAAU;MAAEC,KAAK;MAAEC,WAAW;MAAEC,MAAM;MAAEC;IAAS,CAAC,GAC9D,IAAI,CAACC,KAAK;IAEZ,oBACEV,IAAA,CAACF,6BAA6B;MAC5Ba,KAAK,EAAEC,MAAM,CAACC,MAAO;MACrBT,IAAI,EAAEA,IAAK;MACXC,UAAU,EAAEA,UAAW;MACvBC,KAAK,EAAEA,KAAM;MACbC,WAAW,EAAEA,WAAY;MACzBC,MAAM,EAAEA,MAAO;MAAAC,QAAA,EAEdA;IAAQ,CACoB,CAAC;EAEpC;AACF;AAEA,MAAMG,MAAM,GAAGf,UAAU,CAACiB,MAAM,CAAC;EAC/BD,MAAM,EAAE;IACNE,QAAQ,EAAE,UAAU;IACpBC,aAAa,EAAE;EACjB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import LuggMapsPolylineViewNativeComponent from './fabric/LuggMapsPolylineViewNativeComponent';
|
|
5
4
|
import { StyleSheet } from 'react-native';
|
|
5
|
+
import LuggPolylineViewNativeComponent from '../fabric/LuggPolylineViewNativeComponent';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
export class Polyline extends React.Component {
|
|
8
8
|
render() {
|
|
@@ -12,7 +12,7 @@ export class Polyline extends React.Component {
|
|
|
12
12
|
strokeWidth,
|
|
13
13
|
animated = false
|
|
14
14
|
} = this.props;
|
|
15
|
-
return /*#__PURE__*/_jsx(
|
|
15
|
+
return /*#__PURE__*/_jsx(LuggPolylineViewNativeComponent, {
|
|
16
16
|
style: styles.polyline,
|
|
17
17
|
coordinates: coordinates,
|
|
18
18
|
strokeColors: strokeColors,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","LuggPolylineViewNativeComponent","jsx","_jsx","Polyline","Component","render","coordinates","strokeColors","strokeWidth","animated","props","style","styles","polyline","create","position","pointerEvents"],"sourceRoot":"../../../src","sources":["components/Polyline.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,UAAU,QAAQ,cAAc;AACzC,OAAOC,+BAA+B,MAAM,2CAA2C;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAsBxF,OAAO,MAAMC,QAAQ,SAASL,KAAK,CAACM,SAAS,CAAgB;EAC3DC,MAAMA,CAAA,EAAG;IACP,MAAM;MACJC,WAAW;MACXC,YAAY;MACZC,WAAW;MACXC,QAAQ,GAAG;IACb,CAAC,GAAG,IAAI,CAACC,KAAK;IAEd,oBACER,IAAA,CAACF,+BAA+B;MAC9BW,KAAK,EAAEC,MAAM,CAACC,QAAS;MACvBP,WAAW,EAAEA,WAAY;MACzBC,YAAY,EAAEA,YAAa;MAC3BC,WAAW,EAAEA,WAAY;MACzBC,QAAQ,EAAEA;IAAS,CACpB,CAAC;EAEN;AACF;AAEA,MAAMG,MAAM,GAAGb,UAAU,CAACe,MAAM,CAAC;EAC/BD,QAAQ,EAAE;IACRE,QAAQ,EAAE,UAAU;IACpBC,aAAa,EAAE;EACjB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":";;AAAA,cAAc,aAAU;AACxB,cAAc,eAAY","ignoreList":[]}
|
|
@@ -23,7 +23,7 @@ export interface CameraMoveEvent {
|
|
|
23
23
|
longitude: Double;
|
|
24
24
|
};
|
|
25
25
|
zoom: Double;
|
|
26
|
-
|
|
26
|
+
gesture: boolean;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
export interface CameraIdleEvent {
|
|
@@ -32,18 +32,25 @@ export interface CameraIdleEvent {
|
|
|
32
32
|
longitude: Double;
|
|
33
33
|
};
|
|
34
34
|
zoom: Double;
|
|
35
|
+
gesture: boolean;
|
|
35
36
|
}
|
|
36
37
|
|
|
38
|
+
export interface ReadyEvent {}
|
|
39
|
+
|
|
37
40
|
export interface NativeProps extends ViewProps {
|
|
38
41
|
initialCoordinate?: Coordinate;
|
|
39
42
|
initialZoom?: Double;
|
|
43
|
+
minZoom?: Double;
|
|
44
|
+
maxZoom?: Double;
|
|
40
45
|
zoomEnabled?: boolean;
|
|
41
46
|
scrollEnabled?: boolean;
|
|
42
47
|
rotateEnabled?: boolean;
|
|
43
48
|
pitchEnabled?: boolean;
|
|
44
49
|
padding?: EdgeInsets;
|
|
50
|
+
userLocationEnabled?: boolean;
|
|
45
51
|
onCameraMove?: DirectEventHandler<CameraMoveEvent>;
|
|
46
52
|
onCameraIdle?: DirectEventHandler<CameraIdleEvent>;
|
|
53
|
+
onReady?: DirectEventHandler<ReadyEvent>;
|
|
47
54
|
}
|
|
48
55
|
|
|
49
56
|
type ComponentType = HostComponent<NativeProps>;
|
|
@@ -59,7 +66,10 @@ interface NativeCommands {
|
|
|
59
66
|
fitCoordinates: (
|
|
60
67
|
viewRef: React.ElementRef<ComponentType>,
|
|
61
68
|
coordinates: Coordinate[],
|
|
62
|
-
|
|
69
|
+
paddingTop: Double,
|
|
70
|
+
paddingLeft: Double,
|
|
71
|
+
paddingBottom: Double,
|
|
72
|
+
paddingRight: Double,
|
|
63
73
|
duration: Double
|
|
64
74
|
) => void;
|
|
65
75
|
}
|
|
@@ -69,5 +79,5 @@ export const Commands = codegenNativeCommands<NativeCommands>({
|
|
|
69
79
|
});
|
|
70
80
|
|
|
71
81
|
export default codegenNativeComponent<NativeProps>(
|
|
72
|
-
'
|
|
82
|
+
'LuggAppleMapView'
|
|
73
83
|
) as ComponentType;
|
|
@@ -23,7 +23,7 @@ export interface CameraMoveEvent {
|
|
|
23
23
|
longitude: Double;
|
|
24
24
|
};
|
|
25
25
|
zoom: Double;
|
|
26
|
-
|
|
26
|
+
gesture: boolean;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
export interface CameraIdleEvent {
|
|
@@ -32,19 +32,26 @@ export interface CameraIdleEvent {
|
|
|
32
32
|
longitude: Double;
|
|
33
33
|
};
|
|
34
34
|
zoom: Double;
|
|
35
|
+
gesture: boolean;
|
|
35
36
|
}
|
|
36
37
|
|
|
38
|
+
export interface ReadyEvent {}
|
|
39
|
+
|
|
37
40
|
export interface NativeProps extends ViewProps {
|
|
38
41
|
mapId?: string;
|
|
39
42
|
initialCoordinate?: Coordinate;
|
|
40
43
|
initialZoom?: Double;
|
|
44
|
+
minZoom?: Double;
|
|
45
|
+
maxZoom?: Double;
|
|
41
46
|
zoomEnabled?: boolean;
|
|
42
47
|
scrollEnabled?: boolean;
|
|
43
48
|
rotateEnabled?: boolean;
|
|
44
49
|
pitchEnabled?: boolean;
|
|
45
50
|
padding?: EdgeInsets;
|
|
51
|
+
userLocationEnabled?: boolean;
|
|
46
52
|
onCameraMove?: DirectEventHandler<CameraMoveEvent>;
|
|
47
53
|
onCameraIdle?: DirectEventHandler<CameraIdleEvent>;
|
|
54
|
+
onReady?: DirectEventHandler<ReadyEvent>;
|
|
48
55
|
}
|
|
49
56
|
|
|
50
57
|
type ComponentType = HostComponent<NativeProps>;
|
|
@@ -60,7 +67,10 @@ interface NativeCommands {
|
|
|
60
67
|
fitCoordinates: (
|
|
61
68
|
viewRef: React.ElementRef<ComponentType>,
|
|
62
69
|
coordinates: Coordinate[],
|
|
63
|
-
|
|
70
|
+
paddingTop: Double,
|
|
71
|
+
paddingLeft: Double,
|
|
72
|
+
paddingBottom: Double,
|
|
73
|
+
paddingRight: Double,
|
|
64
74
|
duration: Double
|
|
65
75
|
) => void;
|
|
66
76
|
}
|
|
@@ -70,5 +80,5 @@ export const Commands = codegenNativeCommands<NativeCommands>({
|
|
|
70
80
|
});
|
|
71
81
|
|
|
72
82
|
export default codegenNativeComponent<NativeProps>(
|
|
73
|
-
'
|
|
83
|
+
'LuggGoogleMapView'
|
|
74
84
|
) as ComponentType;
|
package/lib/module/index.js
CHANGED
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["MapView"
|
|
1
|
+
{"version":3,"names":["MapView"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,cAAW;AACnC,cAAc,uBAAc","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withLuggMapsAndroid.d.ts","sourceRoot":"","sources":["../../../../plugin/src/withLuggMapsAndroid.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EAElB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,WAAW,sBAAsB;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,mBAAmB,EAAE,YAAY,CAAC,sBAAsB,CAqBpE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withLuggMapsIOS.d.ts","sourceRoot":"","sources":["../../../../plugin/src/withLuggMapsIOS.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EAGlB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,eAAe,EAAE,YAAY,CAAC,kBAAkB,CAoC5D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MapView.d.ts","sourceRoot":"","sources":["../../../src/MapView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,OAAO,KAAK,EACV,YAAY,EACZ,UAAU,EACV,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,qBAAa,OACX,SAAQ,KAAK,CAAC,SAAS,CAAC,YAAY,CACpC,YAAW,UAAU;IAErB,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,YAAY,CAAC,CAOxC;IAEF,OAAO,CAAC,SAAS,CAA0B;IAE3C,OAAO,KAAK,cAAc,GAIzB;IAED,UAAU,CAAC,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,iBAAiB;IAc7D,cAAc,CAAC,WAAW,EAAE,UAAU,EAAE,EAAE,OAAO,CAAC,EAAE,qBAAqB;
|
|
1
|
+
{"version":3,"file":"MapView.d.ts","sourceRoot":"","sources":["../../../src/MapView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,OAAO,KAAK,EACV,YAAY,EACZ,UAAU,EACV,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,qBAAa,OACX,SAAQ,KAAK,CAAC,SAAS,CAAC,YAAY,CACpC,YAAW,UAAU;IAErB,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,YAAY,CAAC,CAOxC;IAEF,OAAO,CAAC,SAAS,CAA0B;IAE3C,OAAO,KAAK,cAAc,GAIzB;IAED,UAAU,CAAC,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,iBAAiB;IAc7D,cAAc,CAAC,WAAW,EAAE,UAAU,EAAE,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAyBzE,MAAM;CAkDP"}
|
|
@@ -11,11 +11,10 @@ export interface MoveCameraOptions {
|
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
13
|
* Options for fitting coordinates in view
|
|
14
|
-
* @default padding 0
|
|
15
14
|
* @default duration -1
|
|
16
15
|
*/
|
|
17
16
|
export interface FitCoordinatesOptions {
|
|
18
|
-
padding?:
|
|
17
|
+
padding?: EdgeInsets;
|
|
19
18
|
duration?: number;
|
|
20
19
|
}
|
|
21
20
|
/**
|
|
@@ -26,19 +25,12 @@ export interface MapViewRef {
|
|
|
26
25
|
fitCoordinates(coordinates: Coordinate[], options?: FitCoordinatesOptions): void;
|
|
27
26
|
}
|
|
28
27
|
/**
|
|
29
|
-
* Camera
|
|
28
|
+
* Camera event payload
|
|
30
29
|
*/
|
|
31
|
-
export interface
|
|
32
|
-
coordinate: Coordinate;
|
|
33
|
-
zoom: number;
|
|
34
|
-
dragging: boolean;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Camera idle event data
|
|
38
|
-
*/
|
|
39
|
-
export interface CameraIdleEvent {
|
|
30
|
+
export interface CameraEventPayload {
|
|
40
31
|
coordinate: Coordinate;
|
|
41
32
|
zoom: number;
|
|
33
|
+
gesture: boolean;
|
|
42
34
|
}
|
|
43
35
|
/**
|
|
44
36
|
* MapView component props
|
|
@@ -62,6 +54,14 @@ export interface MapViewProps extends ViewProps {
|
|
|
62
54
|
* @default 10
|
|
63
55
|
*/
|
|
64
56
|
initialZoom?: number;
|
|
57
|
+
/**
|
|
58
|
+
* Minimum zoom level
|
|
59
|
+
*/
|
|
60
|
+
minZoom?: number;
|
|
61
|
+
/**
|
|
62
|
+
* Maximum zoom level
|
|
63
|
+
*/
|
|
64
|
+
maxZoom?: number;
|
|
65
65
|
/**
|
|
66
66
|
* Enable zoom gestures
|
|
67
67
|
* @default true
|
|
@@ -86,14 +86,24 @@ export interface MapViewProps extends ViewProps {
|
|
|
86
86
|
* Map content padding
|
|
87
87
|
*/
|
|
88
88
|
padding?: EdgeInsets;
|
|
89
|
+
/**
|
|
90
|
+
* Show current user location on the map.
|
|
91
|
+
* Requires location permission to be granted, otherwise silently ignored.
|
|
92
|
+
* @default false
|
|
93
|
+
*/
|
|
94
|
+
userLocationEnabled?: boolean;
|
|
89
95
|
/**
|
|
90
96
|
* Called when camera moves
|
|
91
97
|
*/
|
|
92
|
-
onCameraMove?: (event: NativeSyntheticEvent<
|
|
98
|
+
onCameraMove?: (event: NativeSyntheticEvent<CameraEventPayload>) => void;
|
|
93
99
|
/**
|
|
94
100
|
* Called when camera stops moving
|
|
95
101
|
*/
|
|
96
|
-
onCameraIdle?: (event: NativeSyntheticEvent<
|
|
102
|
+
onCameraIdle?: (event: NativeSyntheticEvent<CameraEventPayload>) => void;
|
|
103
|
+
/**
|
|
104
|
+
* Called when map is loaded and ready
|
|
105
|
+
*/
|
|
106
|
+
onReady?: () => void;
|
|
97
107
|
/**
|
|
98
108
|
* Map children (markers, polylines, etc.)
|
|
99
109
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MapView.types.d.ts","sourceRoot":"","sources":["../../../src/MapView.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEnE;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED
|
|
1
|
+
{"version":3,"file":"MapView.types.d.ts","sourceRoot":"","sources":["../../../src/MapView.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEnE;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,UAAU,CAAC,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACrE,cAAc,CACZ,WAAW,EAAE,UAAU,EAAE,EACzB,OAAO,CAAC,EAAE,qBAAqB,GAC9B,IAAI,CAAC;CACT;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,UAAU,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,YAAa,SAAQ,SAAS;IAC7C;;;OAGG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,iBAAiB,CAAC,EAAE,UAAU,CAAC;IAC/B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,CAAC,kBAAkB,CAAC,KAAK,IAAI,CAAC;IACzE;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,CAAC,kBAAkB,CAAC,KAAK,IAAI,CAAC;IACzE;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { ReactNode } from 'react';
|
|
2
|
-
import type { Coordinate, Point } from '
|
|
3
|
-
/**
|
|
4
|
-
* Marker component props
|
|
5
|
-
*/
|
|
3
|
+
import type { Coordinate, Point } from '../types';
|
|
6
4
|
export interface MarkerProps {
|
|
7
5
|
/**
|
|
8
6
|
* Name used for debugging purposes
|
|
@@ -29,4 +27,7 @@ export interface MarkerProps {
|
|
|
29
27
|
*/
|
|
30
28
|
children?: ReactNode;
|
|
31
29
|
}
|
|
32
|
-
|
|
30
|
+
export declare class Marker extends React.Component<MarkerProps> {
|
|
31
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=Marker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Marker.d.ts","sourceRoot":"","sources":["../../../../src/components/Marker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAElD,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,UAAU,EAAE,UAAU,CAAC;IACvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,qBAAa,MAAO,SAAQ,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC;IACtD,MAAM;CAiBP"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { ColorValue } from 'react-native';
|
|
2
|
-
import type { Coordinate } from '
|
|
3
|
-
/**
|
|
4
|
-
* Polyline component props
|
|
5
|
-
*/
|
|
3
|
+
import type { Coordinate } from '../types';
|
|
6
4
|
export interface PolylineProps {
|
|
7
5
|
/**
|
|
8
6
|
* Array of coordinates forming the polyline
|
|
@@ -21,4 +19,7 @@ export interface PolylineProps {
|
|
|
21
19
|
*/
|
|
22
20
|
animated?: boolean;
|
|
23
21
|
}
|
|
24
|
-
|
|
22
|
+
export declare class Polyline extends React.Component<PolylineProps> {
|
|
23
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=Polyline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Polyline.d.ts","sourceRoot":"","sources":["../../../../src/components/Polyline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B;;OAEG;IACH,YAAY,CAAC,EAAE,UAAU,EAAE,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,qBAAa,QAAS,SAAQ,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC;IAC1D,MAAM;CAkBP"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC"}
|
|
@@ -16,7 +16,7 @@ export interface CameraMoveEvent {
|
|
|
16
16
|
longitude: Double;
|
|
17
17
|
};
|
|
18
18
|
zoom: Double;
|
|
19
|
-
|
|
19
|
+
gesture: boolean;
|
|
20
20
|
}
|
|
21
21
|
export interface CameraIdleEvent {
|
|
22
22
|
coordinate: {
|
|
@@ -24,24 +24,31 @@ export interface CameraIdleEvent {
|
|
|
24
24
|
longitude: Double;
|
|
25
25
|
};
|
|
26
26
|
zoom: Double;
|
|
27
|
+
gesture: boolean;
|
|
28
|
+
}
|
|
29
|
+
export interface ReadyEvent {
|
|
27
30
|
}
|
|
28
31
|
export interface NativeProps extends ViewProps {
|
|
29
32
|
initialCoordinate?: Coordinate;
|
|
30
33
|
initialZoom?: Double;
|
|
34
|
+
minZoom?: Double;
|
|
35
|
+
maxZoom?: Double;
|
|
31
36
|
zoomEnabled?: boolean;
|
|
32
37
|
scrollEnabled?: boolean;
|
|
33
38
|
rotateEnabled?: boolean;
|
|
34
39
|
pitchEnabled?: boolean;
|
|
35
40
|
padding?: EdgeInsets;
|
|
41
|
+
userLocationEnabled?: boolean;
|
|
36
42
|
onCameraMove?: DirectEventHandler<CameraMoveEvent>;
|
|
37
43
|
onCameraIdle?: DirectEventHandler<CameraIdleEvent>;
|
|
44
|
+
onReady?: DirectEventHandler<ReadyEvent>;
|
|
38
45
|
}
|
|
39
46
|
type ComponentType = HostComponent<NativeProps>;
|
|
40
47
|
interface NativeCommands {
|
|
41
48
|
moveCamera: (viewRef: React.ElementRef<ComponentType>, latitude: Double, longitude: Double, zoom: Double, duration: Double) => void;
|
|
42
|
-
fitCoordinates: (viewRef: React.ElementRef<ComponentType>, coordinates: Coordinate[],
|
|
49
|
+
fitCoordinates: (viewRef: React.ElementRef<ComponentType>, coordinates: Coordinate[], paddingTop: Double, paddingLeft: Double, paddingBottom: Double, paddingRight: Double, duration: Double) => void;
|
|
43
50
|
}
|
|
44
51
|
export declare const Commands: NativeCommands;
|
|
45
52
|
declare const _default: ComponentType;
|
|
46
53
|
export default _default;
|
|
47
|
-
//# sourceMappingURL=
|
|
54
|
+
//# sourceMappingURL=LuggAppleMapViewNativeComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LuggAppleMapViewNativeComponent.d.ts","sourceRoot":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AY,CAAC,EAAE,kBAAkB,CAAC,eAAe,CAAC,CAAC;IACnD,YAAY,CAAC,EAAE,kBAAkB,CAAC,eAAe,CAAC,CAAC;IACnD,OAAO,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;CAC1C;AAED,KAAK,aAAa,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC;AAEhD,UAAU,cAAc;IACtB,UAAU,EAAE,CACV,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,EACxC,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,KACb,IAAI,CAAC;IACV,cAAc,EAAE,CACd,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,EACxC,WAAW,EAAE,UAAU,EAAE,EACzB,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,MAAM,KACb,IAAI,CAAC;CACX;AAED,eAAO,MAAM,QAAQ,gBAEnB,CAAC;wBAIE,aAAa;AAFlB,wBAEmB"}
|
|
@@ -16,7 +16,7 @@ export interface CameraMoveEvent {
|
|
|
16
16
|
longitude: Double;
|
|
17
17
|
};
|
|
18
18
|
zoom: Double;
|
|
19
|
-
|
|
19
|
+
gesture: boolean;
|
|
20
20
|
}
|
|
21
21
|
export interface CameraIdleEvent {
|
|
22
22
|
coordinate: {
|
|
@@ -24,25 +24,32 @@ export interface CameraIdleEvent {
|
|
|
24
24
|
longitude: Double;
|
|
25
25
|
};
|
|
26
26
|
zoom: Double;
|
|
27
|
+
gesture: boolean;
|
|
28
|
+
}
|
|
29
|
+
export interface ReadyEvent {
|
|
27
30
|
}
|
|
28
31
|
export interface NativeProps extends ViewProps {
|
|
29
32
|
mapId?: string;
|
|
30
33
|
initialCoordinate?: Coordinate;
|
|
31
34
|
initialZoom?: Double;
|
|
35
|
+
minZoom?: Double;
|
|
36
|
+
maxZoom?: Double;
|
|
32
37
|
zoomEnabled?: boolean;
|
|
33
38
|
scrollEnabled?: boolean;
|
|
34
39
|
rotateEnabled?: boolean;
|
|
35
40
|
pitchEnabled?: boolean;
|
|
36
41
|
padding?: EdgeInsets;
|
|
42
|
+
userLocationEnabled?: boolean;
|
|
37
43
|
onCameraMove?: DirectEventHandler<CameraMoveEvent>;
|
|
38
44
|
onCameraIdle?: DirectEventHandler<CameraIdleEvent>;
|
|
45
|
+
onReady?: DirectEventHandler<ReadyEvent>;
|
|
39
46
|
}
|
|
40
47
|
type ComponentType = HostComponent<NativeProps>;
|
|
41
48
|
interface NativeCommands {
|
|
42
49
|
moveCamera: (viewRef: React.ElementRef<ComponentType>, latitude: Double, longitude: Double, zoom: Double, duration: Double) => void;
|
|
43
|
-
fitCoordinates: (viewRef: React.ElementRef<ComponentType>, coordinates: Coordinate[],
|
|
50
|
+
fitCoordinates: (viewRef: React.ElementRef<ComponentType>, coordinates: Coordinate[], paddingTop: Double, paddingLeft: Double, paddingBottom: Double, paddingRight: Double, duration: Double) => void;
|
|
44
51
|
}
|
|
45
52
|
export declare const Commands: NativeCommands;
|
|
46
53
|
declare const _default: ComponentType;
|
|
47
54
|
export default _default;
|
|
48
|
-
//# sourceMappingURL=
|
|
55
|
+
//# sourceMappingURL=LuggGoogleMapViewNativeComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LuggGoogleMapViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/fabric/LuggGoogleMapViewNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EACV,MAAM,EACN,kBAAkB,EACnB,MAAM,2CAA2C,CAAC;AAEnD,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAA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ACtB,UAAU,EAAE,CACV,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,EACxC,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,KACb,IAAI,CAAC;IACV,cAAc,EAAE,CACd,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,EACxC,WAAW,EAAE,UAAU,EAAE,EACzB,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,MAAM,KACb,IAAI,CAAC;CACX;AAED,eAAO,MAAM,QAAQ,gBAEnB,CAAC;wBAIE,aAAa;AAFlB,wBAEmB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LuggMapWrapperViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/fabric/LuggMapWrapperViewNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7D,MAAM,WAAW,WAAY,SAAQ,SAAS;CAAG;wBAI5C,aAAa,CAAC,WAAW,CAAC;AAF/B,wBAEgC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LuggMarkerViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/fabric/LuggMarkerViewNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAExE,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,KAAK;IACpB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,UAAU,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,KAAK,CAAC;CAChB;wBAII,aAAa,CAAC,WAAW,CAAC;AAF/B,wBAEgC"}
|
|
@@ -12,4 +12,4 @@ export interface NativeProps extends ViewProps {
|
|
|
12
12
|
}
|
|
13
13
|
declare const _default: HostComponent<NativeProps>;
|
|
14
14
|
export default _default;
|
|
15
|
-
//# sourceMappingURL=
|
|
15
|
+
//# sourceMappingURL=LuggPolylineViewNativeComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LuggPolylineViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/fabric/LuggPolylineViewNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACzE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAExE,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,WAAW,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACvC,YAAY,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;wBAII,aAAa,CAAC,WAAW,CAAC;AAF/B,wBAEgC"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
export { MapView } from './MapView';
|
|
2
|
-
export
|
|
3
|
-
export {
|
|
4
|
-
export type { MapViewProps, MapViewRef, MoveCameraOptions, CameraMoveEvent, CameraIdleEvent, } from './MapView.types';
|
|
5
|
-
export type { MarkerProps } from './Marker.types';
|
|
6
|
-
export type { PolylineProps } from './Polyline.types';
|
|
2
|
+
export * from './components';
|
|
3
|
+
export type { MapViewProps, MapViewRef, MoveCameraOptions, FitCoordinatesOptions, CameraEventPayload, } from './MapView.types';
|
|
7
4
|
export type { MapProvider, Coordinate, Point, EdgeInsets } from './types';
|
|
8
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,YAAY,EACV,YAAY,EACZ,UAAU,EACV,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lugg/maps",
|
|
3
|
-
"version": "0.2.0-alpha.
|
|
3
|
+
"version": "0.2.0-alpha.2",
|
|
4
4
|
"description": "Universal maps for React Native.",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "./lib/typescript/src/index.d.ts",
|
|
@@ -129,11 +129,11 @@
|
|
|
129
129
|
},
|
|
130
130
|
"ios": {
|
|
131
131
|
"componentProvider": {
|
|
132
|
-
"
|
|
133
|
-
"
|
|
134
|
-
"
|
|
135
|
-
"
|
|
136
|
-
"
|
|
132
|
+
"LuggGoogleMapView": "LuggGoogleMapView",
|
|
133
|
+
"LuggAppleMapView": "LuggAppleMapView",
|
|
134
|
+
"LuggMarkerView": "LuggMarkerView",
|
|
135
|
+
"LuggMapWrapperView": "LuggMapWrapperView",
|
|
136
|
+
"LuggPolylineView": "LuggPolylineView"
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
},
|
package/plugin/build/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const config_plugins_1 = require("@expo/config-plugins");
|
|
4
|
-
const
|
|
5
|
-
const
|
|
4
|
+
const withLuggMapsAndroid_1 = require("./withLuggMapsAndroid");
|
|
5
|
+
const withLuggMapsIOS_1 = require("./withLuggMapsIOS");
|
|
6
6
|
const pkg = require('../../package.json');
|
|
7
7
|
const withMaps = (config, props = {}) => {
|
|
8
8
|
const { iosGoogleMapsApiKey, androidGoogleMapsApiKey } = props ?? {};
|
|
9
|
-
config = (0,
|
|
10
|
-
config = (0,
|
|
9
|
+
config = (0, withLuggMapsIOS_1.withLuggMapsIOS)(config, { apiKey: iosGoogleMapsApiKey });
|
|
10
|
+
config = (0, withLuggMapsAndroid_1.withLuggMapsAndroid)(config, { apiKey: androidGoogleMapsApiKey });
|
|
11
11
|
return config;
|
|
12
12
|
};
|
|
13
13
|
exports.default = (0, config_plugins_1.createRunOncePlugin)(withMaps, pkg.name, pkg.version);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.withLuggMapsAndroid = void 0;
|
|
4
|
+
const config_plugins_1 = require("@expo/config-plugins");
|
|
5
|
+
const withLuggMapsAndroid = (config, { apiKey }) => {
|
|
6
|
+
if (!apiKey) {
|
|
7
|
+
return config;
|
|
8
|
+
}
|
|
9
|
+
return (0, config_plugins_1.withAndroidManifest)(config, (c) => {
|
|
10
|
+
const mainApplication = config_plugins_1.AndroidConfig.Manifest.getMainApplicationOrThrow(c.modResults);
|
|
11
|
+
config_plugins_1.AndroidConfig.Manifest.addMetaDataItemToMainApplication(mainApplication, 'com.google.android.geo.API_KEY', apiKey);
|
|
12
|
+
return c;
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
exports.withLuggMapsAndroid = withLuggMapsAndroid;
|