expo-gaode-map 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/README.en.md +320 -0
  2. package/README.md +2 -0
  3. package/android/src/main/java/expo/modules/gaodemap/ExpoGaodeMapModule.kt +1 -298
  4. package/android/src/main/java/expo/modules/gaodemap/ExpoGaodeMapViewModule.kt +126 -0
  5. package/android/src/main/java/expo/modules/gaodemap/overlays/CircleViewModule.kt +41 -0
  6. package/android/src/main/java/expo/modules/gaodemap/overlays/ClusterViewModule.kt +29 -0
  7. package/android/src/main/java/expo/modules/gaodemap/overlays/HeatMapViewModule.kt +27 -0
  8. package/android/src/main/java/expo/modules/gaodemap/overlays/MarkerViewModule.kt +49 -0
  9. package/android/src/main/java/expo/modules/gaodemap/overlays/MultiPointViewModule.kt +21 -0
  10. package/android/src/main/java/expo/modules/gaodemap/overlays/PolygonViewModule.kt +37 -0
  11. package/android/src/main/java/expo/modules/gaodemap/overlays/PolylineView.kt +2 -0
  12. package/android/src/main/java/expo/modules/gaodemap/overlays/PolylineViewModule.kt +45 -0
  13. package/build/ExpoGaodeMapView.js +1 -1
  14. package/build/ExpoGaodeMapView.js.map +1 -1
  15. package/build/components/overlays/Cluster.d.ts.map +1 -1
  16. package/build/components/overlays/Cluster.js +1 -1
  17. package/build/components/overlays/Cluster.js.map +1 -1
  18. package/build/components/overlays/HeatMap.d.ts.map +1 -1
  19. package/build/components/overlays/HeatMap.js +1 -1
  20. package/build/components/overlays/HeatMap.js.map +1 -1
  21. package/build/components/overlays/MultiPoint.d.ts.map +1 -1
  22. package/build/components/overlays/MultiPoint.js +1 -1
  23. package/build/components/overlays/MultiPoint.js.map +1 -1
  24. package/docs/API.en.md +418 -0
  25. package/docs/API.md +2 -0
  26. package/docs/ARCHITECTURE.en.md +423 -0
  27. package/docs/ARCHITECTURE.md +2 -0
  28. package/docs/EXAMPLES.en.md +642 -0
  29. package/docs/EXAMPLES.md +2 -0
  30. package/docs/INITIALIZATION.en.md +346 -0
  31. package/docs/INITIALIZATION.md +2 -0
  32. package/expo-module.config.json +22 -2
  33. package/ios/ExpoGaodeMapModule.swift +0 -334
  34. package/ios/ExpoGaodeMapViewModule.swift +155 -0
  35. package/ios/overlays/CircleViewModule.swift +31 -0
  36. package/ios/overlays/ClusterViewModule.swift +23 -0
  37. package/ios/overlays/HeatMapViewModule.swift +21 -0
  38. package/ios/overlays/MarkerViewModule.swift +55 -0
  39. package/ios/overlays/MultiPointViewModule.swift +15 -0
  40. package/ios/overlays/PolygonViewModule.swift +27 -0
  41. package/ios/overlays/PolylineViewModule.swift +39 -0
  42. package/package.json +1 -1
  43. package/src/ExpoGaodeMapView.tsx +1 -1
  44. package/src/components/overlays/Cluster.tsx +2 -1
  45. package/src/components/overlays/HeatMap.tsx +2 -1
  46. package/src/components/overlays/MultiPoint.tsx +2 -1
@@ -0,0 +1,39 @@
1
+ import ExpoModulesCore
2
+
3
+ public class PolylineViewModule: Module {
4
+ public func definition() -> ModuleDefinition {
5
+ Name("PolylineView")
6
+
7
+ View(PolylineView.self) {
8
+ Events("onPress")
9
+
10
+ Prop("points") { (view: PolylineView, points: [[String: Double]]) in
11
+ view.setPoints(points)
12
+ }
13
+
14
+ Prop("width") { (view: PolylineView, width: Double) in
15
+ view.setStrokeWidth(Float(width))
16
+ }
17
+
18
+ Prop("strokeWidth") { (view: PolylineView, width: Double) in
19
+ view.setStrokeWidth(Float(width))
20
+ }
21
+
22
+ Prop("color") { (view: PolylineView, color: String) in
23
+ view.setStrokeColor(color)
24
+ }
25
+
26
+ Prop("strokeColor") { (view: PolylineView, color: String) in
27
+ view.setStrokeColor(color)
28
+ }
29
+
30
+ Prop("texture") { (view: PolylineView, url: String?) in
31
+ view.setTexture(url)
32
+ }
33
+
34
+ Prop("dotted") { (view: PolylineView, dotted: Bool) in
35
+ view.setDotted(dotted)
36
+ }
37
+ }
38
+ }
39
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-gaode-map",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "一个功能完整的高德地图 React Native 组件库,基于 Expo Modules 开发,提供地图显示、定位、覆盖物等功能。",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -16,7 +16,7 @@ import type {
16
16
 
17
17
  export type { MapViewRef } from './types';
18
18
 
19
- const NativeView: React.ComponentType<MapViewProps & { ref?: React.Ref<NativeMapViewRef> }> = requireNativeViewManager('ExpoGaodeMap');
19
+ const NativeView: React.ComponentType<MapViewProps & { ref?: React.Ref<NativeMapViewRef> }> = requireNativeViewManager('ExpoGaodeMapView');
20
20
 
21
21
  export const MapContext = React.createContext<React.RefObject<MapViewRef | null> | null>(null);
22
22
 
@@ -1,8 +1,9 @@
1
+
1
2
  import { requireNativeViewManager } from 'expo-modules-core';
2
3
  import * as React from 'react';
3
4
  import type { ClusterProps } from '../../types';
4
5
 
5
- const NativeCluster = requireNativeViewManager('ExpoGaodeMap_ClusterView');
6
+ const NativeCluster = requireNativeViewManager('ClusterView');
6
7
 
7
8
 
8
9
  /**
@@ -1,8 +1,9 @@
1
+
1
2
  import { requireNativeViewManager } from 'expo-modules-core';
2
3
  import * as React from 'react';
3
4
  import type { HeatMapProps } from '../../types';
4
5
 
5
- const NativeHeatMap = requireNativeViewManager('ExpoGaodeMap_HeatMapView');
6
+ const NativeHeatMap = requireNativeViewManager('HeatMapView');
6
7
 
7
8
 
8
9
  /**
@@ -1,8 +1,9 @@
1
+
1
2
  import { requireNativeViewManager } from 'expo-modules-core';
2
3
  import * as React from 'react';
3
4
  import type { MultiPointProps } from '../../types';
4
5
 
5
- const NativeMultiPoint = requireNativeViewManager('ExpoGaodeMap_MultiPointView');
6
+ const NativeMultiPoint = requireNativeViewManager('MultiPointView');
6
7
 
7
8
 
8
9
  /**