@lugg/maps 1.0.0-beta.1 → 1.0.0-beta.10

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.
Files changed (178) hide show
  1. package/README.md +3 -0
  2. package/android/src/main/java/com/luggmaps/LuggCalloutView.kt +7 -2
  3. package/android/src/main/java/com/luggmaps/LuggCalloutViewManager.kt +4 -3
  4. package/android/src/main/java/com/luggmaps/LuggCircleView.kt +85 -0
  5. package/android/src/main/java/com/luggmaps/LuggCircleViewManager.kt +79 -0
  6. package/android/src/main/java/com/luggmaps/LuggGroundOverlayView.kt +81 -0
  7. package/android/src/main/java/com/luggmaps/LuggGroundOverlayViewManager.kt +82 -0
  8. package/android/src/main/java/com/luggmaps/LuggMapView.kt +49 -0
  9. package/android/src/main/java/com/luggmaps/LuggMapViewManager.kt +31 -0
  10. package/android/src/main/java/com/luggmaps/LuggMarkerView.kt +26 -0
  11. package/android/src/main/java/com/luggmaps/LuggMarkerViewManager.kt +13 -0
  12. package/android/src/main/java/com/luggmaps/LuggPackage.kt +4 -1
  13. package/android/src/main/java/com/luggmaps/LuggPolylineView.kt +1 -22
  14. package/android/src/main/java/com/luggmaps/LuggTileOverlayView.kt +92 -0
  15. package/android/src/main/java/com/luggmaps/LuggTileOverlayViewManager.kt +80 -0
  16. package/android/src/main/java/com/luggmaps/core/GoogleMapProvider.kt +451 -17
  17. package/android/src/main/java/com/luggmaps/core/MapProviderDelegate.kt +14 -0
  18. package/android/src/main/java/com/luggmaps/core/PolylineAnimator.kt +12 -7
  19. package/android/src/main/java/com/luggmaps/events/CirclePressEvent.kt +12 -0
  20. package/android/src/main/java/com/luggmaps/events/GroundOverlayPressEvent.kt +12 -0
  21. package/android/src/main/java/com/luggmaps/events/TileOverlayPressEvent.kt +12 -0
  22. package/android/src/main/java/com/luggmaps/extensions/ViewExtensions.kt +11 -0
  23. package/ios/LuggCalloutView.h +1 -1
  24. package/ios/LuggCalloutView.mm +21 -11
  25. package/ios/LuggCircleView.h +31 -0
  26. package/ios/LuggCircleView.mm +133 -0
  27. package/ios/LuggGroundOverlayView.h +30 -0
  28. package/ios/LuggGroundOverlayView.mm +125 -0
  29. package/ios/LuggMapView.mm +84 -2
  30. package/ios/LuggMarkerView.h +3 -0
  31. package/ios/LuggMarkerView.mm +23 -0
  32. package/ios/LuggTileOverlayView.h +31 -0
  33. package/ios/LuggTileOverlayView.mm +130 -0
  34. package/ios/core/AppleMapProvider.mm +697 -37
  35. package/ios/core/GMSPolylineAnimator.m +6 -3
  36. package/ios/core/GoogleMapProvider.mm +400 -22
  37. package/ios/core/MapProviderDelegate.h +20 -1
  38. package/ios/events/CirclePressEvent.h +20 -0
  39. package/ios/events/GroundOverlayPressEvent.h +20 -0
  40. package/ios/events/TileOverlayPressEvent.h +20 -0
  41. package/lib/module/MapProvider.web.js +4 -1
  42. package/lib/module/MapProvider.web.js.map +1 -1
  43. package/lib/module/MapView.js +12 -1
  44. package/lib/module/MapView.js.map +1 -1
  45. package/lib/module/MapView.web.js +21 -18
  46. package/lib/module/MapView.web.js.map +1 -1
  47. package/lib/module/components/Circle.js +46 -0
  48. package/lib/module/components/Circle.js.map +1 -0
  49. package/lib/module/components/Circle.types.js +4 -0
  50. package/lib/module/components/Circle.types.js.map +1 -0
  51. package/lib/module/components/Circle.web.js +79 -0
  52. package/lib/module/components/Circle.web.js.map +1 -0
  53. package/lib/module/components/GeoJson.js +3 -3
  54. package/lib/module/components/GeoJson.js.map +1 -1
  55. package/lib/module/components/GroundOverlay.js +45 -0
  56. package/lib/module/components/GroundOverlay.js.map +1 -0
  57. package/lib/module/components/GroundOverlay.types.js +4 -0
  58. package/lib/module/components/GroundOverlay.types.js.map +1 -0
  59. package/lib/module/components/GroundOverlay.web.js +77 -0
  60. package/lib/module/components/GroundOverlay.web.js.map +1 -0
  61. package/lib/module/components/Marker.js +22 -4
  62. package/lib/module/components/Marker.js.map +1 -1
  63. package/lib/module/components/Marker.web.js +23 -10
  64. package/lib/module/components/Marker.web.js.map +1 -1
  65. package/lib/module/components/Polygon.web.js +3 -3
  66. package/lib/module/components/Polygon.web.js.map +1 -1
  67. package/lib/module/components/Polyline.web.js +6 -12
  68. package/lib/module/components/Polyline.web.js.map +1 -1
  69. package/lib/module/components/TileOverlay.js +44 -0
  70. package/lib/module/components/TileOverlay.js.map +1 -0
  71. package/lib/module/components/TileOverlay.types.js +4 -0
  72. package/lib/module/components/TileOverlay.types.js.map +1 -0
  73. package/lib/module/components/TileOverlay.web.js +69 -0
  74. package/lib/module/components/TileOverlay.web.js.map +1 -0
  75. package/lib/module/components/index.js +3 -0
  76. package/lib/module/components/index.js.map +1 -1
  77. package/lib/module/components/index.web.js +3 -0
  78. package/lib/module/components/index.web.js.map +1 -1
  79. package/lib/module/fabric/LuggCalloutViewNativeComponent.ts +1 -1
  80. package/lib/module/fabric/LuggCircleViewNativeComponent.ts +25 -0
  81. package/lib/module/fabric/LuggGroundOverlayViewNativeComponent.ts +29 -0
  82. package/lib/module/fabric/LuggMapViewNativeComponent.ts +13 -5
  83. package/lib/module/fabric/LuggMarkerViewNativeComponent.ts +14 -2
  84. package/lib/module/fabric/LuggTileOverlayViewNativeComponent.ts +30 -0
  85. package/lib/module/index.js +3 -0
  86. package/lib/module/index.js.map +1 -1
  87. package/lib/module/index.web.js +3 -0
  88. package/lib/module/index.web.js.map +1 -1
  89. package/lib/typescript/src/MapProvider.web.d.ts +3 -2
  90. package/lib/typescript/src/MapProvider.web.d.ts.map +1 -1
  91. package/lib/typescript/src/MapView.d.ts +1 -1
  92. package/lib/typescript/src/MapView.d.ts.map +1 -1
  93. package/lib/typescript/src/MapView.types.d.ts +36 -1
  94. package/lib/typescript/src/MapView.types.d.ts.map +1 -1
  95. package/lib/typescript/src/MapView.web.d.ts +1 -1
  96. package/lib/typescript/src/MapView.web.d.ts.map +1 -1
  97. package/lib/typescript/src/components/Circle.d.ts +10 -0
  98. package/lib/typescript/src/components/Circle.d.ts.map +1 -0
  99. package/lib/typescript/src/components/Circle.types.d.ts +33 -0
  100. package/lib/typescript/src/components/Circle.types.d.ts.map +1 -0
  101. package/lib/typescript/src/components/Circle.web.d.ts +3 -0
  102. package/lib/typescript/src/components/Circle.web.d.ts.map +1 -0
  103. package/lib/typescript/src/components/GeoJson.d.ts +2 -1
  104. package/lib/typescript/src/components/GeoJson.d.ts.map +1 -1
  105. package/lib/typescript/src/components/GroundOverlay.d.ts +10 -0
  106. package/lib/typescript/src/components/GroundOverlay.d.ts.map +1 -0
  107. package/lib/typescript/src/components/GroundOverlay.types.d.ts +35 -0
  108. package/lib/typescript/src/components/GroundOverlay.types.d.ts.map +1 -0
  109. package/lib/typescript/src/components/GroundOverlay.web.d.ts +3 -0
  110. package/lib/typescript/src/components/GroundOverlay.web.d.ts.map +1 -0
  111. package/lib/typescript/src/components/Marker.d.ts +6 -3
  112. package/lib/typescript/src/components/Marker.d.ts.map +1 -1
  113. package/lib/typescript/src/components/Marker.types.d.ts +18 -6
  114. package/lib/typescript/src/components/Marker.types.d.ts.map +1 -1
  115. package/lib/typescript/src/components/Marker.web.d.ts +3 -2
  116. package/lib/typescript/src/components/Marker.web.d.ts.map +1 -1
  117. package/lib/typescript/src/components/Polygon.web.d.ts +1 -1
  118. package/lib/typescript/src/components/Polygon.web.d.ts.map +1 -1
  119. package/lib/typescript/src/components/Polyline.web.d.ts +1 -1
  120. package/lib/typescript/src/components/Polyline.web.d.ts.map +1 -1
  121. package/lib/typescript/src/components/TileOverlay.d.ts +10 -0
  122. package/lib/typescript/src/components/TileOverlay.d.ts.map +1 -0
  123. package/lib/typescript/src/components/TileOverlay.types.d.ts +36 -0
  124. package/lib/typescript/src/components/TileOverlay.types.d.ts.map +1 -0
  125. package/lib/typescript/src/components/TileOverlay.web.d.ts +3 -0
  126. package/lib/typescript/src/components/TileOverlay.web.d.ts.map +1 -0
  127. package/lib/typescript/src/components/index.d.ts +7 -1
  128. package/lib/typescript/src/components/index.d.ts.map +1 -1
  129. package/lib/typescript/src/components/index.web.d.ts +6 -0
  130. package/lib/typescript/src/components/index.web.d.ts.map +1 -1
  131. package/lib/typescript/src/fabric/LuggCalloutViewNativeComponent.d.ts +1 -1
  132. package/lib/typescript/src/fabric/LuggCircleViewNativeComponent.d.ts +18 -0
  133. package/lib/typescript/src/fabric/LuggCircleViewNativeComponent.d.ts.map +1 -0
  134. package/lib/typescript/src/fabric/LuggGroundOverlayViewNativeComponent.d.ts +21 -0
  135. package/lib/typescript/src/fabric/LuggGroundOverlayViewNativeComponent.d.ts.map +1 -0
  136. package/lib/typescript/src/fabric/LuggMapViewNativeComponent.d.ts +10 -5
  137. package/lib/typescript/src/fabric/LuggMapViewNativeComponent.d.ts.map +1 -1
  138. package/lib/typescript/src/fabric/LuggMarkerViewNativeComponent.d.ts +8 -1
  139. package/lib/typescript/src/fabric/LuggMarkerViewNativeComponent.d.ts.map +1 -1
  140. package/lib/typescript/src/fabric/LuggTileOverlayViewNativeComponent.d.ts +21 -0
  141. package/lib/typescript/src/fabric/LuggTileOverlayViewNativeComponent.d.ts.map +1 -0
  142. package/lib/typescript/src/index.d.ts +9 -3
  143. package/lib/typescript/src/index.d.ts.map +1 -1
  144. package/lib/typescript/src/index.web.d.ts +7 -1
  145. package/lib/typescript/src/index.web.d.ts.map +1 -1
  146. package/lib/typescript/src/types.d.ts +0 -4
  147. package/lib/typescript/src/types.d.ts.map +1 -1
  148. package/package.json +5 -2
  149. package/src/MapProvider.web.tsx +5 -3
  150. package/src/MapView.tsx +12 -1
  151. package/src/MapView.types.ts +118 -1
  152. package/src/MapView.web.tsx +378 -345
  153. package/src/components/Circle.tsx +52 -0
  154. package/src/components/Circle.types.ts +33 -0
  155. package/src/components/Circle.web.tsx +95 -0
  156. package/src/components/GeoJson.tsx +3 -3
  157. package/src/components/GroundOverlay.tsx +47 -0
  158. package/src/components/GroundOverlay.types.ts +36 -0
  159. package/src/components/GroundOverlay.web.tsx +81 -0
  160. package/src/components/Marker.tsx +32 -6
  161. package/src/components/Marker.types.ts +19 -6
  162. package/src/components/Marker.web.tsx +196 -150
  163. package/src/components/Polygon.web.tsx +93 -89
  164. package/src/components/Polyline.web.tsx +235 -235
  165. package/src/components/TileOverlay.tsx +44 -0
  166. package/src/components/TileOverlay.types.ts +37 -0
  167. package/src/components/TileOverlay.web.tsx +97 -0
  168. package/src/components/index.ts +10 -0
  169. package/src/components/index.web.ts +9 -0
  170. package/src/fabric/LuggCalloutViewNativeComponent.ts +1 -1
  171. package/src/fabric/LuggCircleViewNativeComponent.ts +25 -0
  172. package/src/fabric/LuggGroundOverlayViewNativeComponent.ts +29 -0
  173. package/src/fabric/LuggMapViewNativeComponent.ts +13 -5
  174. package/src/fabric/LuggMarkerViewNativeComponent.ts +14 -2
  175. package/src/fabric/LuggTileOverlayViewNativeComponent.ts +30 -0
  176. package/src/index.ts +12 -1
  177. package/src/index.web.ts +15 -0
  178. package/src/types.ts +0 -5
