expo-gaode-map 1.0.5 → 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.
- package/README.en.md +320 -0
- package/README.md +2 -0
- package/android/src/main/java/expo/modules/gaodemap/ExpoGaodeMapModule.kt +1 -298
- package/android/src/main/java/expo/modules/gaodemap/ExpoGaodeMapViewModule.kt +126 -0
- package/android/src/main/java/expo/modules/gaodemap/overlays/CircleViewModule.kt +41 -0
- package/android/src/main/java/expo/modules/gaodemap/overlays/ClusterViewModule.kt +29 -0
- package/android/src/main/java/expo/modules/gaodemap/overlays/HeatMapViewModule.kt +27 -0
- package/android/src/main/java/expo/modules/gaodemap/overlays/MarkerViewModule.kt +49 -0
- package/android/src/main/java/expo/modules/gaodemap/overlays/MultiPointViewModule.kt +21 -0
- package/android/src/main/java/expo/modules/gaodemap/overlays/PolygonViewModule.kt +37 -0
- package/android/src/main/java/expo/modules/gaodemap/overlays/PolylineView.kt +2 -0
- package/android/src/main/java/expo/modules/gaodemap/overlays/PolylineViewModule.kt +45 -0
- package/build/ExpoGaodeMapView.js +1 -1
- package/build/ExpoGaodeMapView.js.map +1 -1
- package/build/components/overlays/Cluster.d.ts.map +1 -1
- package/build/components/overlays/Cluster.js +1 -1
- package/build/components/overlays/Cluster.js.map +1 -1
- package/build/components/overlays/HeatMap.d.ts.map +1 -1
- package/build/components/overlays/HeatMap.js +1 -1
- package/build/components/overlays/HeatMap.js.map +1 -1
- package/build/components/overlays/MultiPoint.d.ts.map +1 -1
- package/build/components/overlays/MultiPoint.js +1 -1
- package/build/components/overlays/MultiPoint.js.map +1 -1
- package/docs/API.en.md +418 -0
- package/docs/API.md +31 -5
- package/docs/ARCHITECTURE.en.md +423 -0
- package/docs/ARCHITECTURE.md +2 -0
- package/docs/EXAMPLES.en.md +642 -0
- package/docs/EXAMPLES.md +2 -0
- package/docs/INITIALIZATION.en.md +346 -0
- package/docs/INITIALIZATION.md +2 -0
- package/expo-module.config.json +22 -2
- package/ios/ExpoGaodeMapModule.swift +0 -334
- package/ios/ExpoGaodeMapViewModule.swift +155 -0
- package/ios/modules/LocationManager.swift +4 -3
- package/ios/overlays/CircleViewModule.swift +31 -0
- package/ios/overlays/ClusterViewModule.swift +23 -0
- package/ios/overlays/HeatMapViewModule.swift +21 -0
- package/ios/overlays/MarkerViewModule.swift +55 -0
- package/ios/overlays/MultiPointViewModule.swift +15 -0
- package/ios/overlays/PolygonViewModule.swift +27 -0
- package/ios/overlays/PolylineViewModule.swift +39 -0
- package/package.json +1 -1
- package/src/ExpoGaodeMapView.tsx +1 -1
- package/src/components/overlays/Cluster.tsx +2 -1
- package/src/components/overlays/HeatMap.tsx +2 -1
- package/src/components/overlays/MultiPoint.tsx +2 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import ExpoModulesCore
|
|
2
|
+
|
|
3
|
+
public class PolygonViewModule: Module {
|
|
4
|
+
public func definition() -> ModuleDefinition {
|
|
5
|
+
Name("PolygonView")
|
|
6
|
+
|
|
7
|
+
View(PolygonView.self) {
|
|
8
|
+
Events("onPress")
|
|
9
|
+
|
|
10
|
+
Prop("points") { (view: PolygonView, points: [[String: Double]]) in
|
|
11
|
+
view.setPoints(points)
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
Prop("fillColor") { (view: PolygonView, color: String) in
|
|
15
|
+
view.setFillColor(color)
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
Prop("strokeColor") { (view: PolygonView, color: String) in
|
|
19
|
+
view.setStrokeColor(color)
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
Prop("strokeWidth") { (view: PolygonView, width: Double) in
|
|
23
|
+
view.setStrokeWidth(Float(width))
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -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
package/src/ExpoGaodeMapView.tsx
CHANGED
|
@@ -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('
|
|
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('
|
|
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('
|
|
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('
|
|
6
|
+
const NativeMultiPoint = requireNativeViewManager('MultiPointView');
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
/**
|