@lugg/maps 1.0.0-beta.1 → 1.0.0-beta.11
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 +3 -0
- package/android/src/main/java/com/luggmaps/LuggCalloutView.kt +9 -2
- package/android/src/main/java/com/luggmaps/LuggCalloutViewManager.kt +4 -3
- package/android/src/main/java/com/luggmaps/LuggCircleView.kt +85 -0
- package/android/src/main/java/com/luggmaps/LuggCircleViewManager.kt +79 -0
- package/android/src/main/java/com/luggmaps/LuggGroundOverlayView.kt +81 -0
- package/android/src/main/java/com/luggmaps/LuggGroundOverlayViewManager.kt +82 -0
- package/android/src/main/java/com/luggmaps/LuggMapView.kt +49 -0
- package/android/src/main/java/com/luggmaps/LuggMapViewManager.kt +31 -0
- package/android/src/main/java/com/luggmaps/LuggMarkerView.kt +28 -0
- package/android/src/main/java/com/luggmaps/LuggMarkerViewManager.kt +13 -0
- package/android/src/main/java/com/luggmaps/LuggPackage.kt +4 -1
- package/android/src/main/java/com/luggmaps/LuggPolylineView.kt +1 -22
- package/android/src/main/java/com/luggmaps/LuggTileOverlayView.kt +92 -0
- package/android/src/main/java/com/luggmaps/LuggTileOverlayViewManager.kt +80 -0
- package/android/src/main/java/com/luggmaps/core/GoogleMapProvider.kt +451 -17
- package/android/src/main/java/com/luggmaps/core/MapProviderDelegate.kt +14 -0
- package/android/src/main/java/com/luggmaps/core/PolylineAnimator.kt +27 -9
- package/android/src/main/java/com/luggmaps/events/CirclePressEvent.kt +12 -0
- package/android/src/main/java/com/luggmaps/events/GroundOverlayPressEvent.kt +12 -0
- package/android/src/main/java/com/luggmaps/events/TileOverlayPressEvent.kt +12 -0
- package/android/src/main/java/com/luggmaps/extensions/ViewExtensions.kt +11 -0
- package/ios/LuggCalloutView.h +1 -1
- package/ios/LuggCalloutView.mm +21 -11
- package/ios/LuggCircleView.h +31 -0
- package/ios/LuggCircleView.mm +133 -0
- package/ios/LuggGroundOverlayView.h +30 -0
- package/ios/LuggGroundOverlayView.mm +125 -0
- package/ios/LuggMapView.mm +84 -2
- package/ios/LuggMarkerView.h +3 -0
- package/ios/LuggMarkerView.mm +23 -0
- package/ios/LuggTileOverlayView.h +31 -0
- package/ios/LuggTileOverlayView.mm +130 -0
- package/ios/core/AppleMapProvider.mm +697 -37
- package/ios/core/GMSPolylineAnimator.m +6 -3
- package/ios/core/GoogleMapProvider.mm +400 -22
- package/ios/core/MapProviderDelegate.h +20 -1
- package/ios/events/CirclePressEvent.h +20 -0
- package/ios/events/GroundOverlayPressEvent.h +20 -0
- package/ios/events/TileOverlayPressEvent.h +20 -0
- package/lib/module/MapProvider.web.js +4 -1
- package/lib/module/MapProvider.web.js.map +1 -1
- package/lib/module/MapView.js +12 -1
- package/lib/module/MapView.js.map +1 -1
- package/lib/module/MapView.web.js +21 -18
- package/lib/module/MapView.web.js.map +1 -1
- package/lib/module/components/Circle.js +46 -0
- package/lib/module/components/Circle.js.map +1 -0
- package/lib/module/components/Circle.types.js +4 -0
- package/lib/module/components/Circle.types.js.map +1 -0
- package/lib/module/components/Circle.web.js +79 -0
- package/lib/module/components/Circle.web.js.map +1 -0
- package/lib/module/components/GeoJson.js +3 -3
- package/lib/module/components/GeoJson.js.map +1 -1
- package/lib/module/components/GroundOverlay.js +45 -0
- package/lib/module/components/GroundOverlay.js.map +1 -0
- package/lib/module/components/GroundOverlay.types.js +4 -0
- package/lib/module/components/GroundOverlay.types.js.map +1 -0
- package/lib/module/components/GroundOverlay.web.js +77 -0
- package/lib/module/components/GroundOverlay.web.js.map +1 -0
- package/lib/module/components/Marker.js +22 -4
- package/lib/module/components/Marker.js.map +1 -1
- package/lib/module/components/Marker.web.js +23 -10
- package/lib/module/components/Marker.web.js.map +1 -1
- package/lib/module/components/Polygon.web.js +3 -3
- package/lib/module/components/Polygon.web.js.map +1 -1
- package/lib/module/components/Polyline.web.js +6 -12
- package/lib/module/components/Polyline.web.js.map +1 -1
- package/lib/module/components/TileOverlay.js +44 -0
- package/lib/module/components/TileOverlay.js.map +1 -0
- package/lib/module/components/TileOverlay.types.js +4 -0
- package/lib/module/components/TileOverlay.types.js.map +1 -0
- package/lib/module/components/TileOverlay.web.js +69 -0
- package/lib/module/components/TileOverlay.web.js.map +1 -0
- package/lib/module/components/index.js +3 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/index.web.js +3 -0
- package/lib/module/components/index.web.js.map +1 -1
- package/lib/module/fabric/LuggCalloutViewNativeComponent.ts +1 -1
- package/lib/module/fabric/LuggCircleViewNativeComponent.ts +25 -0
- package/lib/module/fabric/LuggGroundOverlayViewNativeComponent.ts +29 -0
- package/lib/module/fabric/LuggMapViewNativeComponent.ts +13 -5
- package/lib/module/fabric/LuggMarkerViewNativeComponent.ts +14 -2
- package/lib/module/fabric/LuggTileOverlayViewNativeComponent.ts +30 -0
- package/lib/module/index.js +3 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.web.js +3 -0
- package/lib/module/index.web.js.map +1 -1
- package/lib/typescript/src/MapProvider.web.d.ts +3 -2
- package/lib/typescript/src/MapProvider.web.d.ts.map +1 -1
- package/lib/typescript/src/MapView.d.ts +1 -1
- package/lib/typescript/src/MapView.d.ts.map +1 -1
- package/lib/typescript/src/MapView.types.d.ts +36 -1
- package/lib/typescript/src/MapView.types.d.ts.map +1 -1
- package/lib/typescript/src/MapView.web.d.ts +1 -1
- package/lib/typescript/src/MapView.web.d.ts.map +1 -1
- package/lib/typescript/src/components/Circle.d.ts +10 -0
- package/lib/typescript/src/components/Circle.d.ts.map +1 -0
- package/lib/typescript/src/components/Circle.types.d.ts +33 -0
- package/lib/typescript/src/components/Circle.types.d.ts.map +1 -0
- package/lib/typescript/src/components/Circle.web.d.ts +3 -0
- package/lib/typescript/src/components/Circle.web.d.ts.map +1 -0
- package/lib/typescript/src/components/GeoJson.d.ts +2 -1
- package/lib/typescript/src/components/GeoJson.d.ts.map +1 -1
- package/lib/typescript/src/components/GroundOverlay.d.ts +10 -0
- package/lib/typescript/src/components/GroundOverlay.d.ts.map +1 -0
- package/lib/typescript/src/components/GroundOverlay.types.d.ts +35 -0
- package/lib/typescript/src/components/GroundOverlay.types.d.ts.map +1 -0
- package/lib/typescript/src/components/GroundOverlay.web.d.ts +3 -0
- package/lib/typescript/src/components/GroundOverlay.web.d.ts.map +1 -0
- package/lib/typescript/src/components/Marker.d.ts +6 -3
- package/lib/typescript/src/components/Marker.d.ts.map +1 -1
- package/lib/typescript/src/components/Marker.types.d.ts +18 -6
- package/lib/typescript/src/components/Marker.types.d.ts.map +1 -1
- package/lib/typescript/src/components/Marker.web.d.ts +3 -2
- package/lib/typescript/src/components/Marker.web.d.ts.map +1 -1
- package/lib/typescript/src/components/Polygon.web.d.ts +1 -1
- package/lib/typescript/src/components/Polygon.web.d.ts.map +1 -1
- package/lib/typescript/src/components/Polyline.web.d.ts +1 -1
- package/lib/typescript/src/components/Polyline.web.d.ts.map +1 -1
- package/lib/typescript/src/components/TileOverlay.d.ts +10 -0
- package/lib/typescript/src/components/TileOverlay.d.ts.map +1 -0
- package/lib/typescript/src/components/TileOverlay.types.d.ts +36 -0
- package/lib/typescript/src/components/TileOverlay.types.d.ts.map +1 -0
- package/lib/typescript/src/components/TileOverlay.web.d.ts +3 -0
- package/lib/typescript/src/components/TileOverlay.web.d.ts.map +1 -0
- package/lib/typescript/src/components/index.d.ts +7 -1
- package/lib/typescript/src/components/index.d.ts.map +1 -1
- package/lib/typescript/src/components/index.web.d.ts +6 -0
- package/lib/typescript/src/components/index.web.d.ts.map +1 -1
- package/lib/typescript/src/fabric/LuggCalloutViewNativeComponent.d.ts +1 -1
- package/lib/typescript/src/fabric/LuggCircleViewNativeComponent.d.ts +18 -0
- package/lib/typescript/src/fabric/LuggCircleViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/fabric/LuggGroundOverlayViewNativeComponent.d.ts +21 -0
- package/lib/typescript/src/fabric/LuggGroundOverlayViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/fabric/LuggMapViewNativeComponent.d.ts +10 -5
- package/lib/typescript/src/fabric/LuggMapViewNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/fabric/LuggMarkerViewNativeComponent.d.ts +8 -1
- package/lib/typescript/src/fabric/LuggMarkerViewNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/fabric/LuggTileOverlayViewNativeComponent.d.ts +21 -0
- package/lib/typescript/src/fabric/LuggTileOverlayViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +9 -3
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/index.web.d.ts +7 -1
- package/lib/typescript/src/index.web.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +0 -4
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/package.json +5 -2
- package/src/MapProvider.web.tsx +5 -3
- package/src/MapView.tsx +12 -1
- package/src/MapView.types.ts +118 -1
- package/src/MapView.web.tsx +378 -345
- package/src/components/Circle.tsx +52 -0
- package/src/components/Circle.types.ts +33 -0
- package/src/components/Circle.web.tsx +95 -0
- package/src/components/GeoJson.tsx +3 -3
- package/src/components/GroundOverlay.tsx +47 -0
- package/src/components/GroundOverlay.types.ts +36 -0
- package/src/components/GroundOverlay.web.tsx +81 -0
- package/src/components/Marker.tsx +32 -6
- package/src/components/Marker.types.ts +19 -6
- package/src/components/Marker.web.tsx +196 -150
- package/src/components/Polygon.web.tsx +93 -89
- package/src/components/Polyline.web.tsx +235 -235
- package/src/components/TileOverlay.tsx +44 -0
- package/src/components/TileOverlay.types.ts +37 -0
- package/src/components/TileOverlay.web.tsx +97 -0
- package/src/components/index.ts +10 -0
- package/src/components/index.web.ts +9 -0
- package/src/fabric/LuggCalloutViewNativeComponent.ts +1 -1
- package/src/fabric/LuggCircleViewNativeComponent.ts +25 -0
- package/src/fabric/LuggGroundOverlayViewNativeComponent.ts +29 -0
- package/src/fabric/LuggMapViewNativeComponent.ts +13 -5
- package/src/fabric/LuggMarkerViewNativeComponent.ts +14 -2
- package/src/fabric/LuggTileOverlayViewNativeComponent.ts +30 -0
- package/src/index.ts +12 -1
- package/src/index.web.ts +15 -0
- package/src/types.ts +0 -5
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { codegenNativeComponent } 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 Bounds {
|
|
14
|
+
northeast: Coordinate;
|
|
15
|
+
southwest: Coordinate;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface NativeProps extends ViewProps {
|
|
19
|
+
image: string;
|
|
20
|
+
bounds: Bounds;
|
|
21
|
+
opacity?: Double;
|
|
22
|
+
bearing?: Double;
|
|
23
|
+
tappable?: boolean;
|
|
24
|
+
onGroundOverlayPress?: DirectEventHandler<null>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export default codegenNativeComponent<NativeProps>(
|
|
28
|
+
'LuggGroundOverlayView'
|
|
29
|
+
) as HostComponent<NativeProps>;
|
|
@@ -62,19 +62,27 @@ export interface ReadyEvent {}
|
|
|
62
62
|
|
|
63
63
|
export interface NativeProps extends ViewProps {
|
|
64
64
|
provider?: WithDefault<'google' | 'apple', 'google'>;
|
|
65
|
+
mapType?: WithDefault<
|
|
66
|
+
'standard' | 'satellite' | 'terrain' | 'hybrid' | 'muted-standard',
|
|
67
|
+
'standard'
|
|
68
|
+
>;
|
|
65
69
|
mapId?: string;
|
|
66
70
|
initialCoordinate?: Coordinate;
|
|
67
71
|
initialZoom?: Double;
|
|
68
72
|
minZoom?: Double;
|
|
69
73
|
maxZoom?: Double;
|
|
70
|
-
zoomEnabled?: boolean
|
|
71
|
-
scrollEnabled?: boolean
|
|
72
|
-
rotateEnabled?: boolean
|
|
73
|
-
pitchEnabled?: boolean
|
|
74
|
+
zoomEnabled?: WithDefault<boolean, true>;
|
|
75
|
+
scrollEnabled?: WithDefault<boolean, true>;
|
|
76
|
+
rotateEnabled?: WithDefault<boolean, true>;
|
|
77
|
+
pitchEnabled?: WithDefault<boolean, true>;
|
|
74
78
|
edgeInsets?: EdgeInsets;
|
|
75
79
|
userLocationEnabled?: boolean;
|
|
76
80
|
userLocationButtonEnabled?: boolean;
|
|
77
|
-
|
|
81
|
+
poiEnabled?: boolean;
|
|
82
|
+
poiFilterMode?: WithDefault<'including' | 'excluding', 'including'>;
|
|
83
|
+
poiFilterCategories?: ReadonlyArray<string>;
|
|
84
|
+
theme?: WithDefault<'system' | 'light' | 'dark', 'system'>;
|
|
85
|
+
insetAdjustment?: WithDefault<'never' | 'automatic', 'never'>;
|
|
78
86
|
onMapPress?: DirectEventHandler<PressEvent>;
|
|
79
87
|
onMapLongPress?: DirectEventHandler<LongPressEvent>;
|
|
80
88
|
onCameraMove?: DirectEventHandler<CameraMoveEvent>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { codegenNativeComponent } from 'react-native';
|
|
1
|
+
import { codegenNativeComponent, codegenNativeCommands } from 'react-native';
|
|
2
2
|
import type { ViewProps, HostComponent } from 'react-native';
|
|
3
3
|
import type {
|
|
4
4
|
Double,
|
|
@@ -25,6 +25,7 @@ export interface NativeProps extends ViewProps {
|
|
|
25
25
|
rotate?: WithDefault<Double, 0>;
|
|
26
26
|
scale?: WithDefault<Double, 1>;
|
|
27
27
|
rasterize?: WithDefault<boolean, true>;
|
|
28
|
+
centerOnPress?: WithDefault<boolean, true>;
|
|
28
29
|
draggable?: WithDefault<boolean, false>;
|
|
29
30
|
onMarkerPress?: DirectEventHandler<{
|
|
30
31
|
coordinate: {
|
|
@@ -68,6 +69,17 @@ export interface NativeProps extends ViewProps {
|
|
|
68
69
|
}>;
|
|
69
70
|
}
|
|
70
71
|
|
|
72
|
+
type ComponentType = HostComponent<NativeProps>;
|
|
73
|
+
|
|
74
|
+
interface NativeCommands {
|
|
75
|
+
showCallout: (viewRef: React.ElementRef<ComponentType>) => void;
|
|
76
|
+
hideCallout: (viewRef: React.ElementRef<ComponentType>) => void;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export const Commands = codegenNativeCommands<NativeCommands>({
|
|
80
|
+
supportedCommands: ['showCallout', 'hideCallout'],
|
|
81
|
+
});
|
|
82
|
+
|
|
71
83
|
export default codegenNativeComponent<NativeProps>(
|
|
72
84
|
'LuggMarkerView'
|
|
73
|
-
) as
|
|
85
|
+
) as ComponentType;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { codegenNativeComponent } from 'react-native';
|
|
2
|
+
import type { ViewProps, HostComponent } from 'react-native';
|
|
3
|
+
import type {
|
|
4
|
+
Double,
|
|
5
|
+
Int32,
|
|
6
|
+
DirectEventHandler,
|
|
7
|
+
} from 'react-native/Libraries/Types/CodegenTypes';
|
|
8
|
+
|
|
9
|
+
export interface Coordinate {
|
|
10
|
+
latitude: Double;
|
|
11
|
+
longitude: Double;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface Bounds {
|
|
15
|
+
northeast: Coordinate;
|
|
16
|
+
southwest: Coordinate;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface NativeProps extends ViewProps {
|
|
20
|
+
urlTemplate: string;
|
|
21
|
+
tileSize?: Int32;
|
|
22
|
+
opacity?: Double;
|
|
23
|
+
bounds?: Bounds;
|
|
24
|
+
tappable?: boolean;
|
|
25
|
+
onTileOverlayPress?: DirectEventHandler<null>;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export default codegenNativeComponent<NativeProps>(
|
|
29
|
+
'LuggTileOverlayView'
|
|
30
|
+
) as HostComponent<NativeProps>;
|
package/lib/module/index.js
CHANGED
|
@@ -4,6 +4,9 @@ export { MapView } from './MapView';
|
|
|
4
4
|
export { MapProvider } from './MapProvider';
|
|
5
5
|
export { Marker } from './components';
|
|
6
6
|
export { Polygon } from './components';
|
|
7
|
+
export { Circle } from './components';
|
|
7
8
|
export { Polyline } from './components';
|
|
8
9
|
export { GeoJson } from './components';
|
|
10
|
+
export { GroundOverlay } from './components';
|
|
11
|
+
export { TileOverlay } from './components';
|
|
9
12
|
//# sourceMappingURL=index.js.map
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["MapView","MapProvider","Marker","Polygon","Polyline","GeoJson"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,WAAW;AACnC,SAASC,WAAW,QAAQ,eAAe;AAE3C,SAASC,MAAM,QAAQ,cAAc;
|
|
1
|
+
{"version":3,"names":["MapView","MapProvider","Marker","Polygon","Circle","Polyline","GeoJson","GroundOverlay","TileOverlay"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,WAAW;AACnC,SAASC,WAAW,QAAQ,eAAe;AAE3C,SAASC,MAAM,QAAQ,cAAc;AAQrC,SAASC,OAAO,QAAQ,cAAc;AAEtC,SAASC,MAAM,QAAQ,cAAc;AAErC,SAASC,QAAQ,QAAQ,cAAc;AAMvC,SAASC,OAAO,QAAQ,cAAc;AAEtC,SAASC,aAAa,QAAQ,cAAc;AAE5C,SAASC,WAAW,QAAQ,cAAc","ignoreList":[]}
|
package/lib/module/index.web.js
CHANGED
|
@@ -4,6 +4,9 @@ export { MapView } from "./MapView.web.js";
|
|
|
4
4
|
export { MapProvider } from "./MapProvider.web.js";
|
|
5
5
|
export { Marker } from "./components/index.web.js";
|
|
6
6
|
export { Polygon } from "./components/index.web.js";
|
|
7
|
+
export { Circle } from "./components/index.web.js";
|
|
7
8
|
export { Polyline } from "./components/index.web.js";
|
|
8
9
|
export { GeoJson } from "./components/index.web.js";
|
|
10
|
+
export { GroundOverlay } from "./components/index.web.js";
|
|
11
|
+
export { TileOverlay } from "./components/index.web.js";
|
|
9
12
|
//# sourceMappingURL=index.web.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["MapView","MapProvider","Marker","Polygon","Polyline","GeoJson"],"sourceRoot":"../../src","sources":["index.web.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,kBAAe;AACvC,SAASC,WAAW,QAAQ,sBAAmB;AAE/C,SAASC,MAAM,QAAQ,2BAAwB;AAE/C,SAASC,OAAO,QAAQ,2BAAwB;AAEhD,SAASC,QAAQ,QAAQ,2BAAwB;AAEjD,SAASC,OAAO,QAAQ,2BAAwB","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["MapView","MapProvider","Marker","Polygon","Circle","Polyline","GeoJson","GroundOverlay","TileOverlay"],"sourceRoot":"../../src","sources":["index.web.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,kBAAe;AACvC,SAASC,WAAW,QAAQ,sBAAmB;AAE/C,SAASC,MAAM,QAAQ,2BAAwB;AAE/C,SAASC,OAAO,QAAQ,2BAAwB;AAEhD,SAASC,MAAM,QAAQ,2BAAwB;AAE/C,SAASC,QAAQ,QAAQ,2BAAwB;AAEjD,SAASC,OAAO,QAAQ,2BAAwB;AAEhD,SAASC,aAAa,QAAQ,2BAAwB;AAKtD,SAASC,WAAW,QAAQ,2BAAwB","ignoreList":[]}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { type MutableRefObject } from 'react';
|
|
1
2
|
import type { MapProviderProps } from './MapProvider.types';
|
|
2
3
|
type CalloutCloseListener = () => void;
|
|
3
4
|
export declare const MapContext: import("react").Context<{
|
|
4
5
|
map: google.maps.Map | null;
|
|
5
|
-
|
|
6
|
+
isDraggingRef: MutableRefObject<boolean>;
|
|
6
7
|
moveCamera: (coordinate: {
|
|
7
8
|
latitude: number;
|
|
8
9
|
longitude: number;
|
|
@@ -12,7 +13,7 @@ export declare const MapContext: import("react").Context<{
|
|
|
12
13
|
}>;
|
|
13
14
|
export declare const useMapContext: () => {
|
|
14
15
|
map: google.maps.Map | null;
|
|
15
|
-
|
|
16
|
+
isDraggingRef: MutableRefObject<boolean>;
|
|
16
17
|
moveCamera: (coordinate: {
|
|
17
18
|
latitude: number;
|
|
18
19
|
longitude: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MapProvider.web.d.ts","sourceRoot":"","sources":["../../../src/MapProvider.web.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MapProvider.web.d.ts","sourceRoot":"","sources":["../../../src/MapProvider.web.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAEzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,KAAK,oBAAoB,GAAG,MAAM,IAAI,CAAC;AAIvC,eAAO,MAAM,UAAU;SAChB,MAAM,CAAC,IAAI,CAAC,GAAG,GAAG,IAAI;mBACZ,gBAAgB,CAAC,OAAO,CAAC;gBAC5B,CAAC,UAAU,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI;oBACzD,CAAC,QAAQ,EAAE,oBAAoB,KAAK,MAAM,IAAI;mBAC/C,CAAC,MAAM,CAAC,EAAE,oBAAoB,KAAK,IAAI;EAOtD,CAAC;AAEH,eAAO,MAAM,aAAa;SAbnB,MAAM,CAAC,IAAI,CAAC,GAAG,GAAG,IAAI;mBACZ,gBAAgB,CAAC,OAAO,CAAC;gBAC5B,CAAC,UAAU,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI;oBACzD,CAAC,QAAQ,EAAE,oBAAoB,KAAK,MAAM,IAAI;mBAC/C,CAAC,MAAM,CAAC,EAAE,oBAAoB,KAAK,IAAI;CASC,CAAC;AAE1D,eAAO,MAAM,WAAW,GAAI,sBAA2B,gBAAgB,4CAEtE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { MapViewProps, MapViewRef, MoveCameraOptions, FitCoordinatesOptions, SetEdgeInsetsOptions } from './MapView.types';
|
|
3
3
|
import type { Coordinate, EdgeInsets } from './types';
|
|
4
|
-
export declare class MapView extends React.
|
|
4
|
+
export declare class MapView extends React.PureComponent<MapViewProps> implements MapViewRef {
|
|
5
5
|
static defaultProps: Partial<MapViewProps>;
|
|
6
6
|
private nativeRef;
|
|
7
7
|
moveCamera(coordinate: Coordinate, options?: MoveCameraOptions): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MapView.d.ts","sourceRoot":"","sources":["../../../src/MapView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,KAAK,EACV,YAAY,EACZ,UAAU,EACV,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEtD,qBAAa,OACX,SAAQ,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"MapView.d.ts","sourceRoot":"","sources":["../../../src/MapView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,KAAK,EACV,YAAY,EACZ,UAAU,EACV,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEtD,qBAAa,OACX,SAAQ,KAAK,CAAC,aAAa,CAAC,YAAY,CACxC,YAAW,UAAU;IAErB,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,YAAY,CAAC,CAUxC;IAEF,OAAO,CAAC,SAAS,CAA0B;IAE3C,UAAU,CAAC,UAAU,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,iBAAiB;IAc9D,cAAc,CAAC,WAAW,EAAE,UAAU,EAAE,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAyBzE,aAAa,CAAC,UAAU,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,oBAAoB;IASpE,MAAM;CA+DP"}
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { NativeSyntheticEvent, ViewProps } from 'react-native';
|
|
3
|
-
import type { MapProvider, Coordinate, EdgeInsets,
|
|
3
|
+
import type { MapProvider, Coordinate, EdgeInsets, PressEventPayload } from './types';
|
|
4
|
+
export type MapType = 'standard' | 'satellite' | 'terrain' | 'hybrid' | 'muted-standard';
|
|
5
|
+
export type MapTheme = 'light' | 'dark' | 'system';
|
|
6
|
+
export type InsetAdjustment = 'automatic' | 'never';
|
|
7
|
+
export type PoiCategory = 'airport' | 'amusement-park' | 'animal-service' | 'aquarium' | 'atm' | 'automotive-repair' | 'bakery' | 'bank' | 'baseball' | 'basketball' | 'beach' | 'beauty' | 'bowling' | 'brewery' | 'cafe' | 'campground' | 'car-rental' | 'castle' | 'convention-center' | 'distillery' | 'ev-charger' | 'fairground' | 'fire-station' | 'fishing' | 'fitness-center' | 'food-market' | 'fortress' | 'gas-station' | 'go-kart' | 'golf' | 'hiking' | 'hospital' | 'hotel' | 'kayaking' | 'landmark' | 'laundry' | 'library' | 'mailbox' | 'marina' | 'mini-golf' | 'movie-theater' | 'museum' | 'music-venue' | 'national-monument' | 'national-park' | 'nightlife' | 'park' | 'parking' | 'pharmacy' | 'planetarium' | 'police' | 'post-office' | 'public-transport' | 'restaurant' | 'restroom' | 'rock-climbing' | 'rv-park' | 'school' | 'skate-park' | 'skating' | 'skiing' | 'soccer' | 'spa' | 'stadium' | 'store' | 'surfing' | 'swimming' | 'tennis' | 'theater' | 'university' | 'volleyball' | 'winery' | 'zoo';
|
|
8
|
+
export interface PoiFilter {
|
|
9
|
+
/**
|
|
10
|
+
* Filter mode
|
|
11
|
+
* @default 'including'
|
|
12
|
+
*/
|
|
13
|
+
mode?: 'including' | 'excluding';
|
|
14
|
+
categories: PoiCategory[];
|
|
15
|
+
}
|
|
4
16
|
/**
|
|
5
17
|
* Options for moving the camera
|
|
6
18
|
*/
|
|
@@ -48,6 +60,11 @@ export interface MapViewProps extends ViewProps {
|
|
|
48
60
|
* @default 'apple' on iOS, 'google' on Android
|
|
49
61
|
*/
|
|
50
62
|
provider?: MapProvider;
|
|
63
|
+
/**
|
|
64
|
+
* Map type to display
|
|
65
|
+
* @default 'standard'
|
|
66
|
+
*/
|
|
67
|
+
mapType?: MapType;
|
|
51
68
|
/**
|
|
52
69
|
* Map style ID (Google Maps) or configuration name (Apple Maps)
|
|
53
70
|
*/
|
|
@@ -105,11 +122,29 @@ export interface MapViewProps extends ViewProps {
|
|
|
105
122
|
* @platform android
|
|
106
123
|
*/
|
|
107
124
|
userLocationButtonEnabled?: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Show points of interest on the map (Apple Maps only).
|
|
127
|
+
* When false, hides all POIs regardless of poiFilter.
|
|
128
|
+
* @default true
|
|
129
|
+
* @platform ios
|
|
130
|
+
*/
|
|
131
|
+
poiEnabled?: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* Filter POI categories to show or hide (Apple Maps only).
|
|
134
|
+
* Only takes effect when poiEnabled is true.
|
|
135
|
+
* @platform ios
|
|
136
|
+
*/
|
|
137
|
+
poiFilter?: PoiFilter;
|
|
108
138
|
/**
|
|
109
139
|
* Map color theme
|
|
110
140
|
* @default 'system'
|
|
111
141
|
*/
|
|
112
142
|
theme?: MapTheme;
|
|
143
|
+
/**
|
|
144
|
+
* Safe area inset adjustment behavior
|
|
145
|
+
* @default 'never'
|
|
146
|
+
*/
|
|
147
|
+
insetAdjustment?: InsetAdjustment;
|
|
113
148
|
/**
|
|
114
149
|
* Called when the map is pressed
|
|
115
150
|
*/
|
|
@@ -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,EACV,WAAW,EACX,UAAU,EACV,UAAU,EACV,QAAQ,
|
|
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,EACV,WAAW,EACX,UAAU,EACV,UAAU,EACV,iBAAiB,EAClB,MAAM,SAAS,CAAC;AAEjB,MAAM,MAAM,OAAO,GACf,UAAU,GACV,WAAW,GACX,SAAS,GACT,QAAQ,GACR,gBAAgB,CAAC;AAErB,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEnD,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG,OAAO,CAAC;AAEpD,MAAM,MAAM,WAAW,GACnB,SAAS,GACT,gBAAgB,GAChB,gBAAgB,GAChB,UAAU,GACV,KAAK,GACL,mBAAmB,GACnB,QAAQ,GACR,MAAM,GACN,UAAU,GACV,YAAY,GACZ,OAAO,GACP,QAAQ,GACR,SAAS,GACT,SAAS,GACT,MAAM,GACN,YAAY,GACZ,YAAY,GACZ,QAAQ,GACR,mBAAmB,GACnB,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,cAAc,GACd,SAAS,GACT,gBAAgB,GAChB,aAAa,GACb,UAAU,GACV,aAAa,GACb,SAAS,GACT,MAAM,GACN,QAAQ,GACR,UAAU,GACV,OAAO,GACP,UAAU,GACV,UAA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AAK,IAAI,CAAC;IACzC;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IAC7C;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IAC/C;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IAC/C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { MapViewProps, MapViewRef } from './MapView.types';
|
|
2
|
-
export declare const MapView: import("react").
|
|
2
|
+
export declare const MapView: import("react").NamedExoticComponent<MapViewProps & import("react").RefAttributes<MapViewRef>>;
|
|
3
3
|
//# sourceMappingURL=MapView.web.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MapView.web.d.ts","sourceRoot":"","sources":["../../../src/MapView.web.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MapView.web.d.ts","sourceRoot":"","sources":["../../../src/MapView.web.tsx"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EACV,YAAY,EACZ,UAAU,EAKX,MAAM,iBAAiB,CAAC;AAoEzB,eAAO,MAAM,OAAO,gGAqZnB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { CircleProps } from './Circle.types';
|
|
3
|
+
export type { CircleProps } from './Circle.types';
|
|
4
|
+
export declare class Circle extends React.PureComponent<CircleProps> {
|
|
5
|
+
private _cachedZIndex;
|
|
6
|
+
private _cachedStyle;
|
|
7
|
+
private getStyle;
|
|
8
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=Circle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Circle.d.ts","sourceRoot":"","sources":["../../../../src/components/Circle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,qBAAa,MAAO,SAAQ,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC;IAC1D,OAAO,CAAC,aAAa,CAAqB;IAC1C,OAAO,CAAC,YAAY,CAAM;IAE1B,OAAO,CAAC,QAAQ;IAShB,MAAM;CAwBP"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { ColorValue } from 'react-native';
|
|
2
|
+
import type { Coordinate } from '../types';
|
|
3
|
+
export interface CircleProps {
|
|
4
|
+
/**
|
|
5
|
+
* Center coordinate of the circle
|
|
6
|
+
*/
|
|
7
|
+
center: Coordinate;
|
|
8
|
+
/**
|
|
9
|
+
* Radius in meters
|
|
10
|
+
*/
|
|
11
|
+
radius: number;
|
|
12
|
+
/**
|
|
13
|
+
* Stroke (outline) color
|
|
14
|
+
*/
|
|
15
|
+
strokeColor?: ColorValue;
|
|
16
|
+
/**
|
|
17
|
+
* Stroke width in points
|
|
18
|
+
*/
|
|
19
|
+
strokeWidth?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Fill color of the circle
|
|
22
|
+
*/
|
|
23
|
+
fillColor?: ColorValue;
|
|
24
|
+
/**
|
|
25
|
+
* Z-index for layering
|
|
26
|
+
*/
|
|
27
|
+
zIndex?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Called when the circle is tapped
|
|
30
|
+
*/
|
|
31
|
+
onPress?: () => void;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=Circle.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Circle.types.d.ts","sourceRoot":"","sources":["../../../../src/components/Circle.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,MAAM,EAAE,UAAU,CAAC;IACnB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Circle.web.d.ts","sourceRoot":"","sources":["../../../../src/components/Circle.web.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,eAAO,MAAM,MAAM,kHASd,WAAW,UAiFf,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { GeoJsonProps } from './GeoJson.types';
|
|
2
3
|
export type { GeoJsonProps } from './GeoJson.types';
|
|
3
|
-
export declare const GeoJson: (props: GeoJsonProps) => import("react/jsx-runtime").JSX.Element
|
|
4
|
+
export declare const GeoJson: React.MemoExoticComponent<(props: GeoJsonProps) => import("react/jsx-runtime").JSX.Element>;
|
|
4
5
|
//# sourceMappingURL=GeoJson.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeoJson.d.ts","sourceRoot":"","sources":["../../../../src/components/GeoJson.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GeoJson.d.ts","sourceRoot":"","sources":["../../../../src/components/GeoJson.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAShE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAQpD,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAwLpD,eAAO,MAAM,OAAO,oCAAgB,YAAY,6CAmB9C,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { GroundOverlayProps } from './GroundOverlay.types';
|
|
3
|
+
export type { GroundOverlayProps, GroundOverlayBounds, } from './GroundOverlay.types';
|
|
4
|
+
export declare class GroundOverlay extends React.PureComponent<GroundOverlayProps> {
|
|
5
|
+
private _cachedZIndex;
|
|
6
|
+
private _cachedStyle;
|
|
7
|
+
private getStyle;
|
|
8
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=GroundOverlay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroundOverlay.d.ts","sourceRoot":"","sources":["../../../../src/components/GroundOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,YAAY,EACV,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,uBAAuB,CAAC;AAE/B,qBAAa,aAAc,SAAQ,KAAK,CAAC,aAAa,CAAC,kBAAkB,CAAC;IACxE,OAAO,CAAC,aAAa,CAAqB;IAC1C,OAAO,CAAC,YAAY,CAAM;IAE1B,OAAO,CAAC,QAAQ;IAShB,MAAM;CAgBP"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { ImageSourcePropType } from 'react-native';
|
|
2
|
+
import type { Coordinate } from '../types';
|
|
3
|
+
export interface GroundOverlayBounds {
|
|
4
|
+
northeast: Coordinate;
|
|
5
|
+
southwest: Coordinate;
|
|
6
|
+
}
|
|
7
|
+
export interface GroundOverlayProps {
|
|
8
|
+
/**
|
|
9
|
+
* Image to overlay on the map
|
|
10
|
+
*/
|
|
11
|
+
image: ImageSourcePropType;
|
|
12
|
+
/**
|
|
13
|
+
* Geographic bounds for the overlay
|
|
14
|
+
*/
|
|
15
|
+
bounds: GroundOverlayBounds;
|
|
16
|
+
/**
|
|
17
|
+
* Opacity of the overlay (0-1)
|
|
18
|
+
*/
|
|
19
|
+
opacity?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Bearing (rotation) in degrees clockwise from north.
|
|
22
|
+
* Only supported on Google Maps.
|
|
23
|
+
* @platform google
|
|
24
|
+
*/
|
|
25
|
+
bearing?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Z-index for layering
|
|
28
|
+
*/
|
|
29
|
+
zIndex?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Called when the overlay is tapped
|
|
32
|
+
*/
|
|
33
|
+
onPress?: () => void;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=GroundOverlay.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroundOverlay.types.d.ts","sourceRoot":"","sources":["../../../../src/components/GroundOverlay.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,UAAU,CAAC;IACtB,SAAS,EAAE,UAAU,CAAC;CACvB;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,KAAK,EAAE,mBAAmB,CAAC;IAC3B;;OAEG;IACH,MAAM,EAAE,mBAAmB,CAAC;IAC5B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroundOverlay.web.d.ts","sourceRoot":"","sources":["../../../../src/components/GroundOverlay.web.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,eAAO,MAAM,aAAa,oFAC8B,kBAAkB,UA2EzE,CAAC"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { MarkerProps } from './Marker.types';
|
|
3
|
-
export type { CalloutOptions, MarkerProps, MarkerPressEvent, MarkerDragEvent, } from './Marker.types';
|
|
4
|
-
export declare class Marker extends React.PureComponent<MarkerProps> {
|
|
2
|
+
import type { MarkerProps, MarkerRef } from './Marker.types';
|
|
3
|
+
export type { CalloutOptions, MarkerRef, MarkerProps, MarkerPressEvent, MarkerDragEvent, } from './Marker.types';
|
|
4
|
+
export declare class Marker extends React.PureComponent<MarkerProps> implements MarkerRef {
|
|
5
|
+
private nativeRef;
|
|
6
|
+
showCallout(): void;
|
|
7
|
+
hideCallout(): void;
|
|
5
8
|
private getStyle;
|
|
6
9
|
private _cachedZIndex;
|
|
7
10
|
private _cachedStyle;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Marker.d.ts","sourceRoot":"","sources":["../../../../src/components/Marker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Marker.d.ts","sourceRoot":"","sources":["../../../../src/components/Marker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyB,MAAM,OAAO,CAAC;AAM9C,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG7D,YAAY,EACV,cAAc,EACd,SAAS,EACT,WAAW,EACX,gBAAgB,EAChB,eAAe,GAChB,MAAM,gBAAgB,CAAC;AAIxB,qBAAa,MACX,SAAQ,KAAK,CAAC,aAAa,CAAC,WAAW,CACvC,YAAW,SAAS;IAEpB,OAAO,CAAC,SAAS,CAA0B;IAE3C,WAAW;IAMX,WAAW;IAMX,OAAO,CAAC,QAAQ;IAShB,OAAO,CAAC,aAAa,CAAqB;IAC1C,OAAO,CAAC,YAAY,CAAM;IAE1B,MAAM;CA8DP"}
|
|
@@ -12,13 +12,17 @@ export interface CalloutOptions {
|
|
|
12
12
|
*/
|
|
13
13
|
bubbled?: boolean;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
* `
|
|
15
|
+
* Pixel offset for non-bubbled callouts from their default centered position above the marker.
|
|
16
|
+
* Positive `x` moves right, positive `y` moves down.
|
|
17
|
+
* Only applies when `bubbled` is `false`.
|
|
17
18
|
*
|
|
18
|
-
* @
|
|
19
|
-
* @default {x: 0.5, y: 1}
|
|
19
|
+
* @default {x: 0, y: 0}
|
|
20
20
|
*/
|
|
21
|
-
|
|
21
|
+
offset?: Point;
|
|
22
|
+
}
|
|
23
|
+
export interface MarkerRef {
|
|
24
|
+
showCallout(): void;
|
|
25
|
+
hideCallout(): void;
|
|
22
26
|
}
|
|
23
27
|
export interface MarkerProps {
|
|
24
28
|
/**
|
|
@@ -38,7 +42,10 @@ export interface MarkerProps {
|
|
|
38
42
|
*/
|
|
39
43
|
description?: string;
|
|
40
44
|
/**
|
|
41
|
-
* Anchor point for custom marker views
|
|
45
|
+
* Anchor point for custom marker views.
|
|
46
|
+
* `{x: 0.5, y: 1}` places the bottom-center of the marker at the coordinate.
|
|
47
|
+
*
|
|
48
|
+
* @default {x: 0.5, y: 1}
|
|
42
49
|
*/
|
|
43
50
|
anchor?: Point;
|
|
44
51
|
/**
|
|
@@ -62,6 +69,11 @@ export interface MarkerProps {
|
|
|
62
69
|
* @default true
|
|
63
70
|
*/
|
|
64
71
|
rasterize?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Whether the map centers on the marker when pressed.
|
|
74
|
+
* @default true
|
|
75
|
+
*/
|
|
76
|
+
centerOnPress?: boolean;
|
|
65
77
|
/**
|
|
66
78
|
* Whether the marker can be dragged by the user.
|
|
67
79
|
* @default false
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Marker.types.d.ts","sourceRoot":"","sources":["../../../../src/components/Marker.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAErE,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AACvE,MAAM,MAAM,eAAe,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAEtE,MAAM,WAAW,cAAc;IAC7B;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC;CAChB;AAED,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
|
|
1
|
+
{"version":3,"file":"Marker.types.d.ts","sourceRoot":"","sources":["../../../../src/components/Marker.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAErE,MAAM,MA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IACH,OAAO,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,GAAG,YAAY,CAAC;IAChD;;OAEG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { MarkerProps, MarkerRef } from './Marker.types';
|
|
3
|
+
export declare const Marker: React.NamedExoticComponent<MarkerProps & React.RefAttributes<MarkerRef>>;
|
|
3
4
|
//# sourceMappingURL=Marker.web.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Marker.web.d.ts","sourceRoot":"","sources":["../../../../src/components/Marker.web.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Marker.web.d.ts","sourceRoot":"","sources":["../../../../src/components/Marker.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KASN,MAAM,OAAO,CAAC;AAOf,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AA+C7D,eAAO,MAAM,MAAM,0EAgMlB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { PolygonProps } from './Polygon.types';
|
|
2
|
-
export declare const Polygon: ({ coordinates, holes, strokeColor, strokeWidth, fillColor, zIndex, onPress, }: PolygonProps) => null
|
|
2
|
+
export declare const Polygon: import("react").MemoExoticComponent<({ coordinates, holes, strokeColor, strokeWidth, fillColor, zIndex, onPress, }: PolygonProps) => null>;
|
|
3
3
|
//# sourceMappingURL=Polygon.web.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Polygon.web.d.ts","sourceRoot":"","sources":["../../../../src/components/Polygon.web.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"Polygon.web.d.ts","sourceRoot":"","sources":["../../../../src/components/Polygon.web.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,eAAO,MAAM,OAAO,sHASf,YAAY,UA8FhB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { PolylineProps } from './Polyline.types';
|
|
2
|
-
export declare const Polyline: ({ coordinates, strokeColors, strokeWidth, animated, animatedOptions, zIndex, }: PolylineProps) => null
|
|
2
|
+
export declare const Polyline: import("react").MemoExoticComponent<({ coordinates, strokeColors, strokeWidth, animated, animatedOptions, zIndex, }: PolylineProps) => null>;
|
|
3
3
|
//# sourceMappingURL=Polyline.web.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Polyline.web.d.ts","sourceRoot":"","sources":["../../../../src/components/Polyline.web.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAkB,MAAM,kBAAkB,CAAC;AAmDtE,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"Polyline.web.d.ts","sourceRoot":"","sources":["../../../../src/components/Polyline.web.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAkB,MAAM,kBAAkB,CAAC;AAmDtE,eAAO,MAAM,QAAQ,uHAQhB,aAAa,UAkQjB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { TileOverlayProps } from './TileOverlay.types';
|
|
3
|
+
export type { TileOverlayProps } from './TileOverlay.types';
|
|
4
|
+
export declare class TileOverlay extends React.PureComponent<TileOverlayProps> {
|
|
5
|
+
private _cachedZIndex;
|
|
6
|
+
private _cachedStyle;
|
|
7
|
+
private getStyle;
|
|
8
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=TileOverlay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TileOverlay.d.ts","sourceRoot":"","sources":["../../../../src/components/TileOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,YAAY,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,qBAAa,WAAY,SAAQ,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC;IACpE,OAAO,CAAC,aAAa,CAAqB;IAC1C,OAAO,CAAC,YAAY,CAAM;IAE1B,OAAO,CAAC,QAAQ;IAShB,MAAM;CAgBP"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { Coordinate } from '../types';
|
|
2
|
+
export interface TileOverlayBounds {
|
|
3
|
+
northeast: Coordinate;
|
|
4
|
+
southwest: Coordinate;
|
|
5
|
+
}
|
|
6
|
+
export interface TileOverlayProps {
|
|
7
|
+
/**
|
|
8
|
+
* URL template for tile images.
|
|
9
|
+
* Use `{x}`, `{y}`, `{z}` placeholders for tile coordinates and zoom level.
|
|
10
|
+
* @example "https://tile.openstreetmap.org/{z}/{x}/{y}.png"
|
|
11
|
+
*/
|
|
12
|
+
urlTemplate: string;
|
|
13
|
+
/**
|
|
14
|
+
* Size of each tile in pixels
|
|
15
|
+
* @default 256
|
|
16
|
+
*/
|
|
17
|
+
tileSize?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Opacity of the tile overlay (0-1)
|
|
20
|
+
*/
|
|
21
|
+
opacity?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Restrict tiles to a geographic region.
|
|
24
|
+
* Tiles outside these bounds will not be loaded.
|
|
25
|
+
*/
|
|
26
|
+
bounds?: TileOverlayBounds;
|
|
27
|
+
/**
|
|
28
|
+
* Z-index for layering
|
|
29
|
+
*/
|
|
30
|
+
zIndex?: number;
|
|
31
|
+
/**
|
|
32
|
+
* Called when the tile overlay is tapped
|
|
33
|
+
*/
|
|
34
|
+
onPress?: () => void;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=TileOverlay.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TileOverlay.types.d.ts","sourceRoot":"","sources":["../../../../src/components/TileOverlay.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,UAAU,CAAC;IACtB,SAAS,EAAE,UAAU,CAAC;CACvB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TileOverlay.web.d.ts","sourceRoot":"","sources":["../../../../src/components/TileOverlay.web.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,eAAO,MAAM,WAAW,qGAQnB,gBAAgB,UAoFpB,CAAC"}
|