@@ -1,9 +1,15 @@
1
1
  export { Marker } from './Marker';
2
- export type { CalloutOptions, MarkerProps, MarkerPressEvent, MarkerDragEvent, } from './Marker.types';
2
+ export type { CalloutOptions, MarkerRef, MarkerProps, MarkerPressEvent, MarkerDragEvent, } from './Marker.types';
3
3
  export { Polygon } from './Polygon';
4
4
  export type { PolygonProps } from './Polygon.types';
5
+ export { Circle } from './Circle';
6
+ export type { CircleProps } from './Circle.types';
5
7
  export { Polyline } from './Polyline';
6
8
  export type { PolylineProps, PolylineEasing, PolylineAnimatedOptions, } from './Polyline.types';
7
9
  export { GeoJson } from './GeoJson';
8
10
  export type { GeoJsonProps } from './GeoJson.types';
11
+ export { GroundOverlay } from './GroundOverlay';
12
+ export type { GroundOverlayProps, GroundOverlayBounds, } from './GroundOverlay.types';
13
+ export { TileOverlay } from './TileOverlay';
14
+ export type { TileOverlayProps, TileOverlayBounds } from './TileOverlay.types';
9
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EACV,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,eAAe,GAChB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EACV,aAAa,EACb,cAAc,EACd,uBAAuB,GACxB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EACV,cAAc,EACd,SAAS,EACT,WAAW,EACX,gBAAgB,EAChB,eAAe,GAChB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EACV,aAAa,EACb,cAAc,EACd,uBAAuB,GACxB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EACV,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
@@ -1,9 +1,15 @@
1
1
  export { Marker } from './Marker.web';
