react-native-maps 1.21.0-alpha.44 → 1.21.0-alpha.46
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/ios/AirMaps/RNMapsMarkerView.mm +8 -0
- package/lib/MapMarker.js +2 -2
- package/lib/MapOverlay.js +2 -8
- package/package.json +1 -1
|
@@ -70,6 +70,14 @@ using namespace facebook::react;
|
|
|
70
70
|
[_view.map deselectAnnotation:_view animated:YES];
|
|
71
71
|
|
|
72
72
|
}
|
|
73
|
+
- (void) redraw
|
|
74
|
+
{
|
|
75
|
+
// do nothing
|
|
76
|
+
}
|
|
77
|
+
- (void) redrawCallout
|
|
78
|
+
{
|
|
79
|
+
// do nothing
|
|
80
|
+
}
|
|
73
81
|
|
|
74
82
|
- (void) setCoordinates:(double)latitude longitude:(double)longitude
|
|
75
83
|
{
|
package/lib/MapMarker.js
CHANGED
|
@@ -130,8 +130,8 @@ class MapMarker extends React.Component {
|
|
|
130
130
|
image = this.props.image;
|
|
131
131
|
}
|
|
132
132
|
else {
|
|
133
|
-
|
|
134
|
-
image =
|
|
133
|
+
const resolvedImage = react_native_1.Image.resolveAssetSource(this.props.image) || {};
|
|
134
|
+
image = resolvedImage.uri || this.props.image;
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
return (<AIRMapMarker {...this.props} ref={this.marker} image={image} icon={icon} style={[styles.marker, this.props.style]} onPress={event => {
|
package/lib/MapOverlay.js
CHANGED
|
@@ -35,14 +35,8 @@ class MapOverlay extends React.Component {
|
|
|
35
35
|
render() {
|
|
36
36
|
const { opacity = 1.0 } = this.props;
|
|
37
37
|
let image;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
image = this.props.image.uri;
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
const sourceAsset = react_native_1.Image.resolveAssetSource(this.props.image) || {};
|
|
44
|
-
image = sourceAsset.uri;
|
|
45
|
-
}
|
|
38
|
+
const resolvedImage = react_native_1.Image.resolveAssetSource(this.props.image) || {};
|
|
39
|
+
image = resolvedImage.uri || this.props.image;
|
|
46
40
|
const AIRMapOverlay = this.getNativeComponent();
|
|
47
41
|
return (<AIRMapOverlay {...this.props} opacity={opacity} image={image} style={[styles.overlay, this.props.style]}/>);
|
|
48
42
|
}
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"author": "Leland Richardson <leland.m.richardson@gmail.com>",
|
|
7
7
|
"homepage": "https://github.com/react-native-maps/react-native-maps#readme",
|
|
8
|
-
"version": "1.21.0-alpha.
|
|
8
|
+
"version": "1.21.0-alpha.46",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"lint": "eslint . --max-warnings 0",
|