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
|
@@ -1,213 +1,158 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { ViewPropTypes } from 'deprecated-react-native-prop-types';
|
|
6
|
-
import {
|
|
6
|
+
import { runViewManagerCommand } from '../native/ViewManagerCommand';
|
|
7
|
+
import { requireNativeComponent, StyleSheet, Image, findNodeHandle } from 'react-native';
|
|
7
8
|
|
|
9
|
+
// if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
11
|
const viewPropTypes = ViewPropTypes || View.propTypes;
|
|
9
|
-
const propTypes = {
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* The coordinate for the marker.
|
|
12
|
+
const propTypes = {
|
|
13
|
+
...viewPropTypes,
|
|
14
|
+
/**
|
|
15
|
+
* The coordinate for the marker.
|
|
13
16
|
*/
|
|
14
17
|
coordinate: PropTypes.shape({
|
|
15
18
|
latitude: PropTypes.number.isRequired,
|
|
16
19
|
longitude: PropTypes.number.isRequired
|
|
17
20
|
}).isRequired,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
* Default value is `false`
|
|
21
|
+
/**
|
|
22
|
+
* Default value is `false`
|
|
21
23
|
*/
|
|
22
24
|
draggable: PropTypes.bool,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
* Sets the ground anchor point for the marker.
|
|
25
|
+
/**
|
|
26
|
+
* Sets the ground anchor point for the marker.
|
|
26
27
|
*/
|
|
27
28
|
anchor: PropTypes.shape({
|
|
28
29
|
x: PropTypes.number.isRequired,
|
|
29
30
|
y: PropTypes.number.isRequired
|
|
30
31
|
}),
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
*
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
34
|
*/
|
|
35
35
|
elevation: PropTypes.number,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
*
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
39
38
|
*/
|
|
40
39
|
rotation: PropTypes.number,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
* Sets the infor window anchor point for the marker.
|
|
40
|
+
/**
|
|
41
|
+
* Sets the infor window anchor point for the marker.
|
|
44
42
|
*/
|
|
45
43
|
infoWindowAnchor: PropTypes.shape({
|
|
46
44
|
x: PropTypes.number.isRequired,
|
|
47
45
|
y: PropTypes.number.isRequired
|
|
48
46
|
}),
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
* The title of the marker.
|
|
47
|
+
/**
|
|
48
|
+
* The title of the marker.
|
|
52
49
|
*/
|
|
53
50
|
title: PropTypes.string,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
* The snippet of the marker.
|
|
51
|
+
/**
|
|
52
|
+
* The snippet of the marker.
|
|
57
53
|
*/
|
|
58
54
|
snippet: PropTypes.string,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
* Marker icon to render.
|
|
55
|
+
/**
|
|
56
|
+
* Marker icon to render.
|
|
62
57
|
*/
|
|
63
58
|
icon: PropTypes.shape({
|
|
64
59
|
uri: PropTypes.any.isRequired,
|
|
65
60
|
width: PropTypes.number.isRequired,
|
|
66
61
|
height: PropTypes.number.isRequired
|
|
67
62
|
}),
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
* zIndex
|
|
63
|
+
/**
|
|
64
|
+
* zIndex
|
|
71
65
|
*/
|
|
72
66
|
zIndex: PropTypes.number,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
* visible
|
|
67
|
+
/**
|
|
68
|
+
* visible
|
|
76
69
|
*/
|
|
77
70
|
visible: PropTypes.bool,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
* userData
|
|
71
|
+
/**
|
|
72
|
+
* userData
|
|
81
73
|
*/
|
|
82
74
|
userData: PropTypes.object,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
* Callback that is called when the user presses on the marker
|
|
75
|
+
/**
|
|
76
|
+
* Callback that is called when the user presses on the marker
|
|
86
77
|
*/
|
|
87
78
|
onPress: PropTypes.func,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
* Callback that is called when the user presses on the info window
|
|
79
|
+
/**
|
|
80
|
+
* Callback that is called when the user presses on the info window
|
|
91
81
|
*/
|
|
92
82
|
onPressInfoWindow: PropTypes.func,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
* Callback that is called when the user initiates a drag on this marker (if it is draggable)
|
|
83
|
+
/**
|
|
84
|
+
* Callback that is called when the user initiates a drag on this marker (if it is draggable)
|
|
96
85
|
*/
|
|
97
86
|
onDragStart: PropTypes.func,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
* Callback called continuously as the marker is dragged
|
|
87
|
+
/**
|
|
88
|
+
* Callback called continuously as the marker is dragged
|
|
101
89
|
*/
|
|
102
90
|
onDrag: PropTypes.func,
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
*
|
|
106
|
-
* will want to setState on the marker's coordinate again
|
|
91
|
+
/**
|
|
92
|
+
* Callback that is called when a drag on this marker finishes. This is usually the point you
|
|
93
|
+
* will want to setState on the marker's coordinate again
|
|
107
94
|
*/
|
|
108
95
|
onDragEnd: PropTypes.func
|
|
109
96
|
};
|
|
110
|
-
|
|
111
97
|
class MFMarker extends React.Component {
|
|
112
98
|
constructor(props) {
|
|
113
99
|
super(props);
|
|
114
100
|
this._onPress = this._onPress.bind(this);
|
|
115
101
|
this._ref = this._ref.bind(this);
|
|
116
102
|
}
|
|
117
|
-
|
|
118
103
|
setCoordinate(location) {
|
|
119
104
|
this._runCommand("setCoordinate", [location]);
|
|
120
105
|
}
|
|
121
|
-
|
|
122
106
|
setRotation(rotation) {
|
|
123
107
|
this._runCommand("setRotation", [rotation]);
|
|
124
108
|
}
|
|
125
|
-
|
|
126
109
|
setTitle(title) {
|
|
127
110
|
this._runCommand("setTitle", [title]);
|
|
128
111
|
}
|
|
129
|
-
|
|
130
112
|
setSnippet(snippet) {
|
|
131
113
|
this._runCommand("setSnippet", [snippet]);
|
|
132
114
|
}
|
|
133
|
-
|
|
134
115
|
setDraggable(draggable) {
|
|
135
116
|
this._runCommand("setDraggable", [draggable]);
|
|
136
117
|
}
|
|
137
|
-
|
|
138
118
|
setZIndex(zIndex) {
|
|
139
119
|
this._runCommand("setZIndex", [zIndex]);
|
|
140
120
|
}
|
|
141
|
-
|
|
142
121
|
setVisible(visible) {
|
|
143
122
|
this._runCommand("setVisible", [visible]);
|
|
144
123
|
}
|
|
145
|
-
|
|
146
124
|
setInfoWindowAnchor(anchor) {
|
|
147
125
|
this._runCommand("setInfoWindowAnchor", [anchor]);
|
|
148
126
|
}
|
|
149
|
-
|
|
150
127
|
setElevation(elevation) {
|
|
151
128
|
this._runCommand("setElevation", [elevation]);
|
|
152
129
|
}
|
|
153
|
-
|
|
154
130
|
setUserData(userData) {
|
|
155
131
|
this._runCommand("setUserData", [userData]);
|
|
156
132
|
}
|
|
157
|
-
|
|
158
133
|
_getHandle() {
|
|
159
134
|
return findNodeHandle(this.marker);
|
|
160
135
|
}
|
|
161
|
-
|
|
162
136
|
_runCommand(name, args) {
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
this._mapManagerCommand(name)(this._getHandle(), ...args);
|
|
171
|
-
|
|
172
|
-
break;
|
|
173
|
-
|
|
174
|
-
default:
|
|
175
|
-
break;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
_uiManagerCommand(name) {
|
|
180
|
-
const UIManager = NativeModules.UIManager;
|
|
181
|
-
const componentName = "RMFMarker";
|
|
182
|
-
|
|
183
|
-
if (!UIManager.getViewManagerConfig) {
|
|
184
|
-
// RN < 0.58
|
|
185
|
-
return UIManager[componentName].Commands[name];
|
|
186
|
-
} // RN >= 0.58
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
return UIManager.getViewManagerConfig(componentName).Commands[name];
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
_mapManagerCommand(name) {
|
|
193
|
-
return NativeModules[`RMFMarker`][name];
|
|
137
|
+
return runViewManagerCommand({
|
|
138
|
+
componentName: 'RMFMarker',
|
|
139
|
+
moduleName: 'RMFMarker',
|
|
140
|
+
commandName: name,
|
|
141
|
+
args,
|
|
142
|
+
reactTag: this._getHandle()
|
|
143
|
+
});
|
|
194
144
|
}
|
|
195
|
-
|
|
196
145
|
_onPress(event) {
|
|
197
146
|
event.stopPropagation();
|
|
198
|
-
|
|
199
147
|
if (this.props.onPress) {
|
|
200
148
|
this.props.onPress(event);
|
|
201
149
|
}
|
|
202
150
|
}
|
|
203
|
-
|
|
204
151
|
_ref(ref) {
|
|
205
152
|
this.marker = ref;
|
|
206
153
|
}
|
|
207
|
-
|
|
208
154
|
render() {
|
|
209
155
|
let icon = {};
|
|
210
|
-
|
|
211
156
|
if (this.props.icon) {
|
|
212
157
|
let uri = Image.resolveAssetSource(this.props.icon.uri) || {
|
|
213
158
|
uri: this.props.icon.uri
|
|
@@ -218,17 +163,15 @@ class MFMarker extends React.Component {
|
|
|
218
163
|
height: this.props.icon.height
|
|
219
164
|
};
|
|
220
165
|
}
|
|
221
|
-
|
|
222
|
-
|
|
166
|
+
return /*#__PURE__*/_jsx(RMFMarker, {
|
|
167
|
+
...this.props,
|
|
223
168
|
icon: icon,
|
|
224
169
|
ref: this._ref,
|
|
225
170
|
style: [styles.marker, this.props.style],
|
|
226
171
|
onPress: this._onPress
|
|
227
|
-
})
|
|
172
|
+
});
|
|
228
173
|
}
|
|
229
|
-
|
|
230
174
|
}
|
|
231
|
-
|
|
232
175
|
MFMarker.propTypes = propTypes;
|
|
233
176
|
var RMFMarker = requireNativeComponent(`RMFMarker`, MFMarker);
|
|
234
177
|
const styles = StyleSheet.create({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["PropTypes","React","ViewPropTypes","requireNativeComponent","StyleSheet","Platform","Image","NativeModules","findNodeHandle","viewPropTypes","View","propTypes","coordinate","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","Component","constructor","props","_onPress","bind","_ref","setCoordinate","location","_runCommand","setRotation","setTitle","setSnippet","setDraggable","setZIndex","setVisible","setInfoWindowAnchor","setElevation","setUserData","_getHandle","marker","name","args","OS","UIManager","dispatchViewManagerCommand","_uiManagerCommand","_mapManagerCommand","componentName","getViewManagerConfig","Commands","event","stopPropagation","ref","render","resolveAssetSource","styles","style","RMFMarker","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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8B,MAAM,CAAChB,MAAR,EAAgB,KAAKjB,KAAL,CAAWkC,KAA3B,CAJF;MAKL,OAAO,EAAE,KAAKjC;IALT,GAAP;EAOD;;AAjHgC;;AAoHvCJ,QAAQ,CAACjC,SAAT,GAAqBA,SAArB;AACA,IAAIuE,SAAS,GAAG/E,sBAAsB,CAAE,WAAF,EAAcyC,QAAd,CAAtC;AAEA,MAAMoC,MAAM,GAAG5E,UAAU,CAAC+E,MAAX,CAAkB;EAC/BnB,MAAM,EAAE;IACNoB,QAAQ,EAAE;EADJ;AADuB,CAAlB,CAAf;AAMA,SAAQxC,QAAR"}
|
|
1
|
+
{"version":3,"names":["PropTypes","React","ViewPropTypes","runViewManagerCommand","requireNativeComponent","StyleSheet","Image","findNodeHandle","jsx","_jsx","viewPropTypes","View","propTypes","coordinate","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","Component","constructor","props","_onPress","bind","_ref","setCoordinate","location","_runCommand","setRotation","setTitle","setSnippet","setDraggable","setZIndex","setVisible","setInfoWindowAnchor","setElevation","setUserData","_getHandle","marker","name","args","componentName","moduleName","commandName","reactTag","event","stopPropagation","ref","render","resolveAssetSource","RMFMarker","style","styles","create","position"],"sourceRoot":"..\\..\\..\\src","sources":["components/MFMarker.js"],"mappings":";;AAAA,OAAOA,SAAS,MAAM,YAAY;AAClC,OAAOC,KAAK,MAAM,OAAO;AACzB,SAAQC,aAAa,QAAO,oCAAoC;AAChE,SAAQC,qBAAqB,QAAO,8BAA8B;AAClE,SACEC,sBAAsB,EACtBC,UAAU,EACVC,KAAK,EACLC,cAAc,QACT,cAAc;;AAErB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AACA,MAAMC,aAAa,GAAGR,aAAa,IAAIS,IAAI,CAACC,SAAS;AAErD,MAAMA,SAAS,GAAG;EAChB,GA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AkB,CAAC,IAAI,CAAC5B,KAAK,CAAClB,IAAI,CAACC,GAAG,CAAC,IAAI;QAACA,GAAG,EAAE,IAAI,CAACiB,KAAK,CAAClB,IAAI,CAACC;MAAG,CAAC;MACrFD,IAAI,GAAG;QAACC,GAAG,EAAEA,GAAG,CAACA,GAAG;QAAEE,KAAK,EAAE,IAAI,CAACe,KAAK,CAAClB,IAAI,CAACG,KAAK;QAAEC,MAAM,EAAE,IAAI,CAACc,KAAK,CAAClB,IAAI,CAACI;MAAM,CAAC;IACrF;IACA,oBAAOzB,IAAA,CAACoE,SAAS;MAAA,GACX,IAAI,CAAC7B,KAAK;MACdlB,IAAI,EAAEA,IAAK;MACX4C,GAAG,EAAE,IAAI,CAACvB,IAAK;MACf2B,KAAK,EAAE,CAACC,MAAM,CAACd,MAAM,EAAE,IAAI,CAACjB,KAAK,CAAC8B,KAAK,CAAE;MACzCvC,OAAO,EAAE,IAAI,CAACU;IAAS,CACxB,CAAC;EACJ;AACN;AAEAJ,QAAQ,CAACjC,SAAS,GAAGA,SAAS;AAC9B,IAAIiE,SAAS,GAAGzE,sBAAsB,CAAC,WAAW,EAAEyC,QAAQ,CAAC;AAE7D,MAAMkC,MAAM,GAAG1E,UAAU,CAAC2E,MAAM,CAAC;EAC/Bf,MAAM,EAAE;IACNgB,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC;AAEF,SAAQpC,QAAQ","ignoreList":[]}
|
|
@@ -1,171 +1,126 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { ViewPropTypes, ColorPropType } from 'deprecated-react-native-prop-types';
|
|
6
|
-
import {
|
|
6
|
+
import { runViewManagerCommand } from '../native/ViewManagerCommand';
|
|
7
|
+
import { requireNativeComponent, Image, findNodeHandle, processColor } from 'react-native';
|
|
7
8
|
|
|
9
|
+
// if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
11
|
const viewPropTypes = ViewPropTypes || View.propTypes;
|
|
9
|
-
const propTypes = {
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* The coordinate for the POI.
|
|
12
|
+
const propTypes = {
|
|
13
|
+
...viewPropTypes,
|
|
14
|
+
/**
|
|
15
|
+
* The coordinate for the POI.
|
|
13
16
|
*/
|
|
14
17
|
coordinate: PropTypes.shape({
|
|
15
18
|
latitude: PropTypes.number.isRequired,
|
|
16
19
|
longitude: PropTypes.number.isRequired
|
|
17
20
|
}).isRequired,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
* The title of the POI.
|
|
21
|
+
/**
|
|
22
|
+
* The title of the POI.
|
|
21
23
|
*/
|
|
22
24
|
title: PropTypes.string,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
* The color of the title.
|
|
25
|
+
/**
|
|
26
|
+
* The color of the title.
|
|
26
27
|
*/
|
|
27
28
|
titleColor: ColorPropType,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
* The subtile of the POI.
|
|
29
|
+
/**
|
|
30
|
+
* The subtile of the POI.
|
|
31
31
|
*/
|
|
32
32
|
subtitle: PropTypes.string,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
* The type of POI
|
|
33
|
+
/**
|
|
34
|
+
* The type of POI
|
|
36
35
|
*/
|
|
37
36
|
//poiType: PropTypes.oneOf(['cafe', 'atm', 'bank']),
|
|
38
37
|
poiType: PropTypes.string,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
* POI icon to render.
|
|
38
|
+
/**
|
|
39
|
+
* POI icon to render.
|
|
42
40
|
*/
|
|
43
41
|
icon: PropTypes.shape({
|
|
44
42
|
uri: PropTypes.any.isRequired
|
|
45
43
|
}),
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
* zIndex
|
|
44
|
+
/**
|
|
45
|
+
* zIndex
|
|
49
46
|
*/
|
|
50
47
|
zIndex: PropTypes.number,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
* visible
|
|
48
|
+
/**
|
|
49
|
+
* visible
|
|
54
50
|
*/
|
|
55
51
|
//TODO
|
|
56
52
|
// visible: PropTypes.bool,
|
|
57
53
|
|
|
58
|
-
/**
|
|
59
|
-
* userData
|
|
54
|
+
/**
|
|
55
|
+
* userData
|
|
60
56
|
*/
|
|
61
57
|
userData: PropTypes.object,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
* Callback that is called when the user presses on the POI
|
|
58
|
+
/**
|
|
59
|
+
* Callback that is called when the user presses on the POI
|
|
65
60
|
*/
|
|
66
61
|
onPress: PropTypes.func
|
|
67
62
|
};
|
|
68
|
-
|
|
69
63
|
class MFPOI extends React.Component {
|
|
70
64
|
constructor(props) {
|
|
71
65
|
super(props);
|
|
72
66
|
this._onPress = this._onPress.bind(this);
|
|
73
67
|
this._ref = this._ref.bind(this);
|
|
74
68
|
}
|
|
75
|
-
|
|
76
69
|
_onPress(event) {
|
|
77
70
|
event.stopPropagation();
|
|
78
|
-
|
|
79
71
|
if (this.props.onPress) {
|
|
80
72
|
this.props.onPress(event);
|
|
81
73
|
}
|
|
82
74
|
}
|
|
83
|
-
|
|
84
75
|
_ref(ref) {
|
|
85
76
|
this.poi = ref;
|
|
86
77
|
}
|
|
87
|
-
|
|
88
78
|
setCoordinate(coordinate) {
|
|
89
79
|
this._runCommand("setCoordinate", [coordinate]);
|
|
90
80
|
}
|
|
91
|
-
|
|
92
81
|
setTitle(title) {
|
|
93
82
|
this._runCommand("setTitle", [title]);
|
|
94
83
|
}
|
|
95
|
-
|
|
96
84
|
setTitleColor(color) {
|
|
97
85
|
this._runCommand("setTitleColor", [processColor(color)]);
|
|
98
86
|
}
|
|
99
|
-
|
|
100
87
|
setSubTitle(subtitle) {
|
|
101
88
|
this._runCommand("setSubTitle", [subtitle]);
|
|
102
89
|
}
|
|
103
|
-
|
|
104
90
|
setPoiType(type) {
|
|
105
91
|
this._runCommand("setPoiType", [type]);
|
|
106
92
|
}
|
|
107
|
-
|
|
108
93
|
setIcon(icon) {
|
|
109
94
|
let uri = Image.resolveAssetSource(icon.uri) || {
|
|
110
95
|
uri: icon.uri
|
|
111
96
|
};
|
|
112
|
-
|
|
113
97
|
this._runCommand("setIcon", [{
|
|
114
98
|
uri: uri.uri
|
|
115
99
|
}]);
|
|
116
100
|
}
|
|
117
|
-
|
|
118
101
|
setZIndex(zIndex) {
|
|
119
102
|
this._runCommand("setZIndex", [zIndex]);
|
|
120
|
-
}
|
|
103
|
+
}
|
|
104
|
+
// setVisible(visible) {
|
|
121
105
|
// this._runCommand("setVisible", [visible])
|
|
122
106
|
// }
|
|
123
|
-
|
|
124
|
-
|
|
125
107
|
setUserData(userData) {
|
|
126
108
|
this._runCommand("setUserData", [userData]);
|
|
127
109
|
}
|
|
128
|
-
|
|
129
110
|
_getHandle() {
|
|
130
111
|
return findNodeHandle(this.poi);
|
|
131
112
|
}
|
|
132
|
-
|
|
133
113
|
_runCommand(name, args) {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
break;
|
|
143
|
-
|
|
144
|
-
default:
|
|
145
|
-
break;
|
|
146
|
-
}
|
|
114
|
+
return runViewManagerCommand({
|
|
115
|
+
componentName: 'RMFPOI',
|
|
116
|
+
moduleName: 'RMFPOI',
|
|
117
|
+
commandName: name,
|
|
118
|
+
args,
|
|
119
|
+
reactTag: this._getHandle()
|
|
120
|
+
});
|
|
147
121
|
}
|
|
148
|
-
|
|
149
|
-
_uiManagerCommand(name) {
|
|
150
|
-
const UIManager = NativeModules.UIManager;
|
|
151
|
-
const componentName = "RMFPOI";
|
|
152
|
-
|
|
153
|
-
if (!UIManager.getViewManagerConfig) {
|
|
154
|
-
// RN < 0.58
|
|
155
|
-
return UIManager[componentName].Commands[name];
|
|
156
|
-
} // RN >= 0.58
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
return UIManager.getViewManagerConfig(componentName).Commands[name];
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
_mapManagerCommand(name) {
|
|
163
|
-
return NativeModules[`RMFPOI`][name];
|
|
164
|
-
}
|
|
165
|
-
|
|
166
122
|
render() {
|
|
167
123
|
let icon = {};
|
|
168
|
-
|
|
169
124
|
if (this.props.icon) {
|
|
170
125
|
let uri = Image.resolveAssetSource(this.props.icon.uri) || {
|
|
171
126
|
uri: this.props.icon.uri
|
|
@@ -174,16 +129,14 @@ class MFPOI extends React.Component {
|
|
|
174
129
|
uri: uri.uri
|
|
175
130
|
};
|
|
176
131
|
}
|
|
177
|
-
|
|
178
|
-
|
|
132
|
+
return /*#__PURE__*/_jsx(RMFPOI, {
|
|
133
|
+
...this.props,
|
|
179
134
|
icon: icon,
|
|
180
135
|
ref: this._ref,
|
|
181
136
|
onPress: this._onPress
|
|
182
|
-
})
|
|
137
|
+
});
|
|
183
138
|
}
|
|
184
|
-
|
|
185
139
|
}
|
|
186
|
-
|
|
187
140
|
MFPOI.propTypes = propTypes;
|
|
188
141
|
var RMFPOI = requireNativeComponent(`RMFPOI`, MFPOI);
|
|
189
142
|
export { MFPOI };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["PropTypes","React","ViewPropTypes","ColorPropType","
|
|
1
|
+
{"version":3,"names":["PropTypes","React","ViewPropTypes","ColorPropType","runViewManagerCommand","requireNativeComponent","Image","findNodeHandle","processColor","jsx","_jsx","viewPropTypes","View","propTypes","coordinate","shape","latitude","number","isRequired","longitude","title","string","titleColor","subtitle","poiType","icon","uri","any","zIndex","userData","object","onPress","func","MFPOI","Component","constructor","props","_onPress","bind","_ref","event","stopPropagation","ref","poi","setCoordinate","_runCommand","setTitle","setTitleColor","color","setSubTitle","setPoiType","type","setIcon","resolveAssetSource","setZIndex","setUserData","_getHandle","name","args","componentName","moduleName","commandName","reactTag","render","RMFPOI"],"sourceRoot":"..\\..\\..\\src","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