2
2
  export { Polygon } from './Polygon.web';
3
+ export { Circle } from './Circle.web';
3
4
  export { Polyline } from './Polyline.web';
4
5
  export type { CalloutOptions, MarkerProps } from './Marker.types';
5
6
  export type { PolygonProps } from './Polygon.types';
7
+ export type { CircleProps } from './Circle.types';
6
8
  export type { PolylineProps } from './Polyline.types';
7
9
  export { GeoJson } from './GeoJson';
8
10
  export type { GeoJsonProps } from './GeoJson.types';
11
+ export { GroundOverlay } from './GroundOverlay.web';
12
+ export type { GroundOverlayProps, GroundOverlayBounds, } from './GroundOverlay.types';
13
+ export { TileOverlay } from './TileOverlay.web';
14
+ export type { TileOverlayProps, TileOverlayBounds } from './TileOverlay.types';
9
15
  //# sourceMappingURL=index.web.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../../src/components/index.web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClE,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../../src/components/index.web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClE,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,YAAY,EACV,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
@@ -6,7 +6,7 @@ export interface Point {
6
6
  }
7
7
  export interface NativeProps extends ViewProps {
8
8
  bubbled?: WithDefault<boolean, true>;
9
- anchor?: Point;
9
+ offset?: Point;
10
10
  }
