@lugg/maps 1.0.0-beta.3 → 1.0.0-beta.5
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 +4 -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 +23 -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/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/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 +595 -17
- package/ios/core/GoogleMapProvider.mm +390 -28
- 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/MapView.js +11 -0
- package/lib/module/MapView.js.map +1 -1
- package/lib/module/MapView.web.js +3 -0
- 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/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 +20 -7
- package/lib/module/components/Marker.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 +9 -1
- 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/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.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/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/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 +6 -1
- 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/MapView.tsx +11 -0
- package/src/MapView.types.ts +85 -1
- package/src/MapView.web.tsx +11 -0
- package/src/components/Circle.tsx +52 -0
- package/src/components/Circle.types.ts +33 -0
- package/src/components/Circle.web.tsx +93 -0
- package/src/components/GroundOverlay.tsx +47 -0
- package/src/components/GroundOverlay.types.ts +36 -0
- package/src/components/GroundOverlay.web.tsx +85 -0
- package/src/components/Marker.tsx +32 -6
- package/src/components/Marker.types.ts +19 -6
- package/src/components/Marker.web.tsx +191 -148
- package/src/components/TileOverlay.tsx +44 -0
- package/src/components/TileOverlay.types.ts +37 -0
- package/src/components/TileOverlay.web.tsx +95 -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 +9 -1
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","isValidElement","useCallback","useEffect","useRef","useState","AdvancedMarker","InfoWindow","useAdvancedMarkerRef","useMapContext","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","CALLOUT_ARROW_HEIGHT","UNBUBBLED_CLASS","UNBUBBLED_STYLE_ID","injectUnbubbledStyle","document","getElementById","style","createElement","id","textContent","head","appendChild","toWebAnchor","value","createEvent","e","coordinate","nativeEvent","latitude","latLng","lat","longitude","lng","point","x","domEvent","clientX","y","clientY","Marker","title","description","anchor","zIndex","rotate","scale","draggable","onPress","onDragStart","onDragChange","onDragEnd","callout","calloutOptions","children","moveCamera","onCalloutClose","closeCallouts","dragPositionRef","markerRef","markerElement","infoWindowOpen","setInfoWindowOpen","calloutBubbled","bubbled","closeCallout","hasCallout","calloutContent","fontSize","fontWeight","transforms","push","handleClick","pos","current","coord","prev","handleDragStart","handleDrag","handleDragEnd","latLngPosition","position","
|
|
1
|
+
{"version":3,"names":["React","forwardRef","isValidElement","useCallback","useEffect","useImperativeHandle","useRef","useState","AdvancedMarker","InfoWindow","useAdvancedMarkerRef","useMapContext","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","CALLOUT_ARROW_HEIGHT","UNBUBBLED_CLASS","UNBUBBLED_STYLE_ID","injectUnbubbledStyle","document","getElementById","style","createElement","id","textContent","head","appendChild","toWebAnchor","value","createEvent","e","coordinate","nativeEvent","latitude","latLng","lat","longitude","lng","point","x","domEvent","clientX","y","clientY","Marker","title","description","anchor","zIndex","rotate","scale","centerOnPress","draggable","onPress","onDragStart","onDragChange","onDragEnd","callout","calloutOptions","children","ref","moveCamera","onCalloutClose","closeCallouts","dragPositionRef","markerRef","markerElement","infoWindowOpen","setInfoWindowOpen","calloutBubbled","bubbled","calloutOffset","offset","closeCallout","hasCallout","showCallout","hideCallout","calloutContent","fontSize","fontWeight","transforms","push","handleClick","pos","current","coord","prev","handleDragStart","handleDrag","handleDragEnd","latLngPosition","position","anchorLeft","undefined","anchorTop","clickable","onClick","onDrag","length","transform","join","pixelOffset","headerDisabled","onClose","className"],"sourceRoot":"../../../src","sources":["components/Marker.web.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IACVC,UAAU,EACVC,cAAc,EACdC,WAAW,EACXC,SAAS,EACTC,mBAAmB,EACnBC,MAAM,EACNC,QAAQ,QACH,OAAO;AACd,SACEC,cAAc,EACdC,UAAU,EACVC,oBAAoB,QACf,2BAA2B;AAClC,SAASC,aAAa,QAAQ,uBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA,EAAAC,IAAA,IAAAC,KAAA;AAGnD,MAAMC,oBAAoB,GAAG,EAAE;AAC/B,MAAMC,eAAe,GAAG,uBAAuB;AAC/C,MAAMC,kBAAkB,GAAG,6BAA6B;AAExD,SAASC,oBAAoBA,CAAA,EAAG;EAC9B,IAAIC,QAAQ,CAACC,cAAc,CAACH,kBAAkB,CAAC,EAAE;EACjD,MAAMI,KAAK,GAAGF,QAAQ,CAACG,aAAa,CAAC,OAAO,CAAC;EAC7CD,KAAK,CAACE,EAAE,GAAGN,kBAAkB;EAC7BI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 -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { StyleSheet } from 'react-native';
|
|
5
|
+
import LuggTileOverlayViewNativeComponent from '../fabric/LuggTileOverlayViewNativeComponent';
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
export class TileOverlay extends React.PureComponent {
|
|
8
|
+
getStyle(zIndex) {
|
|
9
|
+
if (zIndex == null) return styles.overlay;
|
|
10
|
+
if (zIndex !== this._cachedZIndex) {
|
|
11
|
+
this._cachedZIndex = zIndex;
|
|
12
|
+
this._cachedStyle = [{
|
|
13
|
+
zIndex
|
|
14
|
+
}, styles.overlay];
|
|
15
|
+
}
|
|
16
|
+
return this._cachedStyle;
|
|
17
|
+
}
|
|
18
|
+
render() {
|
|
19
|
+
const {
|
|
20
|
+
urlTemplate,
|
|
21
|
+
tileSize,
|
|
22
|
+
opacity,
|
|
23
|
+
bounds,
|
|
24
|
+
zIndex,
|
|
25
|
+
onPress
|
|
26
|
+
} = this.props;
|
|
27
|
+
return /*#__PURE__*/_jsx(LuggTileOverlayViewNativeComponent, {
|
|
28
|
+
style: this.getStyle(zIndex),
|
|
29
|
+
urlTemplate: urlTemplate,
|
|
30
|
+
tileSize: tileSize,
|
|
31
|
+
opacity: opacity,
|
|
32
|
+
bounds: bounds,
|
|
33
|
+
tappable: !!onPress,
|
|
34
|
+
onTileOverlayPress: onPress
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
const styles = StyleSheet.create({
|
|
39
|
+
overlay: {
|
|
40
|
+
position: 'absolute',
|
|
41
|
+
pointerEvents: 'none'
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
//# sourceMappingURL=TileOverlay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","LuggTileOverlayViewNativeComponent","jsx","_jsx","TileOverlay","PureComponent","getStyle","zIndex","styles","overlay","_cachedZIndex","_cachedStyle","render","urlTemplate","tileSize","opacity","bounds","onPress","props","style","tappable","onTileOverlayPress","create","position","pointerEvents"],"sourceRoot":"../../../src","sources":["components/TileOverlay.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,QAAQ,cAAc;AACzC,OAAOC,kCAAkC,MAAM,8CAA8C;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAK9F,OAAO,MAAMC,WAAW,SAASL,KAAK,CAACM,aAAa,CAAmB;EAI7DC,QAAQA,CAACC,MAA0B,EAAE;IAC3C,IAAIA,MAAM,IAAI,IAAI,EAAE,OAAOC,MAAM,CAACC,OAAO;IACzC,IAAIF,MAAM,KAAK,IAAI,CAACG,aAAa,EAAE;MACjC,IAAI,CAACA,aAAa,GAAGH,MAAM;MAC3B,IAAI,CAACI,YAAY,GAAG,CAAC;QAAEJ;MAAO,CAAC,EAAEC,MAAM,CAACC,OAAO,CAAC;IAClD;IACA,OAAO,IAAI,CAACE,YAAY;EAC1B;EAEAC,MAAMA,CAAA,EAAG;IACP,MAAM;MAAEC,WAAW;MAAEC,QAAQ;MAAEC,OAAO;MAAEC,MAAM;MAAET,MAAM;MAAEU;IAAQ,CAAC,GAC/D,IAAI,CAACC,KAAK;IAEZ,oBACEf,IAAA,CAACF,kCAAkC;MACjCkB,KAAK,EAAE,IAAI,CAACb,QAAQ,CAACC,MAAM,CAAE;MAC7BM,WAAW,EAAEA,WAAY;MACzBC,QAAQ,EAAEA,QAAS;MACnBC,OAAO,EAAEA,OAAQ;MACjBC,MAAM,EAAEA,MAAO;MACfI,QAAQ,EAAE,CAAC,CAACH,OAAQ;MACpBI,kBAAkB,EAAEJ;IAAQ,CAC7B,CAAC;EAEN;AACF;AAEA,MAAMT,MAAM,GAAGR,UAAU,CAACsB,MAAM,CAAC;EAC/Bb,OAAO,EAAE;IACPc,QAAQ,EAAE,UAAU;IACpBC,aAAa,EAAE;EACjB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["components/TileOverlay.types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useCallback, useEffect, useRef } from 'react';
|
|
4
|
+
import { useMapContext } from "../MapProvider.web.js";
|
|
5
|
+
export const TileOverlay = ({
|
|
6
|
+
urlTemplate,
|
|
7
|
+
tileSize = 256,
|
|
8
|
+
opacity = 1,
|
|
9
|
+
bounds,
|
|
10
|
+
zIndex = 0,
|
|
11
|
+
onPress
|
|
12
|
+
}) => {
|
|
13
|
+
const {
|
|
14
|
+
map
|
|
15
|
+
} = useMapContext();
|
|
16
|
+
const overlayRef = useRef(null);
|
|
17
|
+
const indexRef = useRef(-1);
|
|
18
|
+
const handleClick = useCallback(() => {
|
|
19
|
+
onPress?.();
|
|
20
|
+
}, [onPress]);
|
|
21
|
+
|
|
22
|
+
// Cleanup on unmount
|
|
23
|
+
useEffect(() => {
|
|
24
|
+
return () => {
|
|
25
|
+
if (overlayRef.current && indexRef.current >= 0) {
|
|
26
|
+
map?.overlayMapTypes.removeAt(indexRef.current);
|
|
27
|
+
}
|
|
28
|
+
overlayRef.current = null;
|
|
29
|
+
indexRef.current = -1;
|
|
30
|
+
};
|
|
31
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
32
|
+
}, []);
|
|
33
|
+
|
|
34
|
+
// Sync overlay with props
|
|
35
|
+
useEffect(() => {
|
|
36
|
+
if (!map) return;
|
|
37
|
+
|
|
38
|
+
// Remove old overlay
|
|
39
|
+
if (overlayRef.current && indexRef.current >= 0) {
|
|
40
|
+
map.overlayMapTypes.removeAt(indexRef.current);
|
|
41
|
+
overlayRef.current = null;
|
|
42
|
+
indexRef.current = -1;
|
|
43
|
+
}
|
|
44
|
+
if (!urlTemplate) return;
|
|
45
|
+
const imageMapType = new google.maps.ImageMapType({
|
|
46
|
+
getTileUrl: (coord, zoom) => {
|
|
47
|
+
if (bounds) {
|
|
48
|
+
const n = Math.pow(2, zoom);
|
|
49
|
+
const tileSWLat = Math.atan(Math.sinh(Math.PI * (1 - 2 * (coord.y + 1) / n))) * 180 / Math.PI;
|
|
50
|
+
const tileNELat = Math.atan(Math.sinh(Math.PI * (1 - 2 * coord.y / n))) * 180 / Math.PI;
|
|
51
|
+
const tileSWLng = coord.x / n * 360 - 180;
|
|
52
|
+
const tileNELng = (coord.x + 1) / n * 360 - 180;
|
|
53
|
+
if (tileNELat < bounds.southwest.latitude || tileSWLat > bounds.northeast.latitude || tileNELng < bounds.southwest.longitude || tileSWLng > bounds.northeast.longitude) {
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return urlTemplate.replace('{x}', String(coord.x)).replace('{y}', String(coord.y)).replace('{z}', String(zoom));
|
|
58
|
+
},
|
|
59
|
+
tileSize: new google.maps.Size(tileSize, tileSize),
|
|
60
|
+
opacity
|
|
61
|
+
});
|
|
62
|
+
const length = map.overlayMapTypes.getLength();
|
|
63
|
+
map.overlayMapTypes.insertAt(length, imageMapType);
|
|
64
|
+
overlayRef.current = imageMapType;
|
|
65
|
+
indexRef.current = length;
|
|
66
|
+
}, [map, urlTemplate, tileSize, opacity, bounds, zIndex, onPress, handleClick]);
|
|
67
|
+
return null;
|
|
68
|
+
};
|
|
69
|
+
//# sourceMappingURL=TileOverlay.web.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useCallback","useEffect","useRef","useMapContext","TileOverlay","urlTemplate","tileSize","opacity","bounds","zIndex","onPress","map","overlayRef","indexRef","handleClick","current","overlayMapTypes","removeAt","imageMapType","google","maps","ImageMapType","getTileUrl","coord","zoom","n","Math","pow","tileSWLat","atan","sinh","PI","y","tileNELat","tileSWLng","x","tileNELng","southwest","latitude","northeast","longitude","replace","String","Size","length","getLength","insertAt"],"sourceRoot":"../../../src","sources":["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CAACnB,KAAK,CAACS,CAAC,CAAC,CAAC,CAC/BS,OAAO,CAAC,KAAK,EAAEC,MAAM,CAAClB,IAAI,CAAC,CAAC;MACjC,CAAC;MACDlB,QAAQ,EAAE,IAAIa,MAAM,CAACC,IAAI,CAACuB,IAAI,CAACrC,QAAQ,EAAEA,QAAQ,CAAC;MAClDC;IACF,CAAC,CAAC;IAEF,MAAMqC,MAAM,GAAGjC,GAAG,CAACK,eAAe,CAAC6B,SAAS,CAAC,CAAC;IAC9ClC,GAAG,CAACK,eAAe,CAAC8B,QAAQ,CAACF,MAAM,EAAE1B,YAAY,CAAC;IAClDN,UAAU,CAACG,OAAO,GAAGG,YAAY;IACjCL,QAAQ,CAACE,OAAO,GAAG6B,MAAM;EAC3B,CAAC,EAAE,CACDjC,GAAG,EACHN,WAAW,EACXC,QAAQ,EACRC,OAAO,EACPC,MAAM,EACNC,MAAM,EACNC,OAAO,EACPI,WAAW,CACZ,CAAC;EAEF,OAAO,IAAI;AACb,CAAC","ignoreList":[]}
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
export { Marker } from './Marker';
|
|
4
4
|
export { Polygon } from './Polygon';
|
|
5
|
+
export { Circle } from './Circle';
|
|
5
6
|
export { Polyline } from './Polyline';
|
|
6
7
|
export { GeoJson } from "./GeoJson.js";
|
|
8
|
+
export { GroundOverlay } from './GroundOverlay';
|
|
9
|
+
export { TileOverlay } from './TileOverlay';
|
|
7
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Marker","Polygon","Polyline","GeoJson"],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,UAAU;
|
|
1
|
+
{"version":3,"names":["Marker","Polygon","Circle","Polyline","GeoJson","GroundOverlay","TileOverlay"],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,UAAU;AAQjC,SAASC,OAAO,QAAQ,WAAW;AAEnC,SAASC,MAAM,QAAQ,UAAU;AAEjC,SAASC,QAAQ,QAAQ,YAAY;AAMrC,SAASC,OAAO,QAAQ,cAAW;AAEnC,SAASC,aAAa,QAAQ,iBAAiB;AAK/C,SAASC,WAAW,QAAQ,eAAe","ignoreList":[]}
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
export { Marker } from "./Marker.web.js";
|
|
4
4
|
export { Polygon } from "./Polygon.web.js";
|
|
5
|
+
export { Circle } from "./Circle.web.js";
|
|
5
6
|
export { Polyline } from "./Polyline.web.js";
|
|
6
7
|
export { GeoJson } from "./GeoJson.js";
|
|
8
|
+
export { GroundOverlay } from "./GroundOverlay.web.js";
|
|
9
|
+
export { TileOverlay } from "./TileOverlay.web.js";
|
|
7
10
|
//# sourceMappingURL=index.web.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Marker","Polygon","Polyline","GeoJson"],"sourceRoot":"../../../src","sources":["components/index.web.ts"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,iBAAc;AACrC,SAASC,OAAO,QAAQ,kBAAe;AACvC,SAASC,QAAQ,QAAQ,mBAAgB;
|
|
1
|
+
{"version":3,"names":["Marker","Polygon","Circle","Polyline","GeoJson","GroundOverlay","TileOverlay"],"sourceRoot":"../../../src","sources":["components/index.web.ts"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,iBAAc;AACrC,SAASC,OAAO,QAAQ,kBAAe;AACvC,SAASC,MAAM,QAAQ,iBAAc;AACrC,SAASC,QAAQ,QAAQ,mBAAgB;AAKzC,SAASC,OAAO,QAAQ,cAAW;AAEnC,SAASC,aAAa,QAAQ,wBAAqB;AAKnD,SAASC,WAAW,QAAQ,sBAAmB","ignoreList":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { codegenNativeComponent } from 'react-native';
|
|
2
|
+
import type { ViewProps, HostComponent, ColorValue } 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 NativeProps extends ViewProps {
|
|
14
|
+
center: Coordinate;
|
|
15
|
+
radius?: Double;
|
|
16
|
+
strokeColor?: ColorValue;
|
|
17
|
+
strokeWidth?: Double;
|
|
18
|
+
fillColor?: ColorValue;
|
|
19
|
+
tappable?: boolean;
|
|
20
|
+
onCirclePress?: DirectEventHandler<null>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export default codegenNativeComponent<NativeProps>(
|
|
24
|
+
'LuggCircleView'
|
|
25
|
+
) as HostComponent<NativeProps>;
|
|
@@ -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,6 +62,10 @@ 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;
|
|
@@ -74,7 +78,11 @@ export interface NativeProps extends ViewProps {
|
|
|
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 +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,SAAS,CAAC,YAAY,CACpC,YAAW,UAAU;IAErB,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,YAAY,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,SAAS,CAAC,YAAY,CACpC,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' | 'aquarium' | 'atm' | 'bakery' | 'bank' | 'beach' | 'brewery' | 'cafe' | 'campground' | 'car-rental' | 'ev-charger' | 'fire-station' | 'fitness-center' | 'food-market' | 'gas-station' | 'hospital' | 'hotel' | 'laundry' | 'library' | 'marina' | 'movie-theater' | 'museum' | 'national-park' | 'nightlife' | 'park' | 'parking' | 'pharmacy' | 'police' | 'post-office' | 'public-transport' | 'restaurant' | 'restroom' | 'school' | 'stadium' | 'store' | 'theater' | 'university' | '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,G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E,aAAa,KAAK,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MapView.web.d.ts","sourceRoot":"","sources":["../../../src/MapView.web.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EACV,YAAY,EACZ,UAAU,EAKX,MAAM,iBAAiB,CAAC;AAoEzB,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"MapView.web.d.ts","sourceRoot":"","sources":["../../../src/MapView.web.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EACV,YAAY,EACZ,UAAU,EAKX,MAAM,iBAAiB,CAAC;AAoEzB,eAAO,MAAM,OAAO,qGAiYlB,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,GAAI,2EAQpB,WAAW,SAgFb,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,GAAI,8CAM3B,kBAAkB,SA0EpB,CAAC"}
|