react-native-map4d-map-dtqg 0.1.3 → 0.1.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/LICENSE +21 -21
- package/README.md +191 -133
- package/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.9/gc.properties +0 -0
- package/android/.gradle/9.2.0/checksums/checksums.lock +0 -0
- package/android/.gradle/9.2.0/fileChanges/last-build.bin +0 -0
- package/android/.gradle/9.2.0/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/9.2.0/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/9.2.0/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/build.gradle +60 -60
- package/android/src/main/AndroidManifest.xml +4 -4
- package/android/src/main/java/com/reactnativemap4dmap/ImageUtils.java +87 -87
- package/android/src/main/java/com/reactnativemap4dmap/Map4dMapModule.java +310 -298
- package/android/src/main/java/com/reactnativemap4dmap/Map4dMapPackage.java +35 -35
- package/android/src/main/java/com/reactnativemap4dmap/Map4dMapViewManager.java +31 -31
- package/android/src/main/java/com/reactnativemap4dmap/RMFBuilding.java +167 -167
- package/android/src/main/java/com/reactnativemap4dmap/RMFBuildingManager.java +121 -121
- package/android/src/main/java/com/reactnativemap4dmap/RMFCircle.java +105 -105
- package/android/src/main/java/com/reactnativemap4dmap/RMFCircleManager.java +121 -121
- package/android/src/main/java/com/reactnativemap4dmap/RMFDirectionsRenderer.java +502 -502
- package/android/src/main/java/com/reactnativemap4dmap/RMFDirectionsRendererManager.java +143 -143
- package/android/src/main/java/com/reactnativemap4dmap/RMFFeature.java +17 -17
- package/android/src/main/java/com/reactnativemap4dmap/RMFMapView.java +1172 -1172
- package/android/src/main/java/com/reactnativemap4dmap/RMFMapViewManager.java +231 -231
- package/android/src/main/java/com/reactnativemap4dmap/RMFMarker.java +412 -412
- package/android/src/main/java/com/reactnativemap4dmap/RMFMarkerManager.java +211 -211
- package/android/src/main/java/com/reactnativemap4dmap/RMFPOI.java +222 -222
- package/android/src/main/java/com/reactnativemap4dmap/RMFPOIManager.java +119 -119
- package/android/src/main/java/com/reactnativemap4dmap/RMFPolygon.java +172 -172
- package/android/src/main/java/com/reactnativemap4dmap/RMFPolygonManager.java +147 -147
- package/android/src/main/java/com/reactnativemap4dmap/RMFPolyline.java +146 -146
- package/android/src/main/java/com/reactnativemap4dmap/RMFPolylineManager.java +137 -137
- package/android/src/main/java/com/reactnativemap4dmap/RMFTileOverlay.java +95 -95
- package/android/src/main/java/com/reactnativemap4dmap/RMFTileOverlayManager.java +64 -64
- package/android/src/main/java/com/reactnativemap4dmap/SizeReportingShadowNode.java +31 -31
- package/android/src/main/java/com/reactnativemap4dmap/ViewAttacherGroup.java +31 -31
- package/android/src/main/java/com/reactnativemap4dmap/ViewChangesTracker.java +70 -70
- package/android/src/main/java/vn/map4d/map/annotations/RMFBitmapDescriptor.java +9 -9
- package/ios/Map4dMap.h +16 -7
- package/ios/Map4dMap.m +119 -14
- package/ios/Map4dMapTurbo.mm +16 -0
- package/ios/RCTConvert+Map4dMap.h +33 -33
- package/ios/RCTConvert+Map4dMap.m +112 -112
- package/ios/RMFCircle.h +37 -37
- package/ios/RMFCircle.m +100 -100
- package/ios/RMFCircleManager.h +18 -18
- package/ios/RMFCircleManager.m +127 -155
- package/ios/RMFCircleMap4d.h +23 -23
- package/ios/RMFCircleMap4d.m +13 -13
- package/ios/RMFCoordinate.h +22 -22
- package/ios/RMFCoordinate.m +13 -13
- package/ios/RMFDirectionsMarkerOptions.h +24 -24
- package/ios/RMFDirectionsMarkerOptions.m +23 -23
- package/ios/RMFDirectionsRenderer.h +47 -47
- package/ios/RMFDirectionsRenderer.m +182 -182
- package/ios/RMFDirectionsRendererManager.h +17 -17
- package/ios/RMFDirectionsRendererManager.m +86 -84
- package/ios/RMFDirectionsRendererMap4d.h +21 -21
- package/ios/RMFDirectionsRendererMap4d.m +12 -12
- package/ios/RMFDummyView.h +6 -6
- package/ios/RMFDummyView.m +12 -12
- package/ios/RMFEventResponse.h +39 -39
- package/ios/RMFEventResponse.m +98 -98
- package/ios/RMFIcon.h +24 -24
- package/ios/RMFIcon.m +35 -35
- package/ios/RMFMapView.h +84 -84
- package/ios/RMFMapView.m +376 -376
- package/ios/RMFMapViewManager.h +17 -17
- package/ios/RMFMapViewManager.m +424 -509
- package/ios/RMFMarker.h +57 -57
- package/ios/RMFMarker.m +267 -267
- package/ios/RMFMarkerManager.h +17 -17
- package/ios/RMFMarkerManager.m +128 -156
- package/ios/RMFMarkerMap4d.h +19 -19
- package/ios/RMFMarkerMap4d.m +13 -13
- package/ios/RMFPOI.h +38 -38
- package/ios/RMFPOI.m +123 -123
- package/ios/RMFPOIManager.h +18 -18
- package/ios/RMFPOIManager.m +134 -168
- package/ios/RMFPOIMap4d.h +22 -22
- package/ios/RMFPOIMap4d.m +12 -12
- package/ios/RMFPolygon.h +41 -41
- package/ios/RMFPolygon.m +106 -106
- package/ios/RMFPolygonManager.h +18 -18
- package/ios/RMFPolygonManager.m +119 -141
- package/ios/RMFPolygonMap4d.h +23 -23
- package/ios/RMFPolygonMap4d.m +15 -15
- package/ios/RMFPolyline.h +38 -38
- package/ios/RMFPolyline.m +101 -101
- package/ios/RMFPolylineManager.h +18 -18
- package/ios/RMFPolylineManager.m +117 -139
- package/ios/RMFPolylineMap4d.h +22 -22
- package/ios/RMFPolylineMap4d.m +15 -15
- package/ios/building/RMFBuilding.h +41 -41
- package/ios/building/RMFBuilding.m +104 -104
- package/ios/building/RMFBuildingManager.h +19 -19
- package/ios/building/RMFBuildingManager.m +105 -133
- package/ios/building/RMFBuildingMap4d.h +23 -23
- package/ios/building/RMFBuildingMap4d.m +15 -15
- package/ios/overlays/RMFTileOverlay.h +36 -36
- package/ios/overlays/RMFTileOverlay.m +64 -64
- package/ios/overlays/RMFTileOverlayManager.h +17 -17
- package/ios/overlays/RMFTileOverlayManager.m +27 -27
- package/lib/commonjs/components/MFBanDoSo/constants.js +27 -0
- package/lib/commonjs/components/MFBanDoSo/constants.js.map +1 -0
- package/lib/commonjs/components/MFBanDoSo/helpers.js +200 -0
- package/lib/commonjs/components/MFBanDoSo/helpers.js.map +1 -0
- package/lib/commonjs/components/MFBanDoSo/propTypes.js +18 -0
- package/lib/commonjs/components/MFBanDoSo/propTypes.js.map +1 -0
- package/lib/commonjs/components/MFBanDoSo/styles.js +328 -0
- package/lib/commonjs/components/MFBanDoSo/styles.js.map +1 -0
- package/lib/commonjs/components/MFBanDoSo/ui.js +220 -0
- package/lib/commonjs/components/MFBanDoSo/ui.js.map +1 -0
- package/lib/commonjs/components/MFBanDoSo.js +190 -73
- package/lib/commonjs/components/MFBanDoSo.js.map +1 -1
- package/lib/commonjs/components/MFBuilding.js +41 -98
- package/lib/commonjs/components/MFBuilding.js.map +1 -1
- package/lib/commonjs/components/MFCircle.js +40 -90
- package/lib/commonjs/components/MFCircle.js.map +1 -1
- package/lib/commonjs/components/MFDirectionsRenderer.js +47 -107
- package/lib/commonjs/components/MFDirectionsRenderer.js.map +1 -1
- package/lib/commonjs/components/MFMapView.js +119 -199
- package/lib/commonjs/components/MFMapView.js.map +1 -1
- package/lib/commonjs/components/MFMarker.js +50 -118
- package/lib/commonjs/components/MFMarker.js.map +1 -1
- package/lib/commonjs/components/MFPOI.js +37 -94
- package/lib/commonjs/components/MFPOI.js.map +1 -1
- package/lib/commonjs/components/MFPolygon.js +37 -91
- package/lib/commonjs/components/MFPolygon.js.map +1 -1
- package/lib/commonjs/components/MFPolyline.js +35 -87
- package/lib/commonjs/components/MFPolyline.js.map +1 -1
- package/lib/commonjs/components/MFTileOverlay.js +16 -24
- package/lib/commonjs/components/MFTileOverlay.js.map +1 -1
- package/lib/commonjs/components/Map4dMapView.js +1 -4
- package/lib/commonjs/components/Map4dMapView.js.map +1 -1
- package/lib/commonjs/components/extends/AreaFocusManager.js +20 -54
- package/lib/commonjs/components/extends/AreaFocusManager.js.map +1 -1
- package/lib/commonjs/components/extends/AreaFocuser.js +3 -19
- package/lib/commonjs/components/extends/AreaFocuser.js.map +1 -1
- package/lib/commonjs/components/extends/BoundHelper.js +0 -6
- package/lib/commonjs/components/extends/BoundHelper.js.map +1 -1
- package/lib/commonjs/components/extends/area/AreaFocusAreas.js +0 -37
- package/lib/commonjs/components/extends/area/AreaFocusAreas.js.map +1 -1
- package/lib/commonjs/components/extends/area/AreaFocusGeometryUtils.js +1 -35
- package/lib/commonjs/components/extends/area/AreaFocusGeometryUtils.js.map +1 -1
- package/lib/commonjs/components/extends/area/AreaFocusSession.js +0 -18
- package/lib/commonjs/components/extends/area/AreaFocusSession.js.map +1 -1
- package/lib/commonjs/components/extends/area/AreaFocusTypes.js +20 -21
- package/lib/commonjs/components/extends/area/AreaFocusTypes.js.map +1 -1
- package/lib/commonjs/components/internal/DefaultRoadmapStyle.js +1 -2
- package/lib/commonjs/components/internal/DefaultRoadmapStyle.js.map +1 -1
- package/lib/commonjs/components/internal/GeojsonStyleUtils.js +20 -31
- package/lib/commonjs/components/internal/GeojsonStyleUtils.js.map +1 -1
- package/lib/commonjs/index.js +0 -11
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/native/Map4dMapNativeModule.js +10 -0
- package/lib/commonjs/native/Map4dMapNativeModule.js.map +1 -0
- package/lib/commonjs/native/NativeModuleResolver.js +35 -0
- package/lib/commonjs/native/NativeModuleResolver.js.map +1 -0
- package/lib/commonjs/native/ViewManagerCommand.js +67 -0
- package/lib/commonjs/native/ViewManagerCommand.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/specs/NativeMap4dMap.js +9 -0
- package/lib/commonjs/specs/NativeMap4dMap.js.map +1 -0
- package/lib/module/components/MFBanDoSo/constants.js +22 -0
- package/lib/module/components/MFBanDoSo/constants.js.map +1 -0
- package/lib/module/components/MFBanDoSo/helpers.js +188 -0
- package/lib/module/components/MFBanDoSo/helpers.js.map +1 -0
- package/lib/module/components/MFBanDoSo/propTypes.js +14 -0
- package/lib/module/components/MFBanDoSo/propTypes.js.map +1 -0
- package/lib/module/components/MFBanDoSo/styles.js +325 -0
- package/lib/module/components/MFBanDoSo/styles.js.map +1 -0
- package/lib/module/components/MFBanDoSo/ui.js +213 -0
- package/lib/module/components/MFBanDoSo/ui.js.map +1 -0
- package/lib/module/components/MFBanDoSo.js +192 -63
- package/lib/module/components/MFBanDoSo.js.map +1 -1
- package/lib/module/components/MFBuilding.js +43 -90
- package/lib/module/components/MFBuilding.js.map +1 -1
- package/lib/module/components/MFCircle.js +42 -82
- package/lib/module/components/MFCircle.js.map +1 -1
- package/lib/module/components/MFDirectionsRenderer.js +48 -99
- package/lib/module/components/MFDirectionsRenderer.js.map +1 -1
- package/lib/module/components/MFMapView.js +120 -188
- package/lib/module/components/MFMapView.js.map +1 -1
- package/lib/module/components/MFMarker.js +52 -109
- package/lib/module/components/MFMarker.js.map +1 -1
- package/lib/module/components/MFPOI.js +39 -86
- package/lib/module/components/MFPOI.js.map +1 -1
- package/lib/module/components/MFPolygon.js +39 -83
- package/lib/module/components/MFPolygon.js.map +1 -1
- package/lib/module/components/MFPolyline.js +37 -79
- package/lib/module/components/MFPolyline.js.map +1 -1
- package/lib/module/components/MFTileOverlay.js +19 -18
- package/lib/module/components/MFTileOverlay.js.map +1 -1
- package/lib/module/components/Map4dMapView.js +2 -0
- package/lib/module/components/Map4dMapView.js.map +1 -1
- package/lib/module/components/extends/AreaFocusManager.js +22 -48
- package/lib/module/components/extends/AreaFocusManager.js.map +1 -1
- package/lib/module/components/extends/AreaFocuser.js +5 -17
- package/lib/module/components/extends/AreaFocuser.js.map +1 -1
- package/lib/module/components/extends/BoundHelper.js +2 -5
- package/lib/module/components/extends/BoundHelper.js.map +1 -1
- package/lib/module/components/extends/area/AreaFocusAreas.js +2 -33
- package/lib/module/components/extends/area/AreaFocusAreas.js.map +1 -1
- package/lib/module/components/extends/area/AreaFocusGeometryUtils.js +2 -32
- package/lib/module/components/extends/area/AreaFocusGeometryUtils.js.map +1 -1
- package/lib/module/components/extends/area/AreaFocusSession.js +2 -17
- package/lib/module/components/extends/area/AreaFocusSession.js.map +1 -1
- package/lib/module/components/extends/area/AreaFocusTypes.js +21 -18
- package/lib/module/components/extends/area/AreaFocusTypes.js.map +1 -1
- package/lib/module/components/internal/DefaultRoadmapStyle.js +2 -0
- package/lib/module/components/internal/DefaultRoadmapStyle.js.map +1 -1
- package/lib/module/components/internal/GeojsonStyleUtils.js +21 -28
- package/lib/module/components/internal/GeojsonStyleUtils.js.map +1 -1
- package/lib/module/index.js +2 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/native/Map4dMapNativeModule.js +5 -0
- package/lib/module/native/Map4dMapNativeModule.js.map +1 -0
- package/lib/module/native/NativeModuleResolver.js +29 -0
- package/lib/module/native/NativeModuleResolver.js.map +1 -0
- package/lib/module/native/ViewManagerCommand.js +61 -0
- package/lib/module/native/ViewManagerCommand.js.map +1 -0
- package/lib/module/specs/NativeMap4dMap.js +5 -0
- package/lib/module/specs/NativeMap4dMap.js.map +1 -0
- package/lib/typescript/components/MFBanDoSo/constants.d.ts +8 -0
- package/lib/typescript/components/MFBanDoSo/constants.d.ts.map +1 -0
- package/lib/typescript/components/MFBanDoSo/helpers.d.ts +14 -0
- package/lib/typescript/components/MFBanDoSo/helpers.d.ts.map +1 -0
- package/lib/typescript/components/MFBanDoSo/propTypes.d.ts +2 -0
- package/lib/typescript/components/MFBanDoSo/propTypes.d.ts.map +1 -0
- package/lib/typescript/components/MFBanDoSo/styles.d.ts +462 -0
- package/lib/typescript/components/MFBanDoSo/styles.d.ts.map +1 -0
- package/lib/typescript/components/MFBanDoSo/ui.d.ts +30 -0
- package/lib/typescript/components/MFBanDoSo/ui.d.ts.map +1 -0
- package/lib/typescript/components/MFBanDoSo.d.ts +37 -0
- package/lib/typescript/components/MFBanDoSo.d.ts.map +1 -0
- package/lib/typescript/components/MFBuilding.d.ts +24 -0
- package/lib/typescript/components/MFBuilding.d.ts.map +1 -0
- package/lib/typescript/components/MFCircle.d.ts +24 -0
- package/lib/typescript/components/MFCircle.d.ts.map +1 -0
- package/lib/typescript/components/MFDirectionsRenderer.d.ts +19 -0
- package/lib/typescript/components/MFDirectionsRenderer.d.ts.map +1 -0
- package/lib/typescript/components/MFMapView.d.ts +66 -0
- package/lib/typescript/components/MFMapView.d.ts.map +1 -0
- package/lib/typescript/components/MFMarker.d.ts +26 -0
- package/lib/typescript/components/MFMarker.d.ts.map +1 -0
- package/lib/typescript/components/MFPOI.d.ts +24 -0
- package/lib/typescript/components/MFPOI.d.ts.map +1 -0
- package/lib/typescript/components/MFPolygon.d.ts +24 -0
- package/lib/typescript/components/MFPolygon.d.ts.map +1 -0
- package/lib/typescript/components/MFPolyline.d.ts +24 -0
- package/lib/typescript/components/MFPolyline.d.ts.map +1 -0
- package/lib/typescript/components/MFTileOverlay.d.ts +12 -0
- package/lib/typescript/components/MFTileOverlay.d.ts.map +1 -0
- package/lib/typescript/components/Map4dMapView.d.ts +2 -1
- package/lib/typescript/components/Map4dMapView.d.ts.map +1 -0
- package/lib/typescript/components/extends/AreaFocusManager.d.ts +34 -0
- package/lib/typescript/components/extends/AreaFocusManager.d.ts.map +1 -0
- package/lib/typescript/components/extends/AreaFocuser.d.ts +15 -0
- package/lib/typescript/components/extends/AreaFocuser.d.ts.map +1 -0
- package/lib/typescript/components/extends/BoundHelper.d.ts +11 -0
- package/lib/typescript/components/extends/BoundHelper.d.ts.map +1 -0
- package/lib/typescript/components/extends/area/AreaFocusAreas.d.ts +58 -0
- package/lib/typescript/components/extends/area/AreaFocusAreas.d.ts.map +1 -0
- package/lib/typescript/components/extends/area/AreaFocusGeometryUtils.d.ts +19 -0
- package/lib/typescript/components/extends/area/AreaFocusGeometryUtils.d.ts.map +1 -0
- package/lib/typescript/components/extends/area/AreaFocusSession.d.ts +14 -0
- package/lib/typescript/components/extends/area/AreaFocusSession.d.ts.map +1 -0
- package/lib/typescript/components/extends/area/AreaFocusTypes.d.ts +40 -0
- package/lib/typescript/components/extends/area/AreaFocusTypes.d.ts.map +1 -0
- package/lib/typescript/components/internal/DefaultRoadmapStyle.d.ts +820 -0
- package/lib/typescript/components/internal/DefaultRoadmapStyle.d.ts.map +1 -0
- package/lib/typescript/components/internal/GeojsonStyleUtils.d.ts +3 -0
- package/lib/typescript/components/internal/GeojsonStyleUtils.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +13 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/native/Map4dMapNativeModule.d.ts +2 -0
- package/lib/typescript/native/Map4dMapNativeModule.d.ts.map +1 -0
- package/lib/typescript/native/NativeModuleResolver.d.ts +3 -0
- package/lib/typescript/native/NativeModuleResolver.d.ts.map +1 -0
- package/lib/typescript/native/ViewManagerCommand.d.ts +11 -0
- package/lib/typescript/native/ViewManagerCommand.d.ts.map +1 -0
- package/package.json +168 -152
- package/react-native-map4d-map.podspec +20 -20
- package/src/components/MFBanDoSo/constants.js +32 -0
- package/src/components/MFBanDoSo/helpers.js +273 -0
- package/src/components/MFBanDoSo/propTypes.js +14 -0
- package/src/components/MFBanDoSo/styles.js +316 -0
- package/src/components/MFBanDoSo/ui.js +230 -0
- package/src/components/MFBanDoSo.js +314 -124
- package/src/components/MFBuilding.js +160 -187
- package/src/components/MFCircle.js +146 -173
- package/src/components/MFDirectionsRenderer.js +211 -237
- package/src/components/MFMapView.js +458 -464
- package/src/components/MFMarker.js +218 -246
- package/src/components/MFPOI.js +157 -184
- package/src/components/MFPolygon.js +159 -186
- package/src/components/MFPolyline.js +145 -172
- package/src/components/MFTileOverlay.js +45 -45
- package/src/components/Map4dMapView.tsx +26 -26
- package/src/components/extends/AreaFocusManager.js +196 -196
- package/src/components/extends/AreaFocuser.js +61 -61
- package/src/components/extends/BoundHelper.js +31 -31
- package/src/components/extends/area/AreaFocusAreas.js +164 -164
- package/src/components/extends/area/AreaFocusGeometryUtils.js +164 -164
- package/src/components/extends/area/AreaFocusSession.js +100 -100
- package/src/components/extends/area/AreaFocusTypes.js +36 -36
- package/src/components/internal/DefaultRoadmapStyle.js +3365 -3365
- package/src/components/internal/GeojsonStyleUtils.js +146 -143
- package/src/index.js +25 -25
- package/src/native/Map4dMapNativeModule.js +3 -0
- package/src/native/NativeModuleResolver.js +33 -0
- package/src/native/ViewManagerCommand.js +82 -0
- package/src/specs/NativeMap4dMap.js +12 -0
- package/ios/Map4dMapViewManager.m +0 -34
|
@@ -4,224 +4,159 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.MFMarker = void 0;
|
|
7
|
-
|
|
8
7
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
|
|
10
8
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
12
9
|
var _deprecatedReactNativePropTypes = require("deprecated-react-native-prop-types");
|
|
13
|
-
|
|
10
|
+
var _ViewManagerCommand = require("../native/ViewManagerCommand");
|
|
14
11
|
var _reactNative = require("react-native");
|
|
15
|
-
|
|
16
|
-
function _interopRequireDefault(
|
|
17
|
-
|
|
18
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
19
|
-
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
20
14
|
// if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)
|
|
21
15
|
const viewPropTypes = _deprecatedReactNativePropTypes.ViewPropTypes || View.propTypes;
|
|
22
|
-
const propTypes = {
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* The coordinate for the marker.
|
|
16
|
+
const propTypes = {
|
|
17
|
+
...viewPropTypes,
|
|
18
|
+
/**
|
|
19
|
+
* The coordinate for the marker.
|
|
26
20
|
*/
|
|
27
21
|
coordinate: _propTypes.default.shape({
|
|
28
22
|
latitude: _propTypes.default.number.isRequired,
|
|
29
23
|
longitude: _propTypes.default.number.isRequired
|
|
30
24
|
}).isRequired,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
* Default value is `false`
|
|
25
|
+
/**
|
|
26
|
+
* Default value is `false`
|
|
34
27
|
*/
|
|
35
28
|
draggable: _propTypes.default.bool,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
* Sets the ground anchor point for the marker.
|
|
29
|
+
/**
|
|
30
|
+
* Sets the ground anchor point for the marker.
|
|
39
31
|
*/
|
|
40
32
|
anchor: _propTypes.default.shape({
|
|
41
33
|
x: _propTypes.default.number.isRequired,
|
|
42
34
|
y: _propTypes.default.number.isRequired
|
|
43
35
|
}),
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
*
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
47
38
|
*/
|
|
48
39
|
elevation: _propTypes.default.number,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
*
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
52
42
|
*/
|
|
53
43
|
rotation: _propTypes.default.number,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
* Sets the infor window anchor point for the marker.
|
|
44
|
+
/**
|
|
45
|
+
* Sets the infor window anchor point for the marker.
|
|
57
46
|
*/
|
|
58
47
|
infoWindowAnchor: _propTypes.default.shape({
|
|
59
48
|
x: _propTypes.default.number.isRequired,
|
|
60
49
|
y: _propTypes.default.number.isRequired
|
|
61
50
|
}),
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
* The title of the marker.
|
|
51
|
+
/**
|
|
52
|
+
* The title of the marker.
|
|
65
53
|
*/
|
|
66
54
|
title: _propTypes.default.string,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
* The snippet of the marker.
|
|
55
|
+
/**
|
|
56
|
+
* The snippet of the marker.
|
|
70
57
|
*/
|
|
71
58
|
snippet: _propTypes.default.string,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
* Marker icon to render.
|
|
59
|
+
/**
|
|
60
|
+
* Marker icon to render.
|
|
75
61
|
*/
|
|
76
62
|
icon: _propTypes.default.shape({
|
|
77
63
|
uri: _propTypes.default.any.isRequired,
|
|
78
64
|
width: _propTypes.default.number.isRequired,
|
|
79
65
|
height: _propTypes.default.number.isRequired
|
|
80
66
|
}),
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
* zIndex
|
|
67
|
+
/**
|
|
68
|
+
* zIndex
|
|
84
69
|
*/
|
|
85
70
|
zIndex: _propTypes.default.number,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
* visible
|
|
71
|
+
/**
|
|
72
|
+
* visible
|
|
89
73
|
*/
|
|
90
74
|
visible: _propTypes.default.bool,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
* userData
|
|
75
|
+
/**
|
|
76
|
+
* userData
|
|
94
77
|
*/
|
|
95
78
|
userData: _propTypes.default.object,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
* Callback that is called when the user presses on the marker
|
|
79
|
+
/**
|
|
80
|
+
* Callback that is called when the user presses on the marker
|
|
99
81
|
*/
|
|
100
82
|
onPress: _propTypes.default.func,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
* Callback that is called when the user presses on the info window
|
|
83
|
+
/**
|
|
84
|
+
* Callback that is called when the user presses on the info window
|
|
104
85
|
*/
|
|
105
86
|
onPressInfoWindow: _propTypes.default.func,
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
* Callback that is called when the user initiates a drag on this marker (if it is draggable)
|
|
87
|
+
/**
|
|
88
|
+
* Callback that is called when the user initiates a drag on this marker (if it is draggable)
|
|
109
89
|
*/
|
|
110
90
|
onDragStart: _propTypes.default.func,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
* Callback called continuously as the marker is dragged
|
|
91
|
+
/**
|
|
92
|
+
* Callback called continuously as the marker is dragged
|
|
114
93
|
*/
|
|
115
94
|
onDrag: _propTypes.default.func,
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
*
|
|
119
|
-
* will want to setState on the marker's coordinate again
|
|
95
|
+
/**
|
|
96
|
+
* Callback that is called when a drag on this marker finishes. This is usually the point you
|
|
97
|
+
* will want to setState on the marker's coordinate again
|
|
120
98
|
*/
|
|
121
99
|
onDragEnd: _propTypes.default.func
|
|
122
100
|
};
|
|
123
|
-
|
|
124
101
|
class MFMarker extends _react.default.Component {
|
|
125
102
|
constructor(props) {
|
|
126
103
|
super(props);
|
|
127
104
|
this._onPress = this._onPress.bind(this);
|
|
128
105
|
this._ref = this._ref.bind(this);
|
|
129
106
|
}
|
|
130
|
-
|
|
131
107
|
setCoordinate(location) {
|
|
132
108
|
this._runCommand("setCoordinate", [location]);
|
|
133
109
|
}
|
|
134
|
-
|
|
135
110
|
setRotation(rotation) {
|
|
136
111
|
this._runCommand("setRotation", [rotation]);
|
|
137
112
|
}
|
|
138
|
-
|
|
139
113
|
setTitle(title) {
|
|
140
114
|
this._runCommand("setTitle", [title]);
|
|
141
115
|
}
|
|
142
|
-
|
|
143
116
|
setSnippet(snippet) {
|
|
144
117
|
this._runCommand("setSnippet", [snippet]);
|
|
145
118
|
}
|
|
146
|
-
|
|
147
119
|
setDraggable(draggable) {
|
|
148
120
|
this._runCommand("setDraggable", [draggable]);
|
|
149
121
|
}
|
|
150
|
-
|
|
151
122
|
setZIndex(zIndex) {
|
|
152
123
|
this._runCommand("setZIndex", [zIndex]);
|
|
153
124
|
}
|
|
154
|
-
|
|
155
125
|
setVisible(visible) {
|
|
156
126
|
this._runCommand("setVisible", [visible]);
|
|
157
127
|
}
|
|
158
|
-
|
|
159
128
|
setInfoWindowAnchor(anchor) {
|
|
160
129
|
this._runCommand("setInfoWindowAnchor", [anchor]);
|
|
161
130
|
}
|
|
162
|
-
|
|
163
131
|
setElevation(elevation) {
|
|
164
132
|
this._runCommand("setElevation", [elevation]);
|
|
165
133
|
}
|
|
166
|
-
|
|
167
134
|
setUserData(userData) {
|
|
168
135
|
this._runCommand("setUserData", [userData]);
|
|
169
136
|
}
|
|
170
|
-
|
|
171
137
|
_getHandle() {
|
|
172
138
|
return (0, _reactNative.findNodeHandle)(this.marker);
|
|
173
139
|
}
|
|
174
|
-
|
|
175
140
|
_runCommand(name, args) {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
//this.getMapManagerCommand(name)(this._getHandle(), ...args);
|
|
184
|
-
this._mapManagerCommand(name)(this._getHandle(), ...args);
|
|
185
|
-
|
|
186
|
-
break;
|
|
187
|
-
|
|
188
|
-
default:
|
|
189
|
-
break;
|
|
190
|
-
}
|
|
141
|
+
return (0, _ViewManagerCommand.runViewManagerCommand)({
|
|
142
|
+
componentName: 'RMFMarker',
|
|
143
|
+
moduleName: 'RMFMarker',
|
|
144
|
+
commandName: name,
|
|
145
|
+
args,
|
|
146
|
+
reactTag: this._getHandle()
|
|
147
|
+
});
|
|
191
148
|
}
|
|
192
|
-
|
|
193
|
-
_uiManagerCommand(name) {
|
|
194
|
-
const UIManager = _reactNative.NativeModules.UIManager;
|
|
195
|
-
const componentName = "RMFMarker";
|
|
196
|
-
|
|
197
|
-
if (!UIManager.getViewManagerConfig) {
|
|
198
|
-
// RN < 0.58
|
|
199
|
-
return UIManager[componentName].Commands[name];
|
|
200
|
-
} // RN >= 0.58
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
return UIManager.getViewManagerConfig(componentName).Commands[name];
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
_mapManagerCommand(name) {
|
|
207
|
-
return _reactNative.NativeModules[`RMFMarker`][name];
|
|
208
|
-
}
|
|
209
|
-
|
|
210
149
|
_onPress(event) {
|
|
211
150
|
event.stopPropagation();
|
|
212
|
-
|
|
213
151
|
if (this.props.onPress) {
|
|
214
152
|
this.props.onPress(event);
|
|
215
153
|
}
|
|
216
154
|
}
|
|
217
|
-
|
|
218
155
|
_ref(ref) {
|
|
219
156
|
this.marker = ref;
|
|
220
157
|
}
|
|
221
|
-
|
|
222
158
|
render() {
|
|
223
159
|
let icon = {};
|
|
224
|
-
|
|
225
160
|
if (this.props.icon) {
|
|
226
161
|
let uri = _reactNative.Image.resolveAssetSource(this.props.icon.uri) || {
|
|
227
162
|
uri: this.props.icon.uri
|
|
@@ -232,21 +167,18 @@ class MFMarker extends _react.default.Component {
|
|
|
232
167
|
height: this.props.icon.height
|
|
233
168
|
};
|
|
234
169
|
}
|
|
235
|
-
|
|
236
|
-
|
|
170
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(RMFMarker, {
|
|
171
|
+
...this.props,
|
|
237
172
|
icon: icon,
|
|
238
173
|
ref: this._ref,
|
|
239
174
|
style: [styles.marker, this.props.style],
|
|
240
175
|
onPress: this._onPress
|
|
241
|
-
})
|
|
176
|
+
});
|
|
242
177
|
}
|
|
243
|
-
|
|
244
178
|
}
|
|
245
|
-
|
|
246
179
|
exports.MFMarker = MFMarker;
|
|
247
180
|
MFMarker.propTypes = propTypes;
|
|
248
181
|
var RMFMarker = (0, _reactNative.requireNativeComponent)(`RMFMarker`, MFMarker);
|
|
249
|
-
|
|
250
182
|
const styles = _reactNative.StyleSheet.create({
|
|
251
183
|
marker: {
|
|
252
184
|
position: 'absolute'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["viewPropTypes","ViewPropTypes","View","propTypes","coordinate","PropTypes","shape","latitude","number","isRequired","longitude","draggable","bool","anchor","x","y","elevation","rotation","infoWindowAnchor","title","string","snippet","icon","uri","any","width","height","zIndex","visible","userData","object","onPress","func","onPressInfoWindow","onDragStart","onDrag","onDragEnd","MFMarker","React","Component","constructor","props","_onPress","bind","_ref","setCoordinate","location","_runCommand","setRotation","setTitle","setSnippet","setDraggable","setZIndex","setVisible","setInfoWindowAnchor","setElevation","setUserData","_getHandle","findNodeHandle","marker","name","args","Platform","OS","NativeModules","UIManager","dispatchViewManagerCommand","_uiManagerCommand","_mapManagerCommand","componentName","getViewManagerConfig","Commands","event","stopPropagation","ref","render","Image","resolveAssetSource","styles","style","RMFMarker","requireNativeComponent","StyleSheet","create","position"],"sources":["MFMarker.js"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\nimport {ViewPropTypes} from 'deprecated-react-native-prop-types';\nimport {\n requireNativeComponent,\n StyleSheet,\n Platform,\n Image,\n NativeModules,\n findNodeHandle\n} from 'react-native';\n\n// if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)\nconst viewPropTypes = ViewPropTypes || View.propTypes;\n\nconst propTypes = {\n ...viewPropTypes,\n\n /**\n * The coordinate for the marker.\n */\n coordinate: PropTypes.shape({\n latitude: PropTypes.number.isRequired,\n longitude: PropTypes.number.isRequired,\n }).isRequired,\n\n /**\n * Default value is `false`\n */\n draggable: PropTypes.bool,\n\n /**\n * Sets the ground anchor point for the marker.\n */\n anchor: PropTypes.shape({\n x: PropTypes.number.isRequired,\n y: PropTypes.number.isRequired,\n }),\n\n /**\n * \n */\n elevation: PropTypes.number,\n\n /**\n * \n */\n rotation: PropTypes.number,\n\n /**\n * Sets the infor window anchor point for the marker.\n */\n infoWindowAnchor: PropTypes.shape({\n x: PropTypes.number.isRequired,\n y: PropTypes.number.isRequired,\n }),\n\n /**\n * The title of the marker.\n */\n title: PropTypes.string,\n\n /**\n * The snippet of the marker.\n */\n snippet: PropTypes.string,\n\n /**\n * Marker icon to render.\n */\n icon: PropTypes.shape({\n uri: PropTypes.any.isRequired,\n width: PropTypes.number.isRequired,\n height: PropTypes.number.isRequired,\n }),\n\n\n /**\n * zIndex\n */\n zIndex: PropTypes.number,\n\n /**\n * visible\n */\n visible: PropTypes.bool,\n\n /**\n * userData\n */\n userData:PropTypes.object,\n\n /**\n * Callback that is called when the user presses on the marker\n */\n onPress: PropTypes.func,\n\n /**\n * Callback that is called when the user presses on the info window\n */\n onPressInfoWindow: PropTypes.func,\n\n /**\n * Callback that is called when the user initiates a drag on this marker (if it is draggable)\n */\n onDragStart: PropTypes.func,\n\n /**\n * Callback called continuously as the marker is dragged\n */\n onDrag: PropTypes.func,\n\n /**\n * Callback that is called when a drag on this marker finishes. This is usually the point you\n * will want to setState on the marker's coordinate again\n */\n onDragEnd: PropTypes.func,\n};\n\n\nclass MFMarker extends React.Component {\n constructor(props) {\n super(props); \n this._onPress = this._onPress.bind(this)\n this._ref = this._ref.bind(this)\n }\n\n setCoordinate(location) {\n this._runCommand(\"setCoordinate\", [location])\n }\n\n setRotation(rotation) {\n this._runCommand(\"setRotation\", [rotation])\n }\n\n setTitle(title) {\n this._runCommand(\"setTitle\", [title])\n }\n\n setSnippet(snippet) {\n this._runCommand(\"setSnippet\", [snippet])\n }\n\n setDraggable(draggable) {\n this._runCommand(\"setDraggable\", [draggable])\n }\n\n setZIndex(zIndex) {\n this._runCommand(\"setZIndex\", [zIndex])\n }\n\n setVisible(visible) {\n this._runCommand(\"setVisible\", [visible])\n }\n\n setInfoWindowAnchor(anchor) {\n this._runCommand(\"setInfoWindowAnchor\", [anchor])\n }\n\n setElevation(elevation) {\n this._runCommand(\"setElevation\", [elevation])\n }\n\n setUserData(userData) {\n this._runCommand(\"setUserData\", [userData])\n }\n\n _getHandle() {\n return findNodeHandle(this.marker);\n }\n\n\n _runCommand(name, args) {\n switch (Platform.OS) {\n case 'android':\n NativeModules.UIManager.dispatchViewManagerCommand(\n this._getHandle(),\n this._uiManagerCommand(name),\n args\n );\n break;\n \n case 'ios':\n //this.getMapManagerCommand(name)(this._getHandle(), ...args);\n this._mapManagerCommand(name)(this._getHandle(), ...args);\n break;\n \n default:\n break;\n }\n }\n\n _uiManagerCommand(name) {\n const UIManager = NativeModules.UIManager;\n const componentName = \"RMFMarker\";\n \n if (!UIManager.getViewManagerConfig) {\n // RN < 0.58\n return UIManager[componentName].Commands[name];\n }\n \n // RN >= 0.58 \n return UIManager.getViewManagerConfig(componentName).Commands[name];\n }\n \n _mapManagerCommand(name) {\n return NativeModules[`RMFMarker`][name];\n }\n\n _onPress(event) {\n event.stopPropagation();\n if (this.props.onPress) {\n this.props.onPress(event);\n }\n }\n\n _ref(ref) {\n this.marker = ref;\n }\n\n render() {\n let icon = {};\n if (this.props.icon) {\n let uri = Image.resolveAssetSource(this.props.icon.uri) || {uri: this.props.icon.uri};\n icon = {uri: uri.uri, width: this.props.icon.width, height: this.props.icon.height}\n }\n return <RMFMarker\n {...this.props}\n icon={icon}\n ref={this._ref}\n style={[styles.marker, this.props.style]}\n onPress={this._onPress}\n />;\n }\n}\n\nMFMarker.propTypes = propTypes;\nvar RMFMarker = requireNativeComponent(`RMFMarker`, MFMarker);\n\nconst styles = StyleSheet.create({\n marker: {\n position: 'absolute'\n },\n});\n\nexport {MFMarker}\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;AASA;AACA,MAAMA,aAAa,GAAGC,6CAAA,IAAiBC,IAAI,CAACC,SAA5C;AAEA,MAAMA,SAAS,GAAG,EAChB,GAAGH,aADa;;EAGhB;AACF;AACA;EACEI,UAAU,EAAEC,kBAAA,CAAUC,KAAV,CAAgB;IAC1BC,QAAQ,EAAEF,kBAAA,CAAUG,MAAV,CAAiBC,UADD;IAE1BC,SAAS,EAAEL,kBAAA,CAAUG,MAAV,CAAiBC;EAFF,CAAhB,EAGTA,UATa;;EAWhB;AACF;AACA;EACEE,SAAS,EAAEN,kBAAA,CAAUO,IAdL;;EAgBhB;AACF;AACA;EACEC,MAAM,EAAER,kBAAA,CAAUC,KAAV,CAAgB;IACtBQ,CAAC,EAAET,kBAAA,CAAUG,MAAV,CAAiBC,UADE;IAEtBM,CAAC,EAAEV,kBAAA,CAAUG,MAAV,CAAiBC;EAFE,CAAhB,CA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,CAAWnB,IAAf,EAAqB;MACnB,IAAIC,GAAG,GAAGqD,kBAAA,CAAMC,kBAAN,CAAyB,KAAKpC,KAAL,CAAWnB,IAAX,CAAgBC,GAAzC,KAAiD;QAACA,GAAG,EAAE,KAAKkB,KAAL,CAAWnB,IAAX,CAAgBC;MAAtB,CAA3D;MACAD,IAAI,GAAG;QAACC,GAAG,EAAEA,GAAG,CAACA,GAAV;QAAeE,KAAK,EAAE,KAAKgB,KAAL,CAAWnB,IAAX,CAAgBG,KAAtC;QAA6CC,MAAM,EAAE,KAAKe,KAAL,CAAWnB,IAAX,CAAgBI;MAArE,CAAP;IACD;;IACD,oBAAO,6BAAC,SAAD,eACD,KAAKe,KADJ;MAEL,IAAI,EAAEnB,IAFD;MAGL,GAAG,EAAE,KAAKsB,IAHL;MAIL,KAAK,EAAE,CAACkC,MAAM,CAACnB,MAAR,EAAgB,KAAKlB,KAAL,CAAWsC,KAA3B,CAJF;MAKL,OAAO,EAAE,KAAKrC;IALT,GAAP;EAOD;;AAjHgC;;;AAoHvCL,QAAQ,CAAClC,SAAT,GAAqBA,SAArB;AACA,IAAI6E,SAAS,GAAG,IAAAC,mCAAA,EAAwB,WAAxB,EAAoC5C,QAApC,CAAhB;;AAEA,MAAMyC,MAAM,GAAGI,uBAAA,CAAWC,MAAX,CAAkB;EAC/BxB,MAAM,EAAE;IACNyB,QAAQ,EAAE;EADJ;AADuB,CAAlB,CAAf"}
|
|
1
|
+
{"version":3,"names":["_propTypes","_interopRequireDefault","require","_react","_deprecatedReactNativePropTypes","_ViewManagerCommand","_reactNative","_jsxRuntime","e","__esModule","default","viewPropTypes","ViewPropTypes","View","propTypes","coordinate","PropTypes","shape","latitude","number","isRequired","longitude","draggable","bool","anchor","x","y","elevation","rotation","infoWindowAnchor","title","string","snippet","icon","uri","any","width","height","zIndex","visible","userData","object","onPress","func","onPressInfoWindow","onDragStart","onDrag","onDragEnd","MFMarker","React","Component","constructor","props","_onPress","bind","_ref","setCoordinate","location","_runCommand","setRotation","setTitle","setSnippet","setDraggable","setZIndex","setVisible","setInfoWindowAnchor","setElevation","setUserData","_getHandle","findNodeHandle","marker","name","args","runViewManagerCommand","componentName","moduleName","commandName","reactTag","event","stopPropagation","ref","render","Image","resolveAssetSource","jsx","RMFMarker","style","styles","exports","requireNativeComponent","StyleSheet","create","position"],"sourceRoot":"..\\..\\..\\src","sources":["components/MFMarker.js"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,+BAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AAKsB,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEtB;AACA,MAAMG,aAAa,GAAGC,6CAAa,IAAIC,IAAI,CAACC,SAAS;AAErD,MAAMA,SAAS,GAAG;EAChB,GAAGH,aAAa;EAEhB;AACF;AACA;EACEI,UAAU,EAAEC,kBAAS,CAACC,KAAK,CAAC;IAC1BC,QAAQ,EAAEF,kBAAS,CAACG,MAAM,CAACC,UAAU;IACrCC,SAAS,EAAEL,kBAAS,CAACG,MAAM,CAACC;EAC9B,CAAC,CAAC,CAACA,UAAU;EAEb;AACF;AACA;EACEE,SAAS,EAAEN,kBAAS,CAACO,IAAI;EAEzB;AACF;AACA;EACEC,MAAM,EAAER,kBAAS,CAACC,KAAK,CAAC;IACtBQ,CAAC,EAAET,kBAAS,CAACG,MAAM,CAACC,UAAU;IAC9BM,CAAC,EAAEV,kBAAS,CAACG,MAAM,CAACC;EACtB,CAAC,CAAC;EAEF;AACF;AACA;EACEO,SAAS,EAAEX,kBAAS,CAACG,MAAM;EAE3B;AACF;AACA;EACES,QAAQ,EAAEZ,kBAAS,CAACG,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E,IAAI,CAAClB,KAAK,CAACkC,KAAK,CAAE;MACzC5C,OAAO,EAAE,IAAI,CAACW;IAAS,CACxB,CAAC;EACJ;AACN;AAACmC,OAAA,CAAAxC,QAAA,GAAAA,QAAA;AAEDA,QAAQ,CAAClC,SAAS,GAAGA,SAAS;AAC9B,IAAIuE,SAAS,GAAG,IAAAI,mCAAsB,EAAC,WAAW,EAAEzC,QAAQ,CAAC;AAE7D,MAAMuC,MAAM,GAAGG,uBAAU,CAACC,MAAM,CAAC;EAC/BrB,MAAM,EAAE;IACNsB,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -4,182 +4,127 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.MFPOI = void 0;
|
|
7
|
-
|
|
8
7
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
|
|
10
8
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
12
9
|
var _deprecatedReactNativePropTypes = require("deprecated-react-native-prop-types");
|
|
13
|
-
|
|
10
|
+
var _ViewManagerCommand = require("../native/ViewManagerCommand");
|
|
14
11
|
var _reactNative = require("react-native");
|
|
15
|
-
|
|
16
|
-
function _interopRequireDefault(
|
|
17
|
-
|
|
18
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
19
|
-
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
20
14
|
// if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)
|
|
21
15
|
const viewPropTypes = _deprecatedReactNativePropTypes.ViewPropTypes || View.propTypes;
|
|
22
|
-
const propTypes = {
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* The coordinate for the POI.
|
|
16
|
+
const propTypes = {
|
|
17
|
+
...viewPropTypes,
|
|
18
|
+
/**
|
|
19
|
+
* The coordinate for the POI.
|
|
26
20
|
*/
|
|
27
21
|
coordinate: _propTypes.default.shape({
|
|
28
22
|
latitude: _propTypes.default.number.isRequired,
|
|
29
23
|
longitude: _propTypes.default.number.isRequired
|
|
30
24
|
}).isRequired,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
* The title of the POI.
|
|
25
|
+
/**
|
|
26
|
+
* The title of the POI.
|
|
34
27
|
*/
|
|
35
28
|
title: _propTypes.default.string,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
* The color of the title.
|
|
29
|
+
/**
|
|
30
|
+
* The color of the title.
|
|
39
31
|
*/
|
|
40
32
|
titleColor: _deprecatedReactNativePropTypes.ColorPropType,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
* The subtile of the POI.
|
|
33
|
+
/**
|
|
34
|
+
* The subtile of the POI.
|
|
44
35
|
*/
|
|
45
36
|
subtitle: _propTypes.default.string,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
* The type of POI
|
|
37
|
+
/**
|
|
38
|
+
* The type of POI
|
|
49
39
|
*/
|
|
50
40
|
//poiType: PropTypes.oneOf(['cafe', 'atm', 'bank']),
|
|
51
41
|
poiType: _propTypes.default.string,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
* POI icon to render.
|
|
42
|
+
/**
|
|
43
|
+
* POI icon to render.
|
|
55
44
|
*/
|
|
56
45
|
icon: _propTypes.default.shape({
|
|
57
46
|
uri: _propTypes.default.any.isRequired
|
|
58
47
|
}),
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
* zIndex
|
|
48
|
+
/**
|
|
49
|
+
* zIndex
|
|
62
50
|
*/
|
|
63
51
|
zIndex: _propTypes.default.number,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
* visible
|
|
52
|
+
/**
|
|
53
|
+
* visible
|
|
67
54
|
*/
|
|
68
55
|
//TODO
|
|
69
56
|
// visible: PropTypes.bool,
|
|
70
57
|
|
|
71
|
-
/**
|
|
72
|
-
* userData
|
|
58
|
+
/**
|
|
59
|
+
* userData
|
|
73
60
|
*/
|
|
74
61
|
userData: _propTypes.default.object,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
* Callback that is called when the user presses on the POI
|
|
62
|
+
/**
|
|
63
|
+
* Callback that is called when the user presses on the POI
|
|
78
64
|
*/
|
|
79
65
|
onPress: _propTypes.default.func
|
|
80
66
|
};
|
|
81
|
-
|
|
82
67
|
class MFPOI extends _react.default.Component {
|
|
83
68
|
constructor(props) {
|
|
84
69
|
super(props);
|
|
85
70
|
this._onPress = this._onPress.bind(this);
|
|
86
71
|
this._ref = this._ref.bind(this);
|
|
87
72
|
}
|
|
88
|
-
|
|
89
73
|
_onPress(event) {
|
|
90
74
|
event.stopPropagation();
|
|
91
|
-
|
|
92
75
|
if (this.props.onPress) {
|
|
93
76
|
this.props.onPress(event);
|
|
94
77
|
}
|
|
95
78
|
}
|
|
96
|
-
|
|
97
79
|
_ref(ref) {
|
|
98
80
|
this.poi = ref;
|
|
99
81
|
}
|
|
100
|
-
|
|
101
82
|
setCoordinate(coordinate) {
|
|
102
83
|
this._runCommand("setCoordinate", [coordinate]);
|
|
103
84
|
}
|
|
104
|
-
|
|
105
85
|
setTitle(title) {
|
|
106
86
|
this._runCommand("setTitle", [title]);
|
|
107
87
|
}
|
|
108
|
-
|
|
109
88
|
setTitleColor(color) {
|
|
110
89
|
this._runCommand("setTitleColor", [(0, _reactNative.processColor)(color)]);
|
|
111
90
|
}
|
|
112
|
-
|
|
113
91
|
setSubTitle(subtitle) {
|
|
114
92
|
this._runCommand("setSubTitle", [subtitle]);
|
|
115
93
|
}
|
|
116
|
-
|
|
117
94
|
setPoiType(type) {
|
|
118
95
|
this._runCommand("setPoiType", [type]);
|
|
119
96
|
}
|
|
120
|
-
|
|
121
97
|
setIcon(icon) {
|
|
122
98
|
let uri = _reactNative.Image.resolveAssetSource(icon.uri) || {
|
|
123
99
|
uri: icon.uri
|
|
124
100
|
};
|
|
125
|
-
|
|
126
101
|
this._runCommand("setIcon", [{
|
|
127
102
|
uri: uri.uri
|
|
128
103
|
}]);
|
|
129
104
|
}
|
|
130
|
-
|
|
131
105
|
setZIndex(zIndex) {
|
|
132
106
|
this._runCommand("setZIndex", [zIndex]);
|
|
133
|
-
}
|
|
107
|
+
}
|
|
108
|
+
// setVisible(visible) {
|
|
134
109
|
// this._runCommand("setVisible", [visible])
|
|
135
110
|
// }
|
|
136
|
-
|
|
137
|
-
|
|
138
111
|
setUserData(userData) {
|
|
139
112
|
this._runCommand("setUserData", [userData]);
|
|
140
113
|
}
|
|
141
|
-
|
|
142
114
|
_getHandle() {
|
|
143
115
|
return (0, _reactNative.findNodeHandle)(this.poi);
|
|
144
116
|
}
|
|
145
|
-
|
|
146
117
|
_runCommand(name, args) {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
this._mapManagerCommand(name)(this._getHandle(), ...args);
|
|
155
|
-
|
|
156
|
-
break;
|
|
157
|
-
|
|
158
|
-
default:
|
|
159
|
-
break;
|
|
160
|
-
}
|
|
118
|
+
return (0, _ViewManagerCommand.runViewManagerCommand)({
|
|
119
|
+
componentName: 'RMFPOI',
|
|
120
|
+
moduleName: 'RMFPOI',
|
|
121
|
+
commandName: name,
|
|
122
|
+
args,
|
|
123
|
+
reactTag: this._getHandle()
|
|
124
|
+
});
|
|
161
125
|
}
|
|
162
|
-
|
|
163
|
-
_uiManagerCommand(name) {
|
|
164
|
-
const UIManager = _reactNative.NativeModules.UIManager;
|
|
165
|
-
const componentName = "RMFPOI";
|
|
166
|
-
|
|
167
|
-
if (!UIManager.getViewManagerConfig) {
|
|
168
|
-
// RN < 0.58
|
|
169
|
-
return UIManager[componentName].Commands[name];
|
|
170
|
-
} // RN >= 0.58
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
return UIManager.getViewManagerConfig(componentName).Commands[name];
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
_mapManagerCommand(name) {
|
|
177
|
-
return _reactNative.NativeModules[`RMFPOI`][name];
|
|
178
|
-
}
|
|
179
|
-
|
|
180
126
|
render() {
|
|
181
127
|
let icon = {};
|
|
182
|
-
|
|
183
128
|
if (this.props.icon) {
|
|
184
129
|
let uri = _reactNative.Image.resolveAssetSource(this.props.icon.uri) || {
|
|
185
130
|
uri: this.props.icon.uri
|
|
@@ -188,16 +133,14 @@ class MFPOI extends _react.default.Component {
|
|
|
188
133
|
uri: uri.uri
|
|
189
134
|
};
|
|
190
135
|
}
|
|
191
|
-
|
|
192
|
-
|
|
136
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(RMFPOI, {
|
|
137
|
+
...this.props,
|
|
193
138
|
icon: icon,
|
|
194
139
|
ref: this._ref,
|
|
195
140
|
onPress: this._onPress
|
|
196
|
-
})
|
|
141
|
+
});
|
|
197
142
|
}
|
|
198
|
-
|
|
199
143
|
}
|
|
200
|
-
|
|
201
144
|
exports.MFPOI = MFPOI;
|
|
202
145
|
MFPOI.propTypes = propTypes;
|
|
203
146
|
var RMFPOI = (0, _reactNative.requireNativeComponent)(`RMFPOI`, MFPOI);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["viewPropTypes","ViewPropTypes","View","propTypes","coordinate","PropTypes","shape","latitude","number","isRequired","longitude","title","string","titleColor","ColorPropType","subtitle","poiType","icon","uri","any","zIndex","userData","object","onPress","func","MFPOI","React","Component","constructor","props","_onPress","bind","_ref","event","stopPropagation","ref","poi","setCoordinate","_runCommand","setTitle","setTitleColor","color","processColor","setSubTitle","setPoiType","type","setIcon","Image","resolveAssetSource","setZIndex","setUserData","_getHandle","findNodeHandle","name","args","
|
|
1
|
+
{"version":3,"names":["_propTypes","_interopRequireDefault","require","_react","_deprecatedReactNativePropTypes","_ViewManagerCommand","_reactNative","_jsxRuntime","e","__esModule","default","viewPropTypes","ViewPropTypes","View","propTypes","coordinate","PropTypes","shape","latitude","number","isRequired","longitude","title","string","titleColor","ColorPropType","subtitle","poiType","icon","uri","any","zIndex","userData","object","onPress","func","MFPOI","React","Component","constructor","props","_onPress","bind","_ref","event","stopPropagation","ref","poi","setCoordinate","_runCommand","setTitle","setTitleColor","color","processColor","setSubTitle","setPoiType","type","setIcon","Image","resolveAssetSource","setZIndex","setUserData","_getHandle","findNodeHandle","name","args","runViewManagerCommand","componentName","moduleName","commandName","reactTag","render","jsx","RMFPOI","exports","requireNativeComponent"],"sourceRoot":"..\\..\\..\\src","sources":["components/MFPOI.js"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,+BAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AAKsB,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEtB;AACA,MAAMG,aAAa,GAAGC,6CAAa,IAAIC,IAAI,CAACC,SAAS;AAErD,MAAMA,SAAS,GAAG;EAChB,GAAGH,aAAa;EAEd;AACJ;AACA;EACEI,UAAU,EAAEC,kBAAS,CAACC,KAAK,CAAC;IAC1BC,QAAQ,EAAEF,kBAAS,CAACG,MAAM,CAACC,UAAU;IACrCC,SAAS,EAAEL,kBAAS,CAACG,MAAM,CAACC;EAC9B,CAAC,CAAC,CAACA,UAAU;EAEb;AACF;AACA;EACEE,KAAK,EAAEN,kBAAS,CAACO,MAAM;EAEvB;AACF;AACA;EACEC,UAAU,EAAEC,6CAAa;EAEzB;AACF;AACA;EACEC,QAAQ,EAAEV,kBAAS,CAACO,MAAM;EAE1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