11
11
  declare const _default: HostComponent<NativeProps>;
12
12
  export default _default;
@@ -0,0 +1,18 @@
1
+ import type { ViewProps, HostComponent, ColorValue } 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 NativeProps extends ViewProps {
8
+ center: Coordinate;
9
+ radius?: Double;
10
+ strokeColor?: ColorValue;
11
+ strokeWidth?: Double;
12
+ fillColor?: ColorValue;
13
+ tappable?: boolean;
14
+ onCirclePress?: DirectEventHandler<null>;
15
+ }
16
+ declare const _default: HostComponent<NativeProps>;
17
+ export default _default;
18
+ //# sourceMappingURL=LuggCircleViewNativeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LuggCircleViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/fabric/LuggCircleViewNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACzE,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,WAAY,SAAQ,SAAS;IAC5C,MAAM,EAAE,UAAU,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,kBAAkB,CAAC,IAAI,CAAC,CAAC;CAC1C;wBAII,aAAa,CAAC,WAAW,CAAC;AAF/B,wBAEgC"}
@@ -0,0 +1,21 @@
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 Bounds {
8
+ northeast: Coordinate;
9
+ southwest: Coordinate;
10
+ }
11
+ export interface NativeProps extends ViewProps {
12
+ image: string;
13
+ bounds: Bounds;
14
+ opacity?: Double;
15
+ bearing?: Double;
16
+ tappable?: boolean;
17
+ onGroundOverlayPress?: DirectEventHandler<null>;
18
+ }
19
+ declare const _default: HostComponent<NativeProps>;
20
+ export default _default;
21
+ //# sourceMappingURL=LuggGroundOverlayViewNativeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LuggGroundOverlayViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/fabric/LuggGroundOverlayViewNativeComponent.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,MAAM;IACrB,SAAS,EAAE,UAAU,CAAC;IACtB,SAAS,EAAE,UAAU,CAAC;CACvB;AAED,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oBAAoB,CAAC,EAAE,kBAAkB,CAAC,IAAI,CAAC,CAAC;CACjD;wBAII,aAAa,CAAC,WAAW,CAAC;AAF/B,wBAEgC"}
@@ -50,19 +50,24 @@ export interface ReadyEvent {
50
50
  }
