@lugg/maps 0.2.0-alpha.21 → 0.2.0-alpha.23
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 +5 -0
- package/android/src/main/java/com/luggmaps/LuggMapView.kt +201 -0
- package/android/src/main/java/com/luggmaps/{LuggGoogleMapViewManager.kt → LuggMapViewManager.kt} +39 -29
- package/android/src/main/java/com/luggmaps/LuggPackage.kt +1 -4
- package/android/src/main/java/com/luggmaps/{LuggGoogleMapView.kt → core/GoogleMapProvider.kt} +174 -189
- package/android/src/main/java/com/luggmaps/core/MapProviderDelegate.kt +51 -0
- package/android/src/main/java/com/luggmaps/core/PolylineAnimator.kt +28 -24
- package/ios/LuggMapView.h +9 -0
- package/ios/LuggMapView.mm +303 -0
- package/ios/core/AppleMapProvider.h +15 -0
- package/ios/{LuggAppleMapView.mm → core/AppleMapProvider.mm} +317 -410
- package/ios/core/GMSPolylineAnimator.m +16 -4
- package/ios/core/GoogleMapProvider.h +13 -0
- package/ios/{LuggGoogleMapView.mm → core/GoogleMapProvider.mm} +179 -218
- package/ios/core/MapProviderDelegate.h +68 -0
- package/lib/module/MapView.js +9 -12
- package/lib/module/MapView.js.map +1 -1
- package/lib/module/MapView.web.js +4 -1
- package/lib/module/MapView.web.js.map +1 -1
- package/lib/module/fabric/{LuggGoogleMapViewNativeComponent.ts → LuggMapViewNativeComponent.ts} +4 -1
- package/lib/typescript/src/MapView.d.ts +0 -1
- package/lib/typescript/src/MapView.d.ts.map +1 -1
- package/lib/typescript/src/MapView.types.d.ts +6 -1
- package/lib/typescript/src/MapView.types.d.ts.map +1 -1
- package/lib/typescript/src/MapView.web.d.ts.map +1 -1
- package/lib/typescript/src/fabric/{LuggGoogleMapViewNativeComponent.d.ts → LuggMapViewNativeComponent.d.ts} +4 -2
- package/lib/typescript/src/fabric/LuggMapViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +1 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +4 -0
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/package.json +5 -3
- package/src/MapView.tsx +11 -21
- package/src/MapView.types.ts +6 -1
- package/src/MapView.web.tsx +10 -0
- package/src/fabric/{LuggGoogleMapViewNativeComponent.ts → LuggMapViewNativeComponent.ts} +4 -1
- package/src/index.ts +1 -0
- package/src/types.ts +5 -0
- package/ios/LuggAppleMapView.h +0 -16
- package/ios/LuggGoogleMapView.h +0 -13
- package/lib/module/fabric/LuggAppleMapViewNativeComponent.ts +0 -83
- package/lib/typescript/src/fabric/LuggAppleMapViewNativeComponent.d.ts +0 -54
- package/lib/typescript/src/fabric/LuggAppleMapViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/src/fabric/LuggGoogleMapViewNativeComponent.d.ts.map +0 -1
- package/src/fabric/LuggAppleMapViewNativeComponent.ts +0 -83
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { codegenNativeComponent, codegenNativeCommands } from 'react-native';
|
|
2
|
-
import type { ViewProps, HostComponent } from 'react-native';
|
|
3
|
-
import type {
|
|
4
|
-
Double,
|
|
5
|
-
DirectEventHandler,
|
|
6
|
-
} from 'react-native/Libraries/Types/CodegenTypes';
|
|
7
|
-
|
|
8
|
-
export interface Coordinate {
|
|
9
|
-
latitude: Double;
|
|
10
|
-
longitude: Double;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface EdgeInsets {
|
|
14
|
-
top: Double;
|
|
15
|
-
left: Double;
|
|
16
|
-
bottom: Double;
|
|
17
|
-
right: Double;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export interface CameraMoveEvent {
|
|
21
|
-
coordinate: {
|
|
22
|
-
latitude: Double;
|
|
23
|
-
longitude: Double;
|
|
24
|
-
};
|
|
25
|
-
zoom: Double;
|
|
26
|
-
gesture: boolean;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export interface CameraIdleEvent {
|
|
30
|
-
coordinate: {
|
|
31
|
-
latitude: Double;
|
|
32
|
-
longitude: Double;
|
|
33
|
-
};
|
|
34
|
-
zoom: Double;
|
|
35
|
-
gesture: boolean;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export interface ReadyEvent {}
|
|
39
|
-
|
|
40
|
-
export interface NativeProps extends ViewProps {
|
|
41
|
-
initialCoordinate?: Coordinate;
|
|
42
|
-
initialZoom?: Double;
|
|
43
|
-
minZoom?: Double;
|
|
44
|
-
maxZoom?: Double;
|
|
45
|
-
zoomEnabled?: boolean;
|
|
46
|
-
scrollEnabled?: boolean;
|
|
47
|
-
rotateEnabled?: boolean;
|
|
48
|
-
pitchEnabled?: boolean;
|
|
49
|
-
padding?: EdgeInsets;
|
|
50
|
-
userLocationEnabled?: boolean;
|
|
51
|
-
onCameraMove?: DirectEventHandler<CameraMoveEvent>;
|
|
52
|
-
onCameraIdle?: DirectEventHandler<CameraIdleEvent>;
|
|
53
|
-
onReady?: DirectEventHandler<ReadyEvent>;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
type ComponentType = HostComponent<NativeProps>;
|
|
57
|
-
|
|
58
|
-
interface NativeCommands {
|
|
59
|
-
moveCamera: (
|
|
60
|
-
viewRef: React.ElementRef<ComponentType>,
|
|
61
|
-
latitude: Double,
|
|
62
|
-
longitude: Double,
|
|
63
|
-
zoom: Double,
|
|
64
|
-
duration: Double
|
|
65
|
-
) => void;
|
|
66
|
-
fitCoordinates: (
|
|
67
|
-
viewRef: React.ElementRef<ComponentType>,
|
|
68
|
-
coordinates: Coordinate[],
|
|
69
|
-
paddingTop: Double,
|
|
70
|
-
paddingLeft: Double,
|
|
71
|
-
paddingBottom: Double,
|
|
72
|
-
paddingRight: Double,
|
|
73
|
-
duration: Double
|
|
74
|
-
) => void;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export const Commands = codegenNativeCommands<NativeCommands>({
|
|
78
|
-
supportedCommands: ['moveCamera', 'fitCoordinates'],
|
|
79
|
-
});
|
|
80
|
-
|
|
81
|
-
export default codegenNativeComponent<NativeProps>(
|
|
82
|
-
'LuggAppleMapView'
|
|
83
|
-
) as ComponentType;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import type { ViewProps, HostComponent } from 'react-native';
|
|
2
|
-
import type { Double, DirectEventHandler } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
|
-
export interface Coordinate {
|
|
4
|
-
latitude: Double;
|
|
5
|
-
longitude: Double;
|
|
6
|
-
}
|
|
7
|
-
export interface EdgeInsets {
|
|
8
|
-
top: Double;
|
|
9
|
-
left: Double;
|
|
10
|
-
bottom: Double;
|
|
11
|
-
right: Double;
|
|
12
|
-
}
|
|
13
|
-
export interface CameraMoveEvent {
|
|
14
|
-
coordinate: {
|
|
15
|
-
latitude: Double;
|
|
16
|
-
longitude: Double;
|
|
17
|
-
};
|
|
18
|
-
zoom: Double;
|
|
19
|
-
gesture: boolean;
|
|
20
|
-
}
|
|
21
|
-
export interface CameraIdleEvent {
|
|
22
|
-
coordinate: {
|
|
23
|
-
latitude: Double;
|
|
24
|
-
longitude: Double;
|
|
25
|
-
};
|
|
26
|
-
zoom: Double;
|
|
27
|
-
gesture: boolean;
|
|
28
|
-
}
|
|
29
|
-
export interface ReadyEvent {
|
|
30
|
-
}
|
|
31
|
-
export interface NativeProps extends ViewProps {
|
|
32
|
-
initialCoordinate?: Coordinate;
|
|
33
|
-
initialZoom?: Double;
|
|
34
|
-
minZoom?: Double;
|
|
35
|
-
maxZoom?: Double;
|
|
36
|
-
zoomEnabled?: boolean;
|
|
37
|
-
scrollEnabled?: boolean;
|
|
38
|
-
rotateEnabled?: boolean;
|
|
39
|
-
pitchEnabled?: boolean;
|
|
40
|
-
padding?: EdgeInsets;
|
|
41
|
-
userLocationEnabled?: boolean;
|
|
42
|
-
onCameraMove?: DirectEventHandler<CameraMoveEvent>;
|
|
43
|
-
onCameraIdle?: DirectEventHandler<CameraIdleEvent>;
|
|
44
|
-
onReady?: DirectEventHandler<ReadyEvent>;
|
|
45
|
-
}
|
|
46
|
-
type ComponentType = HostComponent<NativeProps>;
|
|
47
|
-
interface NativeCommands {
|
|
48
|
-
moveCamera: (viewRef: React.ElementRef<ComponentType>, latitude: Double, longitude: Double, zoom: Double, duration: Double) => void;
|
|
49
|
-
fitCoordinates: (viewRef: React.ElementRef<ComponentType>, coordinates: Coordinate[], paddingTop: Double, paddingLeft: Double, paddingBottom: Double, paddingRight: Double, duration: Double) => void;
|
|
50
|
-
}
|
|
51
|
-
export declare const Commands: NativeCommands;
|
|
52
|
-
declare const _default: ComponentType;
|
|
53
|
-
export default _default;
|
|
54
|
-
//# sourceMappingURL=LuggAppleMapViewNativeComponent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LuggAppleMapViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/fabric/LuggAppleMapViewNativeComponent.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,CAAC;CACnB;AAED,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE;QACV,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE;QACV,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,MAAM,CAA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wBAIE,aAAa;AAFlB,wBAEmB"}
|
|
@@ -1 +0,0 @@
|
|
|
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,CAAC;CACnB;AAED,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE;QACV,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE;QACV,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,UAAU;CAAG;AAE9B,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,UAAU,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,YAAY,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"}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { codegenNativeComponent, codegenNativeCommands } from 'react-native';
|
|
2
|
-
import type { ViewProps, HostComponent } from 'react-native';
|
|
3
|
-
import type {
|
|
4
|
-
Double,
|
|
5
|
-
DirectEventHandler,
|
|
6
|
-
} from 'react-native/Libraries/Types/CodegenTypes';
|
|
7
|
-
|
|
8
|
-
export interface Coordinate {
|
|
9
|
-
latitude: Double;
|
|
10
|
-
longitude: Double;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface EdgeInsets {
|
|
14
|
-
top: Double;
|
|
15
|
-
left: Double;
|
|
16
|
-
bottom: Double;
|
|
17
|
-
right: Double;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export interface CameraMoveEvent {
|
|
21
|
-
coordinate: {
|
|
22
|
-
latitude: Double;
|
|
23
|
-
longitude: Double;
|
|
24
|
-
};
|
|
25
|
-
zoom: Double;
|
|
26
|
-
gesture: boolean;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export interface CameraIdleEvent {
|
|
30
|
-
coordinate: {
|
|
31
|
-
latitude: Double;
|
|
32
|
-
longitude: Double;
|
|
33
|
-
};
|
|
34
|
-
zoom: Double;
|
|
35
|
-
gesture: boolean;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export interface ReadyEvent {}
|
|
39
|
-
|
|
40
|
-
export interface NativeProps extends ViewProps {
|
|
41
|
-
initialCoordinate?: Coordinate;
|
|
42
|
-
initialZoom?: Double;
|
|
43
|
-
minZoom?: Double;
|
|
44
|
-
maxZoom?: Double;
|
|
45
|
-
zoomEnabled?: boolean;
|
|
46
|
-
scrollEnabled?: boolean;
|
|
47
|
-
rotateEnabled?: boolean;
|
|
48
|
-
pitchEnabled?: boolean;
|
|
49
|
-
padding?: EdgeInsets;
|
|
50
|
-
userLocationEnabled?: boolean;
|
|
51
|
-
onCameraMove?: DirectEventHandler<CameraMoveEvent>;
|
|
52
|
-
onCameraIdle?: DirectEventHandler<CameraIdleEvent>;
|
|
53
|
-
onReady?: DirectEventHandler<ReadyEvent>;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
type ComponentType = HostComponent<NativeProps>;
|
|
57
|
-
|
|
58
|
-
interface NativeCommands {
|
|
59
|
-
moveCamera: (
|
|
60
|
-
viewRef: React.ElementRef<ComponentType>,
|
|
61
|
-
latitude: Double,
|
|
62
|
-
longitude: Double,
|
|
63
|
-
zoom: Double,
|
|
64
|
-
duration: Double
|
|
65
|
-
) => void;
|
|
66
|
-
fitCoordinates: (
|
|
67
|
-
viewRef: React.ElementRef<ComponentType>,
|
|
68
|
-
coordinates: Coordinate[],
|
|
69
|
-
paddingTop: Double,
|
|
70
|
-
paddingLeft: Double,
|
|
71
|
-
paddingBottom: Double,
|
|
72
|
-
paddingRight: Double,
|
|
73
|
-
duration: Double
|
|
74
|
-
) => void;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export const Commands = codegenNativeCommands<NativeCommands>({
|
|
78
|
-
supportedCommands: ['moveCamera', 'fitCoordinates'],
|
|
79
|
-
});
|
|
80
|
-
|
|
81
|
-
export default codegenNativeComponent<NativeProps>(
|
|
82
|
-
'LuggAppleMapView'
|
|
83
|
-
) as ComponentType;
|