expo-gaode-map 0.1.4 → 0.1.6
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/android/src/main/java/expo/modules/gaodemap/ExpoGaodeMapModule.kt +5 -1
- package/android/src/main/java/expo/modules/gaodemap/ExpoGaodeMapView.kt +4 -4
- package/android/src/main/java/expo/modules/gaodemap/managers/OverlayManager.kt +34 -2
- package/android/src/main/java/expo/modules/gaodemap/overlays/PolylineView.kt +54 -3
- package/build/components/overlays/Polyline.d.ts.map +1 -1
- package/build/components/overlays/Polyline.js +12 -14
- package/build/components/overlays/Polyline.js.map +1 -1
- package/build/types/map-view.types.d.ts +2 -2
- package/build/types/map-view.types.d.ts.map +1 -1
- package/build/types/map-view.types.js.map +1 -1
- package/build/types/overlays.types.d.ts +5 -0
- package/build/types/overlays.types.d.ts.map +1 -1
- package/build/types/overlays.types.js.map +1 -1
- package/docs/API.md +2 -2
- package/docs/EXAMPLES.md +67 -6
- package/ios/ExpoGaodeMapModule.swift +13 -2
- package/ios/ExpoGaodeMapView.swift +2 -2
- package/ios/managers/OverlayManager.swift +89 -23
- package/ios/overlays/PolylineView.swift +63 -1
- package/ios/{ColorParser.swift → utils/ColorParser.swift} +13 -7
- package/package.json +1 -1
- package/src/components/overlays/Polyline.tsx +13 -16
- package/src/types/map-view.types.ts +2 -2
- package/src/types/overlays.types.ts +6 -0
- package/ios/UIColorExtension.swift +0 -11
- package/lib/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/lib/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
- package/lib/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
- package/lib/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/lib/android/.gradle/8.9/gc.properties +0 -0
- package/lib/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/lib/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/lib/android/.gradle/vcs-1/gc.properties +0 -0
- package/lib/android/build/.transforms/7df4812a1bb640a0eb92904b45f433ca/results.bin +0 -1
- package/lib/android/build/.transforms/7df4812a1bb640a0eb92904b45f433ca/transformed/classes/classes_dex/classes.dex +0 -0
- package/lib/android/build/.transforms/d6c91342f3c8bae4ed26783459def84b/results.bin +0 -1
- package/lib/android/build/.transforms/d6c91342f3c8bae4ed26783459def84b/transformed/debug/debug_dex/qiuxiang/amap3d/AMap3DPackage.dex +0 -0
- package/lib/android/build/.transforms/d6c91342f3c8bae4ed26783459def84b/transformed/debug/debug_dex/qiuxiang/amap3d/BuildConfig.dex +0 -0
- package/lib/android/build/.transforms/d6c91342f3c8bae4ed26783459def84b/transformed/debug/debug_dex/qiuxiang/amap3d/UtilsKt$fetchImage$request$1$1.dex +0 -0
- package/lib/android/build/.transforms/d6c91342f3c8bae4ed26783459def84b/transformed/debug/debug_dex/qiuxiang/amap3d/UtilsKt.dex +0 -0
- package/lib/android/build/.transforms/d6c91342f3c8bae4ed26783459def84b/transformed/debug/debug_dex/qiuxiang/amap3d/map_view/Circle.dex +0 -0
- package/lib/android/build/.transforms/d6c91342f3c8bae4ed26783459def84b/transformed/debug/debug_dex/qiuxiang/amap3d/map_view/CircleManager.dex +0 -0
- package/lib/android/build/.transforms/d6c91342f3c8bae4ed26783459def84b/transformed/debug/debug_dex/qiuxiang/amap3d/map_view/HeatMap.dex +0 -0
- package/lib/android/build/.transforms/d6c91342f3c8bae4ed26783459def84b/transformed/debug/debug_dex/qiuxiang/amap3d/map_view/HeatMapManager.dex +0 -0
- package/lib/android/build/.transforms/d6c91342f3c8bae4ed26783459def84b/transformed/debug/debug_dex/qiuxiang/amap3d/map_view/MapView$7.dex +0 -0
- package/lib/android/build/.transforms/d6c91342f3c8bae4ed26783459def84b/transformed/debug/debug_dex/qiuxiang/amap3d/map_view/MapView$8.dex +0 -0
- package/lib/android/build/.transforms/d6c91342f3c8bae4ed26783459def84b/transformed/debug/debug_dex/qiuxiang/amap3d/map_view/MapView$animateCallback$1.dex +0 -0
- package/lib/android/build/.transforms/d6c91342f3c8bae4ed26783459def84b/transformed/debug/debug_dex/qiuxiang/amap3d/map_view/MapView.dex +0 -0
- package/lib/android/build/.transforms/d6c91342f3c8bae4ed26783459def84b/transformed/debug/debug_dex/qiuxiang/amap3d/map_view/MapViewManager$commands$1.dex +0 -0
- package/lib/android/build/.transforms/d6c91342f3c8bae4ed26783459def84b/transformed/debug/debug_dex/qiuxiang/amap3d/map_view/MapViewManager$commands$2.dex +0 -0
- package/lib/android/build/.transforms/d6c91342f3c8bae4ed26783459def84b/transformed/debug/debug_dex/qiuxiang/amap3d/map_view/MapViewManager.dex +0 -0
- package/lib/android/build/.transforms/d6c91342f3c8bae4ed26783459def84b/transformed/debug/debug_dex/qiuxiang/amap3d/map_view/Marker$setIcon$1.dex +0 -0
- package/lib/android/build/.transforms/d6c91342f3c8bae4ed26783459def84b/transformed/debug/debug_dex/qiuxiang/amap3d/map_view/Marker.dex +0 -0
- package/lib/android/build/.transforms/d6c91342f3c8bae4ed26783459def84b/transformed/debug/debug_dex/qiuxiang/amap3d/map_view/MarkerManager$Companion.dex +0 -0
- package/lib/android/build/.transforms/d6c91342f3c8bae4ed26783459def84b/transformed/debug/debug_dex/qiuxiang/amap3d/map_view/MarkerManager.dex +0 -0
- package/lib/android/build/.transforms/d6c91342f3c8bae4ed26783459def84b/transformed/debug/debug_dex/qiuxiang/amap3d/map_view/MultiPoint$setIcon$1.dex +0 -0
- package/lib/android/build/.transforms/d6c91342f3c8bae4ed26783459def84b/transformed/debug/debug_dex/qiuxiang/amap3d/map_view/MultiPoint.dex +0 -0
- package/lib/android/build/.transforms/d6c91342f3c8bae4ed26783459def84b/transformed/debug/debug_dex/qiuxiang/amap3d/map_view/MultiPointManager.dex +0 -0
- package/lib/android/build/.transforms/d6c91342f3c8bae4ed26783459def84b/transformed/debug/debug_dex/qiuxiang/amap3d/map_view/Overlay.dex +0 -0
- package/lib/android/build/.transforms/d6c91342f3c8bae4ed26783459def84b/transformed/debug/debug_dex/qiuxiang/amap3d/map_view/Polygon.dex +0 -0
- package/lib/android/build/.transforms/d6c91342f3c8bae4ed26783459def84b/transformed/debug/debug_dex/qiuxiang/amap3d/map_view/PolygonManager.dex +0 -0
- package/lib/android/build/.transforms/d6c91342f3c8bae4ed26783459def84b/transformed/debug/debug_dex/qiuxiang/amap3d/map_view/Polyline.dex +0 -0
- package/lib/android/build/.transforms/d6c91342f3c8bae4ed26783459def84b/transformed/debug/debug_dex/qiuxiang/amap3d/map_view/PolylineManager.dex +0 -0
- package/lib/android/build/.transforms/d6c91342f3c8bae4ed26783459def84b/transformed/debug/debug_dex/qiuxiang/amap3d/modules/SdkModule.dex +0 -0
- package/lib/android/build/.transforms/d6c91342f3c8bae4ed26783459def84b/transformed/debug/desugar_graph.bin +0 -0
- package/lib/android/build/generated/source/buildConfig/debug/qiuxiang/amap3d/BuildConfig.java +0 -10
- package/lib/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml +0 -14
- package/lib/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output-metadata.json +0 -18
- package/lib/android/build/intermediates/aar_metadata/debug/aar-metadata.properties +0 -6
- package/lib/android/build/intermediates/annotation_processor_list/debug/annotationProcessors.json +0 -1
- package/lib/android/build/intermediates/compile_library_classes_jar/debug/classes.jar +0 -0
- package/lib/android/build/intermediates/compile_r_class_jar/debug/R.jar +0 -0
- package/lib/android/build/intermediates/compile_symbol_list/debug/R.txt +0 -1
- package/lib/android/build/intermediates/compiled_local_resources/debug/out/drawable-hdpi-v4_positio_icon.png.flat +0 -0
- package/lib/android/build/intermediates/compiled_local_resources/debug/out/drawable-mdpi-v4_positio_icon.png.flat +0 -0
- package/lib/android/build/intermediates/compiled_local_resources/debug/out/drawable-xhdpi-v4_positio_icon.png.flat +0 -0
- package/lib/android/build/intermediates/compiled_local_resources/debug/out/drawable-xxhdpi-v4_positio_icon.png.flat +0 -0
- package/lib/android/build/intermediates/compiled_local_resources/debug/out/drawable-xxxhdpi-v4_positio_icon.png.flat +0 -0
- package/lib/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +0 -6
- package/lib/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +0 -2
- package/lib/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
- package/lib/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
- package/lib/android/build/intermediates/incremental/packageDebugAssets/merger.xml +0 -2
- package/lib/android/build/intermediates/java_res/debug/out/META-INF/react-native-amap3d_debug.kotlin_module +0 -0
- package/lib/android/build/intermediates/javac/debug/classes/qiuxiang/amap3d/BuildConfig.class +0 -0
- package/lib/android/build/intermediates/local_only_symbol_list/debug/R-def.txt +0 -3
- package/lib/android/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt +0 -26
- package/lib/android/build/intermediates/merged_manifest/debug/AndroidManifest.xml +0 -14
- package/lib/android/build/intermediates/navigation_json/debug/navigation.json +0 -1
- package/lib/android/build/intermediates/packaged_res/debug/drawable-hdpi-v4/positio_icon.png +0 -0
- package/lib/android/build/intermediates/packaged_res/debug/drawable-mdpi-v4/positio_icon.png +0 -0
- package/lib/android/build/intermediates/packaged_res/debug/drawable-xhdpi-v4/positio_icon.png +0 -0
- package/lib/android/build/intermediates/packaged_res/debug/drawable-xxhdpi-v4/positio_icon.png +0 -0
- package/lib/android/build/intermediates/packaged_res/debug/drawable-xxxhdpi-v4/positio_icon.png +0 -0
- package/lib/android/build/intermediates/runtime_library_classes_dir/debug/META-INF/react-native-amap3d_debug.kotlin_module +0 -0
- package/lib/android/build/intermediates/runtime_library_classes_dir/debug/qiuxiang/amap3d/AMap3DPackage.class +0 -0
- package/lib/android/build/intermediates/runtime_library_classes_dir/debug/qiuxiang/amap3d/BuildConfig.class +0 -0
- package/lib/android/build/intermediates/runtime_library_classes_dir/debug/qiuxiang/amap3d/UtilsKt$fetchImage$request$1$1.class +0 -0
- package/lib/android/build/intermediates/runtime_library_classes_dir/debug/qiuxiang/amap3d/UtilsKt.class +0 -0
- package/lib/android/build/intermediates/runtime_library_classes_dir/debug/qiuxiang/amap3d/map_view/Circle.class +0 -0
- package/lib/android/build/intermediates/runtime_library_classes_dir/debug/qiuxiang/amap3d/map_view/CircleManager.class +0 -0
- package/lib/android/build/intermediates/runtime_library_classes_dir/debug/qiuxiang/amap3d/map_view/HeatMap.class +0 -0
- package/lib/android/build/intermediates/runtime_library_classes_dir/debug/qiuxiang/amap3d/map_view/HeatMapManager.class +0 -0
- package/lib/android/build/intermediates/runtime_library_classes_dir/debug/qiuxiang/amap3d/map_view/MapView$7.class +0 -0
- package/lib/android/build/intermediates/runtime_library_classes_dir/debug/qiuxiang/amap3d/map_view/MapView$8.class +0 -0
- package/lib/android/build/intermediates/runtime_library_classes_dir/debug/qiuxiang/amap3d/map_view/MapView$animateCallback$1.class +0 -0
- package/lib/android/build/intermediates/runtime_library_classes_dir/debug/qiuxiang/amap3d/map_view/MapView.class +0 -0
- package/lib/android/build/intermediates/runtime_library_classes_dir/debug/qiuxiang/amap3d/map_view/MapViewManager$commands$1.class +0 -0
- package/lib/android/build/intermediates/runtime_library_classes_dir/debug/qiuxiang/amap3d/map_view/MapViewManager$commands$2.class +0 -0
- package/lib/android/build/intermediates/runtime_library_classes_dir/debug/qiuxiang/amap3d/map_view/MapViewManager.class +0 -0
- package/lib/android/build/intermediates/runtime_library_classes_dir/debug/qiuxiang/amap3d/map_view/Marker$setIcon$1.class +0 -0
- package/lib/android/build/intermediates/runtime_library_classes_dir/debug/qiuxiang/amap3d/map_view/Marker.class +0 -0
- package/lib/android/build/intermediates/runtime_library_classes_dir/debug/qiuxiang/amap3d/map_view/MarkerManager$Companion.class +0 -0
- package/lib/android/build/intermediates/runtime_library_classes_dir/debug/qiuxiang/amap3d/map_view/MarkerManager.class +0 -0
- package/lib/android/build/intermediates/runtime_library_classes_dir/debug/qiuxiang/amap3d/map_view/MultiPoint$setIcon$1.class +0 -0
- package/lib/android/build/intermediates/runtime_library_classes_dir/debug/qiuxiang/amap3d/map_view/MultiPoint.class +0 -0
- package/lib/android/build/intermediates/runtime_library_classes_dir/debug/qiuxiang/amap3d/map_view/MultiPointManager.class +0 -0
- package/lib/android/build/intermediates/runtime_library_classes_dir/debug/qiuxiang/amap3d/map_view/Overlay.class +0 -0
- package/lib/android/build/intermediates/runtime_library_classes_dir/debug/qiuxiang/amap3d/map_view/Polygon.class +0 -0
- package/lib/android/build/intermediates/runtime_library_classes_dir/debug/qiuxiang/amap3d/map_view/PolygonManager.class +0 -0
- package/lib/android/build/intermediates/runtime_library_classes_dir/debug/qiuxiang/amap3d/map_view/Polyline.class +0 -0
- package/lib/android/build/intermediates/runtime_library_classes_dir/debug/qiuxiang/amap3d/map_view/PolylineManager.class +0 -0
- package/lib/android/build/intermediates/runtime_library_classes_dir/debug/qiuxiang/amap3d/modules/SdkModule.class +0 -0
- package/lib/android/build/intermediates/runtime_library_classes_jar/debug/classes.jar +0 -0
- package/lib/android/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt +0 -2
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream.len +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.len +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.values.at +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i.len +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.keystream +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.keystream.len +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.len +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.values.at +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab_i +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab_i.len +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +0 -2
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.s +0 -1
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
- package/lib/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
- package/lib/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -41
- package/lib/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/lib/android/build/tmp/kotlin-classes/debug/META-INF/react-native-amap3d_debug.kotlin_module +0 -0
- package/lib/android/build/tmp/kotlin-classes/debug/qiuxiang/amap3d/AMap3DPackage.class +0 -0
- package/lib/android/build/tmp/kotlin-classes/debug/qiuxiang/amap3d/UtilsKt$fetchImage$request$1$1.class +0 -0
- package/lib/android/build/tmp/kotlin-classes/debug/qiuxiang/amap3d/UtilsKt.class +0 -0
- package/lib/android/build/tmp/kotlin-classes/debug/qiuxiang/amap3d/map_view/Circle.class +0 -0
- package/lib/android/build/tmp/kotlin-classes/debug/qiuxiang/amap3d/map_view/CircleManager.class +0 -0
- package/lib/android/build/tmp/kotlin-classes/debug/qiuxiang/amap3d/map_view/HeatMap.class +0 -0
- package/lib/android/build/tmp/kotlin-classes/debug/qiuxiang/amap3d/map_view/HeatMapManager.class +0 -0
- package/lib/android/build/tmp/kotlin-classes/debug/qiuxiang/amap3d/map_view/MapView$7.class +0 -0
- package/lib/android/build/tmp/kotlin-classes/debug/qiuxiang/amap3d/map_view/MapView$8.class +0 -0
- package/lib/android/build/tmp/kotlin-classes/debug/qiuxiang/amap3d/map_view/MapView$animateCallback$1.class +0 -0
- package/lib/android/build/tmp/kotlin-classes/debug/qiuxiang/amap3d/map_view/MapView.class +0 -0
- package/lib/android/build/tmp/kotlin-classes/debug/qiuxiang/amap3d/map_view/MapViewManager$commands$1.class +0 -0
- package/lib/android/build/tmp/kotlin-classes/debug/qiuxiang/amap3d/map_view/MapViewManager$commands$2.class +0 -0
- package/lib/android/build/tmp/kotlin-classes/debug/qiuxiang/amap3d/map_view/MapViewManager.class +0 -0
- package/lib/android/build/tmp/kotlin-classes/debug/qiuxiang/amap3d/map_view/Marker$setIcon$1.class +0 -0
- package/lib/android/build/tmp/kotlin-classes/debug/qiuxiang/amap3d/map_view/Marker.class +0 -0
- package/lib/android/build/tmp/kotlin-classes/debug/qiuxiang/amap3d/map_view/MarkerManager$Companion.class +0 -0
- package/lib/android/build/tmp/kotlin-classes/debug/qiuxiang/amap3d/map_view/MarkerManager.class +0 -0
- package/lib/android/build/tmp/kotlin-classes/debug/qiuxiang/amap3d/map_view/MultiPoint$setIcon$1.class +0 -0
- package/lib/android/build/tmp/kotlin-classes/debug/qiuxiang/amap3d/map_view/MultiPoint.class +0 -0
- package/lib/android/build/tmp/kotlin-classes/debug/qiuxiang/amap3d/map_view/MultiPointManager.class +0 -0
- package/lib/android/build/tmp/kotlin-classes/debug/qiuxiang/amap3d/map_view/Overlay.class +0 -0
- package/lib/android/build/tmp/kotlin-classes/debug/qiuxiang/amap3d/map_view/Polygon.class +0 -0
- package/lib/android/build/tmp/kotlin-classes/debug/qiuxiang/amap3d/map_view/PolygonManager.class +0 -0
- package/lib/android/build/tmp/kotlin-classes/debug/qiuxiang/amap3d/map_view/Polyline.class +0 -0
- package/lib/android/build/tmp/kotlin-classes/debug/qiuxiang/amap3d/map_view/PolylineManager.class +0 -0
- package/lib/android/build/tmp/kotlin-classes/debug/qiuxiang/amap3d/modules/SdkModule.class +0 -0
- package/lib/android/build.gradle +0 -34
- package/lib/android/drawable/rn_edit_text_material.xml +0 -37
- package/lib/android/drawable-hdpi/positio_icon.png +0 -0
- package/lib/android/drawable-hdpi/splashscreen_image.png +0 -0
- package/lib/android/drawable-mdpi/splashscreen_image.png +0 -0
- package/lib/android/drawable-xhdpi/splashscreen_image.png +0 -0
- package/lib/android/drawable-xxhdpi/splashscreen_image.png +0 -0
- package/lib/android/drawable-xxxhdpi/splashscreen_image.png +0 -0
- package/lib/android/src/main/AndroidManifest.xml +0 -10
- package/lib/android/src/main/java/qiuxiang/amap3d/AMap3DPackage.kt +0 -30
- package/lib/android/src/main/java/qiuxiang/amap3d/Utils.kt +0 -114
- package/lib/android/src/main/java/qiuxiang/amap3d/map_view/Circle.kt +0 -65
- package/lib/android/src/main/java/qiuxiang/amap3d/map_view/CircleManager.kt +0 -49
- package/lib/android/src/main/java/qiuxiang/amap3d/map_view/HeatMap.kt +0 -32
- package/lib/android/src/main/java/qiuxiang/amap3d/map_view/HeatMapManager.kt +0 -33
- package/lib/android/src/main/java/qiuxiang/amap3d/map_view/MapView.kt +0 -190
- package/lib/android/src/main/java/qiuxiang/amap3d/map_view/MapViewManager.kt +0 -181
- package/lib/android/src/main/java/qiuxiang/amap3d/map_view/Marker.kt +0 -102
- package/lib/android/src/main/java/qiuxiang/amap3d/map_view/MarkerManager.kt +0 -78
- package/lib/android/src/main/java/qiuxiang/amap3d/map_view/MultiPoint.kt +0 -53
- package/lib/android/src/main/java/qiuxiang/amap3d/map_view/MultiPointManager.kt +0 -33
- package/lib/android/src/main/java/qiuxiang/amap3d/map_view/Overlay.kt +0 -8
- package/lib/android/src/main/java/qiuxiang/amap3d/map_view/Polygon.kt +0 -58
- package/lib/android/src/main/java/qiuxiang/amap3d/map_view/PolygonManager.kt +0 -44
- package/lib/android/src/main/java/qiuxiang/amap3d/map_view/Polyline.kt +0 -69
- package/lib/android/src/main/java/qiuxiang/amap3d/map_view/PolylineManager.kt +0 -64
- package/lib/android/src/main/java/qiuxiang/amap3d/modules/AMapGeolocationModule.kt +0 -468
- package/lib/android/src/main/java/qiuxiang/amap3d/modules/SdkModule.kt +0 -31
- package/lib/android/src/main/res/drawable-hdpi/positio_icon.png +0 -0
- package/lib/android/src/main/res/drawable-mdpi/positio_icon.png +0 -0
- package/lib/android/src/main/res/drawable-xhdpi/positio_icon.png +0 -0
- package/lib/android/src/main/res/drawable-xxhdpi/positio_icon.png +0 -0
- package/lib/android/src/main/res/drawable-xxxhdpi/positio_icon.png +0 -0
- package/lib/ios/.swiftformat +0 -2
- package/lib/ios/Bridging-Header.h +0 -4
- package/lib/ios/MapView/CircleManager.m +0 -11
- package/lib/ios/MapView/CircleManager.swift +0 -30
- package/lib/ios/MapView/HeatMapManager.m +0 -9
- package/lib/ios/MapView/HeatMapManager.swift +0 -29
- package/lib/ios/MapView/MapViewManager.m +0 -35
- package/lib/ios/MapView/MapViewManager.swift +0 -188
- package/lib/ios/MapView/MarkerManager.m +0 -18
- package/lib/ios/MapView/MarkerManager.swift +0 -100
- package/lib/ios/MapView/MultiPointManager.m +0 -9
- package/lib/ios/MapView/MultiPointManager.swift +0 -47
- package/lib/ios/MapView/Overlay.swift +0 -4
- package/lib/ios/MapView/PolygonManager.m +0 -10
- package/lib/ios/MapView/PolygonManager.swift +0 -30
- package/lib/ios/MapView/PolylineManager.m +0 -12
- package/lib/ios/MapView/PolylineManager.swift +0 -41
- package/lib/ios/Modules/SdkModule.m +0 -8
- package/lib/ios/Modules/SdkModule.swift +0 -16
- package/lib/ios/RNAMapGeolocation.h +0 -8
- package/lib/ios/RNAMapGeolocation.m +0 -302
- package/lib/ios/Utils.swift +0 -104
- package/lib/ios/react-native-amap3d.podspec +0 -21
- package/lib/src/circle.tsx +0 -36
- package/lib/src/cluster/cluster-view.tsx +0 -58
- package/lib/src/cluster/index.tsx +0 -159
- package/lib/src/component.ts +0 -31
- package/lib/src/geolocation/index.d.ts +0 -287
- package/lib/src/geolocation/index.js +0 -344
- package/lib/src/heat-map.tsx +0 -21
- package/lib/src/index.ts +0 -13
- package/lib/src/location/index.d.ts +0 -287
- package/lib/src/location/index.js +0 -344
- package/lib/src/map-view.tsx +0 -230
- package/lib/src/marker.tsx +0 -128
- package/lib/src/multi-point.tsx +0 -28
- package/lib/src/polygon.tsx +0 -31
- package/lib/src/polyline.tsx +0 -65
- package/lib/src/sdk.ts +0 -11
- package/lib/src/types.ts +0 -137
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<!-- Copyright (C) 2014 The Android Open Source Project
|
|
3
|
-
|
|
4
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
you may not use this file except in compliance with the License.
|
|
6
|
-
You may obtain a copy of the License at
|
|
7
|
-
|
|
8
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
|
|
10
|
-
Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
See the License for the specific language governing permissions and
|
|
14
|
-
limitations under the License.
|
|
15
|
-
-->
|
|
16
|
-
<inset xmlns:android="http://schemas.android.com/apk/res/android"
|
|
17
|
-
android:insetLeft="@dimen/abc_edit_text_inset_horizontal_material"
|
|
18
|
-
android:insetRight="@dimen/abc_edit_text_inset_horizontal_material"
|
|
19
|
-
android:insetTop="@dimen/abc_edit_text_inset_top_material"
|
|
20
|
-
android:insetBottom="@dimen/abc_edit_text_inset_bottom_material"
|
|
21
|
-
>
|
|
22
|
-
|
|
23
|
-
<selector>
|
|
24
|
-
<!--
|
|
25
|
-
This file is a copy of abc_edit_text_material (https://bit.ly/3k8fX7I).
|
|
26
|
-
The item below with state_pressed="false" and state_focused="false" causes a NullPointerException.
|
|
27
|
-
NullPointerException:tempt to invoke virtual method 'android.graphics.drawable.Drawable android.graphics.drawable.Drawable$ConstantState.newDrawable(android.content.res.Resources)'
|
|
28
|
-
|
|
29
|
-
<item android:state_pressed="false" android:state_focused="false" android:drawable="@drawable/abc_textfield_default_mtrl_alpha"/>
|
|
30
|
-
|
|
31
|
-
For more info, see https://bit.ly/3CdLStv (react-native/pull/29452) and https://bit.ly/3nxOMoR.
|
|
32
|
-
-->
|
|
33
|
-
<item android:state_enabled="false" android:drawable="@drawable/abc_textfield_default_mtrl_alpha"/>
|
|
34
|
-
<item android:drawable="@drawable/abc_textfield_activated_mtrl_alpha"/>
|
|
35
|
-
</selector>
|
|
36
|
-
|
|
37
|
-
</inset>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
2
|
-
package="qiuxiang.amap3d">
|
|
3
|
-
|
|
4
|
-
<uses-permission android:name="android.permission.INTERNET" />
|
|
5
|
-
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
|
6
|
-
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
|
|
7
|
-
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
|
|
8
|
-
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
|
9
|
-
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
|
|
10
|
-
</manifest>
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
package qiuxiang.amap3d
|
|
2
|
-
|
|
3
|
-
import com.facebook.react.ReactPackage
|
|
4
|
-
import com.facebook.react.bridge.NativeModule
|
|
5
|
-
import com.facebook.react.bridge.ReactApplicationContext
|
|
6
|
-
import com.facebook.react.uimanager.ViewManager
|
|
7
|
-
import qiuxiang.amap3d.map_view.*
|
|
8
|
-
import qiuxiang.amap3d.modules.RNAMapGeolocationModule
|
|
9
|
-
import qiuxiang.amap3d.modules.SdkModule
|
|
10
|
-
|
|
11
|
-
class AMap3DPackage : ReactPackage {
|
|
12
|
-
override fun createNativeModules(reactContext: ReactApplicationContext): List<NativeModule> {
|
|
13
|
-
return listOf(
|
|
14
|
-
SdkModule(reactContext),
|
|
15
|
-
RNAMapGeolocationModule(reactContext)
|
|
16
|
-
)
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
override fun createViewManagers(reactContext: ReactApplicationContext): List<ViewManager<*, *>> {
|
|
20
|
-
return listOf(
|
|
21
|
-
MapViewManager(),
|
|
22
|
-
MarkerManager(),
|
|
23
|
-
PolylineManager(),
|
|
24
|
-
PolygonManager(),
|
|
25
|
-
CircleManager(),
|
|
26
|
-
HeatMapManager(),
|
|
27
|
-
MultiPointManager()
|
|
28
|
-
)
|
|
29
|
-
}
|
|
30
|
-
}
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
package qiuxiang.amap3d
|
|
2
|
-
|
|
3
|
-
import android.content.res.Resources
|
|
4
|
-
import android.graphics.Bitmap
|
|
5
|
-
import android.graphics.Point
|
|
6
|
-
import android.location.Location
|
|
7
|
-
import android.view.View
|
|
8
|
-
import com.amap.api.maps.model.*
|
|
9
|
-
import com.facebook.drawee.backends.pipeline.Fresco
|
|
10
|
-
import com.facebook.imagepipeline.common.ResizeOptions
|
|
11
|
-
import com.facebook.imagepipeline.request.BasePostprocessor
|
|
12
|
-
import com.facebook.imagepipeline.request.ImageRequestBuilder
|
|
13
|
-
import com.facebook.react.bridge.Arguments
|
|
14
|
-
import com.facebook.react.bridge.ReadableArray
|
|
15
|
-
import com.facebook.react.bridge.ReadableMap
|
|
16
|
-
import com.facebook.react.bridge.WritableMap
|
|
17
|
-
import com.facebook.react.views.imagehelper.ImageSource
|
|
18
|
-
|
|
19
|
-
fun Float.toPx(): Int {
|
|
20
|
-
return (this * Resources.getSystem().displayMetrics.density).toInt()
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
fun Int.toPx(): Int {
|
|
24
|
-
return (this * Resources.getSystem().displayMetrics.density).toInt()
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
fun ReadableMap.toPoint(): Point {
|
|
28
|
-
return Point(getDouble("x").toFloat().toPx(), getDouble("y").toFloat().toPx())
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
fun ReadableMap.toLatLng(): LatLng {
|
|
32
|
-
return LatLng(getDouble("latitude"), getDouble("longitude"))
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
fun ReadableArray.toLatLngList(): List<LatLng> {
|
|
36
|
-
return (0 until size()).map {
|
|
37
|
-
// @todo 暂时兼容 0.63
|
|
38
|
-
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
|
39
|
-
getMap(it)!!.toLatLng()
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
fun LatLng.toJson(): WritableMap {
|
|
44
|
-
return Arguments.createMap().apply {
|
|
45
|
-
putDouble("latitude", latitude)
|
|
46
|
-
putDouble("longitude", longitude)
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
fun Poi.toJson(): WritableMap {
|
|
51
|
-
return Arguments.createMap().apply {
|
|
52
|
-
putMap("position", coordinate.toJson())
|
|
53
|
-
putString("id", poiId)
|
|
54
|
-
putString("name", name)
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
fun CameraPosition.toJson(): WritableMap {
|
|
59
|
-
return Arguments.createMap().apply {
|
|
60
|
-
putMap("target", target.toJson())
|
|
61
|
-
putDouble("zoom", zoom.toDouble())
|
|
62
|
-
putDouble("tilt", tilt.toDouble())
|
|
63
|
-
putDouble("bearing", bearing.toDouble())
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
fun Location.toJson(): WritableMap {
|
|
68
|
-
return Arguments.createMap().apply {
|
|
69
|
-
putDouble("timestamp", time.toDouble())
|
|
70
|
-
putMap("coords", Arguments.createMap().apply {
|
|
71
|
-
putDouble("latitude", latitude)
|
|
72
|
-
putDouble("longitude", longitude)
|
|
73
|
-
putDouble("latitude", latitude)
|
|
74
|
-
putDouble("accuracy", accuracy.toDouble())
|
|
75
|
-
putDouble("heading", bearing.toDouble())
|
|
76
|
-
putDouble("speed", speed.toDouble())
|
|
77
|
-
})
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
fun LatLngBounds.toJson(): WritableMap {
|
|
82
|
-
return Arguments.createMap().apply {
|
|
83
|
-
putMap("southwest", southwest.toJson())
|
|
84
|
-
putMap("northeast", northeast.toJson())
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
fun ReadableMap.getFloat(key: String): Float? {
|
|
89
|
-
if (hasKey(key)) return getDouble(key).toFloat()
|
|
90
|
-
return null
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
fun getEventTypeConstants(vararg list: String): Map<String, Any> {
|
|
94
|
-
return list.associateWith { mapOf("phasedRegistrationNames" to mapOf("bubbled" to it)) }
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
fun View.fetchImage(source: ReadableMap, callback: (BitmapDescriptor) -> Unit) {
|
|
98
|
-
val uri = ImageSource(context, source.getString("uri")).uri
|
|
99
|
-
val request = ImageRequestBuilder.newBuilderWithSource(uri).let {
|
|
100
|
-
it.postprocessor = object : BasePostprocessor() {
|
|
101
|
-
override fun process(bitmap: Bitmap) {
|
|
102
|
-
callback(BitmapDescriptorFactory.fromBitmap(bitmap))
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
if (source.hasKey("width") && source.hasKey("height")) {
|
|
106
|
-
it.resizeOptions = ResizeOptions.forDimensions(
|
|
107
|
-
source.getInt("width").toPx(),
|
|
108
|
-
source.getInt("height").toPx()
|
|
109
|
-
)
|
|
110
|
-
}
|
|
111
|
-
it.build()
|
|
112
|
-
}
|
|
113
|
-
Fresco.getImagePipeline().fetchDecodedImage(request, this)
|
|
114
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
package qiuxiang.amap3d.map_view
|
|
2
|
-
|
|
3
|
-
import android.content.Context
|
|
4
|
-
import android.graphics.Color
|
|
5
|
-
import com.amap.api.maps.AMap
|
|
6
|
-
import com.amap.api.maps.model.Circle
|
|
7
|
-
import com.amap.api.maps.model.CircleOptions
|
|
8
|
-
import com.amap.api.maps.model.LatLng
|
|
9
|
-
import com.facebook.react.views.view.ReactViewGroup
|
|
10
|
-
|
|
11
|
-
class Circle(context: Context) : ReactViewGroup(context), Overlay {
|
|
12
|
-
private var circle: Circle? = null
|
|
13
|
-
|
|
14
|
-
var center: LatLng? = null
|
|
15
|
-
set(value) {
|
|
16
|
-
field = value
|
|
17
|
-
circle?.center = value
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
var radius: Double = 0.0
|
|
21
|
-
set(value) {
|
|
22
|
-
field = value
|
|
23
|
-
circle?.radius = value
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
var strokeWidth: Float = 1f
|
|
27
|
-
set(value) {
|
|
28
|
-
field = value
|
|
29
|
-
circle?.strokeWidth = value
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
var strokeColor: Int = Color.BLACK
|
|
33
|
-
set(value) {
|
|
34
|
-
field = value
|
|
35
|
-
circle?.strokeColor = value
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
var fillColor: Int = Color.BLACK
|
|
39
|
-
set(value) {
|
|
40
|
-
field = value
|
|
41
|
-
circle?.fillColor = value
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
var zIndex: Float = 0f
|
|
45
|
-
set(value) {
|
|
46
|
-
field = value
|
|
47
|
-
circle?.zIndex = value
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
override fun add(map: AMap) {
|
|
51
|
-
circle = map.addCircle(
|
|
52
|
-
CircleOptions()
|
|
53
|
-
.center(center)
|
|
54
|
-
.radius(radius)
|
|
55
|
-
.strokeColor(strokeColor)
|
|
56
|
-
.strokeWidth(strokeWidth)
|
|
57
|
-
.fillColor(fillColor)
|
|
58
|
-
.zIndex(zIndex)
|
|
59
|
-
)
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
override fun remove() {
|
|
63
|
-
circle?.remove()
|
|
64
|
-
}
|
|
65
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
package qiuxiang.amap3d.map_view
|
|
2
|
-
|
|
3
|
-
import com.facebook.react.bridge.ReadableMap
|
|
4
|
-
import com.facebook.react.uimanager.SimpleViewManager
|
|
5
|
-
import com.facebook.react.uimanager.ThemedReactContext
|
|
6
|
-
import com.facebook.react.uimanager.annotations.ReactProp
|
|
7
|
-
import qiuxiang.amap3d.toLatLng
|
|
8
|
-
import qiuxiang.amap3d.toPx
|
|
9
|
-
|
|
10
|
-
@Suppress("unused")
|
|
11
|
-
internal class CircleManager : SimpleViewManager<Circle>() {
|
|
12
|
-
override fun getName(): String {
|
|
13
|
-
return "AMapCircle"
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
override fun createViewInstance(reactContext: ThemedReactContext): Circle {
|
|
17
|
-
return Circle(reactContext)
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@ReactProp(name = "center")
|
|
21
|
-
fun setCenter(circle: Circle, center: ReadableMap) {
|
|
22
|
-
circle.center = center.toLatLng()
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@ReactProp(name = "radius")
|
|
26
|
-
fun setRadius(circle: Circle, radius: Double) {
|
|
27
|
-
circle.radius = radius
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
@ReactProp(name = "fillColor", customType = "Color")
|
|
31
|
-
fun setFillColor(circle: Circle, fillColor: Int) {
|
|
32
|
-
circle.fillColor = fillColor
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@ReactProp(name = "strokeColor", customType = "Color")
|
|
36
|
-
fun setStrokeColor(circle: Circle, strokeColor: Int) {
|
|
37
|
-
circle.strokeColor = strokeColor
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@ReactProp(name = "strokeWidth")
|
|
41
|
-
fun setStrokeWidth(circle: Circle, strokeWidth: Float) {
|
|
42
|
-
circle.strokeWidth = strokeWidth.toPx().toFloat()
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
@ReactProp(name = "zIndex")
|
|
46
|
-
fun setIndex(circle: Circle, zIndex: Float) {
|
|
47
|
-
circle.zIndex = zIndex
|
|
48
|
-
}
|
|
49
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
package qiuxiang.amap3d.map_view
|
|
2
|
-
|
|
3
|
-
import android.content.Context
|
|
4
|
-
import com.amap.api.maps.AMap
|
|
5
|
-
import com.amap.api.maps.model.HeatmapTileProvider
|
|
6
|
-
import com.amap.api.maps.model.LatLng
|
|
7
|
-
import com.amap.api.maps.model.TileOverlay
|
|
8
|
-
import com.amap.api.maps.model.TileOverlayOptions
|
|
9
|
-
import com.facebook.react.views.view.ReactViewGroup
|
|
10
|
-
|
|
11
|
-
class HeatMap(context: Context) : ReactViewGroup(context), Overlay {
|
|
12
|
-
private var overlay: TileOverlay? = null
|
|
13
|
-
var data: List<LatLng> = emptyList()
|
|
14
|
-
var opacity: Double = 0.6
|
|
15
|
-
var radius: Int = 12
|
|
16
|
-
|
|
17
|
-
override fun add(map: AMap) {
|
|
18
|
-
overlay = map.addTileOverlay(
|
|
19
|
-
TileOverlayOptions().tileProvider(
|
|
20
|
-
HeatmapTileProvider.Builder()
|
|
21
|
-
.data(data)
|
|
22
|
-
.radius(radius)
|
|
23
|
-
.transparency(opacity)
|
|
24
|
-
.build()
|
|
25
|
-
)
|
|
26
|
-
)
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
override fun remove() {
|
|
30
|
-
overlay?.remove()
|
|
31
|
-
}
|
|
32
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
package qiuxiang.amap3d.map_view
|
|
2
|
-
|
|
3
|
-
import com.facebook.react.bridge.ReadableArray
|
|
4
|
-
import com.facebook.react.uimanager.SimpleViewManager
|
|
5
|
-
import com.facebook.react.uimanager.ThemedReactContext
|
|
6
|
-
import com.facebook.react.uimanager.annotations.ReactProp
|
|
7
|
-
import qiuxiang.amap3d.toLatLngList
|
|
8
|
-
|
|
9
|
-
@Suppress("unused")
|
|
10
|
-
internal class HeatMapManager : SimpleViewManager<HeatMap>() {
|
|
11
|
-
override fun getName(): String {
|
|
12
|
-
return "AMapHeatMap"
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
override fun createViewInstance(reactContext: ThemedReactContext): HeatMap {
|
|
16
|
-
return HeatMap(reactContext)
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@ReactProp(name = "data")
|
|
20
|
-
fun setData(heatMap: HeatMap, data: ReadableArray) {
|
|
21
|
-
heatMap.data = data.toLatLngList()
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
@ReactProp(name = "radius")
|
|
25
|
-
fun setRadius(heatMap: HeatMap, radius: Int) {
|
|
26
|
-
heatMap.radius = radius
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
@ReactProp(name = "opacity")
|
|
30
|
-
fun setOpacity(heatMap: HeatMap, opacity: Double) {
|
|
31
|
-
heatMap.opacity = opacity
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
package qiuxiang.amap3d.map_view
|
|
2
|
-
|
|
3
|
-
import android.annotation.SuppressLint
|
|
4
|
-
import android.graphics.Color
|
|
5
|
-
import android.view.View
|
|
6
|
-
import com.amap.api.maps.AMap
|
|
7
|
-
import com.amap.api.maps.CameraUpdateFactory
|
|
8
|
-
import com.amap.api.maps.TextureMapView
|
|
9
|
-
import com.amap.api.maps.model.BitmapDescriptorFactory
|
|
10
|
-
import com.amap.api.maps.model.CameraPosition
|
|
11
|
-
import com.amap.api.maps.model.LatLng
|
|
12
|
-
import com.amap.api.maps.model.Marker
|
|
13
|
-
import com.amap.api.maps.model.MyLocationStyle
|
|
14
|
-
import com.facebook.react.bridge.Arguments
|
|
15
|
-
import com.facebook.react.bridge.ReadableArray
|
|
16
|
-
import com.facebook.react.bridge.ReadableMap
|
|
17
|
-
import com.facebook.react.bridge.WritableMap
|
|
18
|
-
import com.facebook.react.uimanager.ThemedReactContext
|
|
19
|
-
import qiuxiang.amap3d.R
|
|
20
|
-
import qiuxiang.amap3d.getFloat
|
|
21
|
-
import qiuxiang.amap3d.toJson
|
|
22
|
-
import qiuxiang.amap3d.toLatLng
|
|
23
|
-
import qiuxiang.amap3d.toPoint
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
@SuppressLint("ViewConstructor")
|
|
27
|
-
class MapView(context: ThemedReactContext) : TextureMapView(context) {
|
|
28
|
-
@Suppress("Deprecation")
|
|
29
|
-
private val eventEmitter =
|
|
30
|
-
context.getJSModule(com.facebook.react.uimanager.events.RCTEventEmitter::class.java)
|
|
31
|
-
private val markerMap = HashMap<String, qiuxiang.amap3d.map_view.Marker>()
|
|
32
|
-
private val polylineMap = HashMap<String, Polyline>()
|
|
33
|
-
private var initialCameraPosition: ReadableMap? = null
|
|
34
|
-
private var locationStyle: MyLocationStyle
|
|
35
|
-
private var currentLocation: LatLng? = null
|
|
36
|
-
|
|
37
|
-
init {
|
|
38
|
-
super.onCreate(null)
|
|
39
|
-
|
|
40
|
-
locationStyle = MyLocationStyle()
|
|
41
|
-
locationStyle.myLocationType(MyLocationStyle.LOCATION_TYPE_LOCATE)
|
|
42
|
-
locationStyle.myLocationIcon(BitmapDescriptorFactory.fromResource(R.drawable.positio_icon))
|
|
43
|
-
locationStyle.strokeColor(Color.TRANSPARENT)
|
|
44
|
-
locationStyle.radiusFillColor(Color.TRANSPARENT)
|
|
45
|
-
map.myLocationStyle = locationStyle
|
|
46
|
-
|
|
47
|
-
map.setOnMapLoadedListener { emit(id, "onLoad") }
|
|
48
|
-
map.setOnMapClickListener { latLng -> emit(id, "onPress", latLng.toJson()) }
|
|
49
|
-
map.setOnPOIClickListener { poi -> emit(id, "onPressPoi", poi.toJson()) }
|
|
50
|
-
map.setOnMapLongClickListener { latLng -> emit(id, "onLongPress", latLng.toJson()) }
|
|
51
|
-
map.setOnPolylineClickListener { polyline -> emit(polylineMap[polyline.id]?.id, "onPress") }
|
|
52
|
-
|
|
53
|
-
map.setOnMarkerClickListener { marker ->
|
|
54
|
-
markerMap[marker.id]?.let { emit(it.id, "onPress") }
|
|
55
|
-
true
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
map.setOnMarkerDragListener(object : AMap.OnMarkerDragListener {
|
|
59
|
-
override fun onMarkerDragStart(marker: Marker) {
|
|
60
|
-
emit(markerMap[marker.id]?.id, "onDragStart")
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
override fun onMarkerDrag(marker: Marker) {
|
|
64
|
-
emit(markerMap[marker.id]?.id, "onDrag")
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
override fun onMarkerDragEnd(marker: Marker) {
|
|
68
|
-
emit(markerMap[marker.id]?.id, "onDragEnd", marker.position.toJson())
|
|
69
|
-
}
|
|
70
|
-
})
|
|
71
|
-
|
|
72
|
-
map.setOnCameraChangeListener(object : AMap.OnCameraChangeListener {
|
|
73
|
-
override fun onCameraChangeFinish(position: CameraPosition) {
|
|
74
|
-
emit(id, "onCameraIdle", Arguments.createMap().apply {
|
|
75
|
-
putMap("cameraPosition", position.toJson())
|
|
76
|
-
putMap("latLngBounds", map.projection.visibleRegion.latLngBounds.toJson())
|
|
77
|
-
})
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
override fun onCameraChange(position: CameraPosition) {
|
|
81
|
-
emit(id, "onCameraMove", Arguments.createMap().apply {
|
|
82
|
-
putMap("cameraPosition", position.toJson())
|
|
83
|
-
putMap("latLngBounds", map.projection.visibleRegion.latLngBounds.toJson())
|
|
84
|
-
})
|
|
85
|
-
}
|
|
86
|
-
})
|
|
87
|
-
|
|
88
|
-
map.setOnMultiPointClickListener { item ->
|
|
89
|
-
item.customerId.split("_").let {
|
|
90
|
-
emit(
|
|
91
|
-
it[0].toInt(),
|
|
92
|
-
"onPress",
|
|
93
|
-
Arguments.createMap().apply { putInt("index", it[1].toInt()) },
|
|
94
|
-
)
|
|
95
|
-
}
|
|
96
|
-
false
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
map.setOnMyLocationChangeListener {
|
|
100
|
-
if (it.time > 0) {
|
|
101
|
-
emit(id, "onLocation", it.toJson())
|
|
102
|
-
currentLocation = LatLng(it.latitude, it.longitude)
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
fun emit(id: Int?, event: String, data: WritableMap = Arguments.createMap()) {
|
|
108
|
-
@Suppress("Deprecation")
|
|
109
|
-
id?.let { eventEmitter.receiveEvent(it, event, data) }
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
fun add(child: View) {
|
|
113
|
-
if (child is Overlay) {
|
|
114
|
-
child.add(map)
|
|
115
|
-
if (child is qiuxiang.amap3d.map_view.Marker) {
|
|
116
|
-
markerMap[child.marker?.id!!] = child
|
|
117
|
-
}
|
|
118
|
-
if (child is Polyline) {
|
|
119
|
-
polylineMap[child.polyline?.id!!] = child
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
fun remove(child: View) {
|
|
125
|
-
if (child is Overlay) {
|
|
126
|
-
child.remove()
|
|
127
|
-
if (child is qiuxiang.amap3d.map_view.Marker) {
|
|
128
|
-
markerMap.remove(child.marker?.id)
|
|
129
|
-
}
|
|
130
|
-
if (child is Polyline) {
|
|
131
|
-
polylineMap.remove(child.polyline?.id)
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
private val animateCallback = object : AMap.CancelableCallback {
|
|
137
|
-
override fun onCancel() {}
|
|
138
|
-
override fun onFinish() {}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
fun moveCamera(args: ReadableArray?) {
|
|
142
|
-
val current = map.cameraPosition
|
|
143
|
-
val position = args?.getMap(0)!!
|
|
144
|
-
val target = position.getMap("target")?.toLatLng() ?: current.target
|
|
145
|
-
val zoom = position.getFloat("zoom") ?: current.zoom
|
|
146
|
-
val tilt = position.getFloat("tilt") ?: current.tilt
|
|
147
|
-
val bearing = position.getFloat("bearing") ?: current.bearing
|
|
148
|
-
val cameraUpdate = CameraUpdateFactory.newCameraPosition(
|
|
149
|
-
CameraPosition(target, zoom, tilt, bearing)
|
|
150
|
-
)
|
|
151
|
-
map.animateCamera(cameraUpdate, args.getInt(1).toLong(), animateCallback)
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
fun setInitialCameraPosition(position: ReadableMap) {
|
|
155
|
-
if (initialCameraPosition == null) {
|
|
156
|
-
initialCameraPosition = position
|
|
157
|
-
moveCamera(Arguments.createArray().apply {
|
|
158
|
-
pushMap(Arguments.createMap().apply { merge(position) })
|
|
159
|
-
pushInt(0)
|
|
160
|
-
})
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
fun call(args: ReadableArray?) {
|
|
165
|
-
val id = args?.getDouble(0)!!
|
|
166
|
-
when (args.getString(1)) {
|
|
167
|
-
"getLatLng" -> callback(
|
|
168
|
-
id,
|
|
169
|
-
// @todo 暂时兼容 0.63
|
|
170
|
-
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
|
171
|
-
map.projection.fromScreenLocation(args.getMap(2)!!.toPoint()).toJson()
|
|
172
|
-
)
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
private fun callback(id: Double, data: Any) {
|
|
177
|
-
emit(this.id, "onCallback", Arguments.createMap().apply {
|
|
178
|
-
putDouble("id", id)
|
|
179
|
-
when (data) {
|
|
180
|
-
is WritableMap -> putMap("data", data)
|
|
181
|
-
}
|
|
182
|
-
})
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
fun moveToCurrentLocation(){
|
|
186
|
-
if (currentLocation != null) {
|
|
187
|
-
map.animateCamera(CameraUpdateFactory.newLatLngZoom(currentLocation, 16f));
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
}
|