51
51
  export interface NativeProps extends ViewProps {
52
52
  provider?: WithDefault<'google' | 'apple', 'google'>;
53
+ mapType?: WithDefault<'standard' | 'satellite' | 'terrain' | 'hybrid' | 'muted-standard', 'standard'>;
53
54
  mapId?: string;
54
55
  initialCoordinate?: Coordinate;
55
56
  initialZoom?: Double;
56
57
  minZoom?: Double;
57
58
  maxZoom?: Double;
58
- zoomEnabled?: boolean;
59
- scrollEnabled?: boolean;
60
- rotateEnabled?: boolean;
61
- pitchEnabled?: boolean;
59
+ zoomEnabled?: WithDefault<boolean, true>;
60
+ scrollEnabled?: WithDefault<boolean, true>;
61
+ rotateEnabled?: WithDefault<boolean, true>;
62
+ pitchEnabled?: WithDefault<boolean, true>;
62
63
  edgeInsets?: EdgeInsets;
63
64
  userLocationEnabled?: boolean;
64
65
  userLocationButtonEnabled?: boolean;
65
- theme?: WithDefault<'light' | 'dark' | 'system', 'system'>;
66
+ poiEnabled?: boolean;
67
+ poiFilterMode?: WithDefault<'including' | 'excluding', 'including'>;
68
+ poiFilterCategories?: ReadonlyArray<string>;
69
+ theme?: WithDefault<'system' | 'light' | 'dark', 'system'>;
70
+ insetAdjustment?: WithDefault<'never' | 'automatic', 'never'>;
66
71
  onMapPress?: DirectEventHandler<PressEvent>;
67
72
  onMapLongPress?: DirectEventHandler<LongPressEvent>;
68
73
  onCameraMove?: DirectEventHandler<CameraMoveEvent>;
@@ -1 +1 @@
1
- {"version":3,"file":"LuggMapViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/fabric/LuggMapViewNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EACV,MAAM,EACN,WAAW,EACX,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,M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AC,cAAc,CAAC,CAAC;IACpD,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,aAAa,EAAE,MAAM,EACrB,cAAc,EAAE,MAAM,EACtB,gBAAgB,EAAE,MAAM,EACxB,eAAe,EAAE,MAAM,EACvB,QAAQ,EAAE,MAAM,KACb,IAAI,CAAC;IACV,aAAa,EAAE,CACb,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,EACxC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,KACb,IAAI,CAAC;CACX;AAED,eAAO,MAAM,QAAQ,gBAEnB,CAAC;wBAIE,aAAa;AAFlB,wBAEmB"}
1
+ {"version":3,"file":"LuggMapViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/fabric/LuggMapViewNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EACV,MAAM,EACN,WAAW,EACX,kBAAkB,EACnB,MAAM,2CAA2C,CAAC;AAEnD,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AED,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,aAAa,EAAE,MAAM,EACrB,cAAc,EAAE,MAAM,EACtB,gBAAgB,EAAE,MAAM,EACxB,eAAe,EAAE,MAAM,EACvB,QAAQ,EAAE,MAAM,KACb,IAAI,CAAC;IACV,aAAa,EAAE,CACb,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,EACxC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,KACb,IAAI,CAAC;CACX;AAED,eAAO,MAAM,QAAQ,gBAEnB,CAAC;wBAIE,aAAa;AAFlB,wBAEmB"}
@@ -17,6 +17,7 @@ export interface NativeProps extends ViewProps {
17
17
  rotate?: WithDefault<Double, 0>;
18
18
  scale?: WithDefault<Double, 1>;
19
19
  rasterize?: WithDefault<boolean, true>;
20
+ centerOnPress?: WithDefault<boolean, true>;
20
21
  draggable?: WithDefault<boolean, false>;
21
22
  onMarkerPress?: DirectEventHandler<{
22
23
  coordinate: {
@@ -59,6 +60,12 @@ export interface NativeProps extends ViewProps {
59
60
  };
60
61
  }>;
61
62
  }
62
- declare const _default: HostComponent<NativeProps>;
63
+ type ComponentType = HostComponent<NativeProps>;
64
+ interface NativeCommands {
65
+ showCallout: (viewRef: React.ElementRef<ComponentType>) => void;
66
+ hideCallout: (viewRef: React.ElementRef<ComponentType>) => void;
67
+ }
68
+ export declare const Commands: NativeCommands;
69
+ declare const _default: ComponentType;
63
70
  export default _default;
64
71
  //# sourceMappingURL=LuggMarkerViewNativeComponent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LuggMarkerViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/fabric/LuggMarkerViewNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EACV,MAAM,EACN,WAAW,EACX,kBAAkB,EACnB,MAAM,2CAA2C,CAAC;AAEnD,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,KAAK;IACpB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,UAAU,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,KAAK,CAAC;IACf,MAAM,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAChC,KAAK,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAC/B,SAAS,CAAC,EAAE,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACvC,SAAS,CAAC,EAAE,WAAW,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACxC,aAAa,CAAC,EAAE,kBAAkB,CAAC;QACjC,UAAU,EAAE;YACV,QAAQ,EAAE,MAAM,CAAC;YACjB,SAAS,EAAE,MAAM,CAAC;SACnB,CAAC;QACF,KAAK,EAAE;YACL,CAAC,EAAE,MAAM,CAAC;YACV,CAAC,EAAE,MAAM,CAAC;SACX,CAAC;KACH,CAAC,CAAC;IACH,iBAAiB,CAAC,EAAE,kBAAkB,CAAC;QACrC,UAAU,EAAE;YACV,QAAQ,EAAE,MAAM,CAAC;YACjB,SAAS,EAAE,MAAM,CAAC;SACnB,CAAC;QACF,KAAK,EAAE;YACL,CAAC,EAAE,MAAM,CAAC;YACV,CAAC,EAAE,MAAM,CAAC;SACX,CAAC;KACH,CAAC,CAAC;IACH,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;QACtC,UAAU,EAAE;YACV,QAAQ,EAAE,MAAM,CAAC;YACjB,SAAS,EAAE,MAAM,CAAC;SACnB,CAAC;QACF,KAAK,EAAE;YACL,CAAC,EAAE,MAAM,CAAC;YACV,CAAC,EAAE,MAAM,CAAC;SACX,CAAC;KACH,CAAC,CAAC;IACH,eAAe,CAAC,EAAE,kBAAkB,CAAC;QACnC,UAAU,EAAE;YACV,QAAQ,EAAE,MAAM,CAAC;YACjB,SAAS,EAAE,MAAM,CAAC;SACnB,CAAC;QACF,KAAK,EAAE;YACL,CAAC,EAAE,MAAM,CAAC;YACV,CAAC,EAAE,MAAM,CAAC;SACX,CAAC;KACH,CAAC,CAAC;CACJ;wBAII,aAAa,CAAC,WAAW,CAAC;AAF/B,wBAEgC"}
1
+ {"version":3,"file":"LuggMarkerViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/fabric/LuggMarkerViewNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EACV,MAAM,EACN,WAAW,EACX,kBAAkB,EACnB,MAAM,2CAA2C,CAAC;AAEnD,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,KAAK;IACpB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,WAA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,EAAE,kBAAkB,CAAC;QACnC,UAAU,EAAE;YACV,QAAQ,EAAE,MAAM,CAAC;YACjB,SAAS,EAAE,MAAM,CAAC;SACnB,CAAC;QACF,KAAK,EAAE;YACL,CAAC,EAAE,MAAM,CAAC;YACV,CAAC,EAAE,MAAM,CAAC;SACX,CAAC;KACH,CAAC,CAAC;CACJ;AAED,KAAK,aAAa,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC;AAEhD,UAAU,cAAc;IACtB,WAAW,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;IAChE,WAAW,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;CACjE;AAED,eAAO,MAAM,QAAQ,gBAEnB,CAAC;wBAIE,aAAa;AAFlB,wBAEmB"}
@@ -0,0 +1,21 @@
1
+ import type { ViewProps, HostComponent } from 'react-native';
2
+ import type { Double, Int32, DirectEventHandler } from 'react-native/Libraries/Types/CodegenTypes';
3
+ export interface Coordinate {
4
+ latitude: Double;
5
+ longitude: Double;
6
+ }
7
+ export interface Bounds {
8
+ northeast: Coordinate;
9
+ southwest: Coordinate;
10
+ }
11
+ export interface NativeProps extends ViewProps {
12
+ urlTemplate: string;
13
+ tileSize?: Int32;
14
+ opacity?: Double;
15
+ bounds?: Bounds;
16
+ tappable?: boolean;
17
+ onTileOverlayPress?: DirectEventHandler<null>;
18
+ }
19
+ declare const _default: HostComponent<NativeProps>;
20
+ export default _default;
21
+ //# sourceMappingURL=LuggTileOverlayViewNativeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LuggTileOverlayViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/fabric/LuggTileOverlayViewNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EACV,MAAM,EACN,KAAK,EACL,kBAAkB,EACnB,MAAM,2CAA2C,CAAC;AAEnD,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,MAAM;IACrB,SAAS,EAAE,UAAU,CAAC;IACtB,SAAS,EAAE,UAAU,CAAC;CACvB;AAED,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kBAAkB,CAAC,EAAE,kBAAkB,CAAC,IAAI,CAAC,CAAC;CAC/C;wBAII,aAAa,CAAC,WAAW,CAAC;AAF/B,wBAEgC"}
@@ -2,14 +2,20 @@ export { MapView } from './MapView';
2
2
  export { MapProvider } from './MapProvider';
3
3
  export type { MapProviderProps } from './MapProvider.types';
4
4
  export { Marker } from './components';
5
- export type { CalloutOptions, MarkerProps, MarkerPressEvent, MarkerDragEvent, } from './components';
5
+ export type { CalloutOptions, MarkerRef, MarkerProps, MarkerPressEvent, MarkerDragEvent, } from './components';
6
6
  export { Polygon } from './components';
7
7
  export type { PolygonProps } from './components';
8
+ export { Circle } from './components';
9
+ export type { CircleProps } from './components';
8
10
  export { Polyline } from './components';
9
11
  export type { PolylineProps, PolylineEasing, PolylineAnimatedOptions, } from './components';
10
12
  export { GeoJson } from './components';
11
13
  export type { GeoJsonProps } from './components';
12
- export type { MapViewProps, MapViewRef, MoveCameraOptions, FitCoordinatesOptions, SetEdgeInsetsOptions, CameraEventPayload, MapCameraEvent, MapPressEvent, } from './MapView.types';
13
- export type { MapProvider as MapProviderType, MapTheme, Coordinate, Point, EdgeInsets, PressEventPayload, } from './types';
14
+ export { GroundOverlay } from './components';
15
+ export type { GroundOverlayProps, GroundOverlayBounds } from './components';
16
+ export { TileOverlay } from './components';
17
+ export type { TileOverlayProps, TileOverlayBounds } from './components';
18
+ export type { MapViewProps, MapViewRef, MoveCameraOptions, FitCoordinatesOptions, SetEdgeInsetsOptions, CameraEventPayload, MapCameraEvent, MapPressEvent, MapType, MapTheme, InsetAdjustment, PoiCategory, PoiFilter, } from './MapView.types';
19
+ export type { MapProvider as MapProviderType, Coordinate, Point, EdgeInsets, PressEventPayload, } from './types';
14
20
  export type { GeoJSON, Feature, FeatureCollection, FeatureProperties, Geometry, Position, } from './components/GeoJson.types';
15
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,YAAY,EACV,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,eAAe,GAChB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,YAAY,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,YAAY,EACV,aAAa,EACb,cAAc,EACd,uBAAuB,GACxB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,YAAY,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjD,YAAY,EACV,YAAY,EACZ,UAAU,EACV,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,aAAa,GACd,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,WAAW,IAAI,eAAe,E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EACV,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,OAAO,EACP,QAAQ,EACR,eAAe,EACf,WAAW,EACX,SAAS,GACV,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,WAAW,IAAI,eAAe,EAC9B,UAAU,EACV,KAAK,EACL,UAAU,EACV,iBAAiB,GAClB,MAAM,SAAS,CAAC;AACjB,YAAY,EACV,OAAO,EACP,OAAO,EACP,iBAAiB,EACjB,iBAAiB,EACjB,QAAQ,EACR,QAAQ,GACT,MAAM,4BAA4B,CAAC"}
@@ -5,11 +5,17 @@ export { Marker } from './components/index.web';
5
5
  export type { CalloutOptions, MarkerProps } from './components/index.web';
6
6
  export { Polygon } from './components/index.web';
7
7
  export type { PolygonProps } from './components/index.web';
8
+ export { Circle } from './components/index.web';
9
+ export type { CircleProps } from './components/index.web';
8
10
  export { Polyline } from './components/index.web';
9
11
  export type { PolylineProps } from './components/index.web';
10
12
  export { GeoJson } from './components/index.web';
11
13
  export type { GeoJsonProps } from './components/index.web';
12
- export type { MapViewProps, MapViewRef, MoveCameraOptions, FitCoordinatesOptions, CameraEventPayload, } from './MapView.types';
14
+ export { GroundOverlay } from './components/index.web';
15
+ export type { GroundOverlayProps, GroundOverlayBounds, } from './components/index.web';
16
+ export { TileOverlay } from './components/index.web';
17
+ export type { TileOverlayProps, TileOverlayBounds, } from './components/index.web';
18
+ export type { MapViewProps, MapViewRef, MoveCameraOptions, FitCoordinatesOptions, CameraEventPayload, MapType, PoiCategory, PoiFilter, } from './MapView.types';
13
19
  export type { MapProvider as MapProviderType, Coordinate, Point, EdgeInsets, } from './types';
14
20
  export type { GeoJSON, Feature, FeatureCollection, FeatureProperties, Geometry, Position, } from './components/GeoJson.types';
15
21
  //# sourceMappingURL=index.web.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../src/index.web.ts"],"names":[],"mappings":"AAAA,O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AE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,YAAY,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,YAAY,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,YAAY,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,YAAY,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,YAAY,EACV,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,YAAY,EACV,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,wBAAwB,CAAC;AAChC,YAAY,EACV,YAAY,EACZ,UAAU,EACV,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAClB,OAAO,EACP,WAAW,EACX,SAAS,GACV,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,WAAW,IAAI,eAAe,EAC9B,UAAU,EACV,KAAK,EACL,UAAU,GACX,MAAM,SAAS,CAAC;AACjB,YAAY,EACV,OAAO,EACP,OAAO,EACP,iBAAiB,EACjB,iBAAiB,EACjB,QAAQ,EACR,QAAQ,GACT,MAAM,4BAA4B,CAAC"}
@@ -25,10 +25,6 @@ export interface EdgeInsets {
25
25
  bottom: number;
26
26
  right: number;
27
27
  }
28
- /**
29
- * Map theme
30
- */
31
- export type MapTheme = 'light' | 'dark' | 'system';
32
28
  /**
33
29
  * Press event payload
34
30
  */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE7C;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED;;GAEG;AACH,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;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEnD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,UAAU,CAAC;IACvB,KAAK,EAAE,KAAK,CAAC;CACd"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE7C;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED;;GAEG;AACH,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;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,UAAU,CAAC;IACvB,KAAK,EAAE,KAAK,CAAC;CACd"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lugg/maps",
3
- "version": "1.0.0-beta.1",
3
+ "version": "1.0.0-beta.10",
4
4
  "description": "Universal maps for React Native.",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
@@ -150,7 +150,10 @@
150
150
  "LuggCalloutView": "LuggCalloutView",
151
151
  "LuggMapWrapperView": "LuggMapWrapperView",
152
152
  "LuggPolylineView": "LuggPolylineView",
153
- "LuggPolygonView": "LuggPolygonView"
153
+ "LuggPolygonView": "LuggPolygonView",
154
+ "LuggCircleView": "LuggCircleView",
155
+ "LuggGroundOverlayView": "LuggGroundOverlayView",
156
+ "LuggTileOverlayView": "LuggTileOverlayView"
154
157
  }
155
158
  }
156
159
  },
@@ -1,18 +1,20 @@
1
- import { createContext, useContext } from 'react';
1
+ import { createContext, useContext, type MutableRefObject } from 'react';
2
2
  import { APIProvider } from '@vis.gl/react-google-maps';
3
3
  import type { MapProviderProps } from './MapProvider.types';
4
4
 
5
5
  type CalloutCloseListener = () => void;
6
6
 
7
+ const defaultDraggingRef = { current: false };
8
+
7
9
  export const MapContext = createContext<{
8
10
  map: google.maps.Map | null;
9
- isDragging: boolean;
11
+ isDraggingRef: MutableRefObject<boolean>;
10
12
  moveCamera: (coordinate: { latitude: number; longitude: number }) => void;
11
13
  onCalloutClose: (listener: CalloutCloseListener) => () => void;
12
14
  closeCallouts: (except?: CalloutCloseListener) => void;
13
15
  }>({
14
16
  map: null,
15
- isDragging: false,
17
+ isDraggingRef: defaultDraggingRef,
16
18
  moveCamera: () => {},
17
19
  onCalloutClose: () => () => {},
18
20
  closeCallouts: () => {},
package/src/MapView.tsx CHANGED
@@ -14,16 +14,18 @@ import type {
14
14
  import type { Coordinate, EdgeInsets } from './types';
15
15
 
16
16
  export class MapView
17
- extends React.Component<MapViewProps>
17
+ extends React.PureComponent<MapViewProps>
18
18
  implements MapViewRef
19
19
  {
20
20
  static defaultProps: Partial<MapViewProps> = {
21
21
  provider: Platform.OS === 'ios' ? 'apple' : 'google',
22
+ mapType: 'standard',
22
23
  initialZoom: 10,
23
24
  zoomEnabled: true,
24
25
  scrollEnabled: true,
25
26
  rotateEnabled: true,
26
27
  pitchEnabled: true,
28
+ poiEnabled: true,
27
29
  theme: 'system',
28
30
  };
29
31
 
@@ -80,6 +82,7 @@ export class MapView
80
82
  render() {
81
83
  const {
82
84
  provider,
85
+ mapType,
83
86
  mapId,
84
87
  initialCoordinate,
85
88
  initialZoom,
@@ -92,7 +95,10 @@ export class MapView
92
95
  edgeInsets,
93
96
  userLocationEnabled,
94
97
  userLocationButtonEnabled,
98
+ poiEnabled,
99
+ poiFilter,
95
100
  theme,
101
+ insetAdjustment,
96
102
  onPress,
97
103
  onLongPress,
98
104
  onCameraMove,
@@ -107,6 +113,7 @@ export class MapView
107
113
  ref={this.nativeRef}
108
114
  {...rest}
109
115
  provider={provider}
116
+ mapType={mapType}
110
117
  mapId={mapId}
111
118
  initialCoordinate={initialCoordinate}
112
119
  initialZoom={initialZoom}
@@ -119,7 +126,11 @@ export class MapView
119
126
  edgeInsets={edgeInsets}
120
127
  userLocationEnabled={userLocationEnabled}
121
128
  userLocationButtonEnabled={userLocationButtonEnabled}
129
+ poiEnabled={poiEnabled}
130
+ poiFilterMode={poiFilter?.mode}
131
+ poiFilterCategories={poiFilter?.categories}
122
132
  theme={theme}
133
+ insetAdjustment={insetAdjustment}
123
134
  onMapPress={onPress}
124
135
  onMapLongPress={onLongPress}
125
136
  onCameraMove={onCameraMove}
@@ -4,10 +4,104 @@ import type {
4
4
  MapProvider,
5
5
  Coordinate,
6
6
  EdgeInsets,
7
- MapTheme,
8
7
  PressEventPayload,
9
8
  } from './types';
10
9
 
10
+ export type MapType =
11
+ | 'standard'
12
+ | 'satellite'
13
+ | 'terrain'
14
+ | 'hybrid'
15
+ | 'muted-standard';
16
+
17
+ export type MapTheme = 'light' | 'dark' | 'system';
18
+
19
+ export type InsetAdjustment = 'automatic' | 'never';
20
+
21
+ export type PoiCategory =
22
+ | 'airport'
23
+ | 'amusement-park'
24
+ | 'animal-service'
25
+ | 'aquarium'
26
+ | 'atm'
27
+ | 'automotive-repair'
28
+ | 'bakery'
29
+ | 'bank'
30
+ | 'baseball'
31
+ | 'basketball'
32
+ | 'beach'
33
+ | 'beauty'
34
+ | 'bowling'
35
+ | 'brewery'
36
+ | 'cafe'
37
+ | 'campground'
38
+ | 'car-rental'
39
+ | 'castle'
40
+ | 'convention-center'
41
+ | 'distillery'
42
+ | 'ev-charger'
43
+ | 'fairground'
44
+ | 'fire-station'
45
+ | 'fishing'
46
+ | 'fitness-center'
47
+ | 'food-market'
48
+ | 'fortress'
49
+ | 'gas-station'
50
+ | 'go-kart'
51
+ | 'golf'
52
+ | 'hiking'
53
+ | 'hospital'
54
+ | 'hotel'
55
+ | 'kayaking'
56
+ | 'landmark'
57
+ | 'laundry'
58
+ | 'library'
59
+ | 'mailbox'
60
+ | 'marina'
61
+ | 'mini-golf'
62
+ | 'movie-theater'
63
+ | 'museum'
64
+ | 'music-venue'
65
+ | 'national-monument'
66
+ | 'national-park'
67
+ | 'nightlife'
68
+ | 'park'
69
+ | 'parking'
70
+ | 'pharmacy'
71
+ | 'planetarium'
72
+ | 'police'
73
+ | 'post-office'
74
+ | 'public-transport'
75
+ | 'restaurant'
76
+ | 'restroom'
77
+ | 'rock-climbing'
78
+ | 'rv-park'
79
+ | 'school'
80
+ | 'skate-park'
81
+ | 'skating'
82
+ | 'skiing'
83
+ | 'soccer'
84
+ | 'spa'
85
+ | 'stadium'
86
+ | 'store'
87
+ | 'surfing'
88
+ | 'swimming'
89
+ | 'tennis'
90
+ | 'theater'
91
+ | 'university'
92
+ | 'volleyball'
93
+ | 'winery'
94
+ | 'zoo';
95
+
96
+ export interface PoiFilter {
97
+ /**
98
+ * Filter mode
99
+ * @default 'including'
100
+ */
101
+ mode?: 'including' | 'excluding';
102
+ categories: PoiCategory[];
103
+ }
104
+
11
105
  /**
12
106
  * Options for moving the camera
13
107
  */
@@ -64,6 +158,11 @@ export interface MapViewProps extends ViewProps {
64
158
  * @default 'apple' on iOS, 'google' on Android
65
159
  */
66
160
  provider?: MapProvider;
161
+ /**
162
+ * Map type to display
163
+ * @default 'standard'
164
+ */
165
+ mapType?: MapType;
67
166
  /**
68
167
  * Map style ID (Google Maps) or configuration name (Apple Maps)
69
168
  */
@@ -121,11 +220,29 @@ export interface MapViewProps extends ViewProps {
121
220
  * @platform android
122
221
  */
123
222
  userLocationButtonEnabled?: boolean;
223
+ /**
224
+ * Show points of interest on the map (Apple Maps only).
225
+ * When false, hides all POIs regardless of poiFilter.
226
+ * @default true
227
+ * @platform ios
228
+ */
229
+ poiEnabled?: boolean;
230
+ /**
231
+ * Filter POI categories to show or hide (Apple Maps only).
232
+ * Only takes effect when poiEnabled is true.
233
+ * @platform ios
234
+ */
235
+ poiFilter?: PoiFilter;
124
236
  /**
125
237
  * Map color theme
126
238
  * @default 'system'
127
239
  */
128
240
  theme?: MapTheme;
241
+ /**
242
+ * Safe area inset adjustment behavior
243
+ * @default 'never'
244
+ */
245
+ insetAdjustment?: InsetAdjustment;
129
246
  /**
130
247
  * Called when the map is pressed
131
248
  */