react-native-maps 1.26.7 → 1.26.9
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.
|
@@ -268,7 +268,7 @@ public class MarkerManager extends ViewGroupManager<MapMarker> implements RNMaps
|
|
|
268
268
|
public void redraw(MapMarker view) {
|
|
269
269
|
view.redraw();
|
|
270
270
|
}
|
|
271
|
-
|
|
271
|
+
|
|
272
272
|
@Override
|
|
273
273
|
public void addView(MapMarker parent, View child, int index) {
|
|
274
274
|
// if an <Callout /> component is a child, then it is a callout view, NOT part of the
|
|
@@ -284,7 +284,9 @@ public class MarkerManager extends ViewGroupManager<MapMarker> implements RNMaps
|
|
|
284
284
|
int newWidth = right - left;
|
|
285
285
|
int newHeight = bottom - top;
|
|
286
286
|
MapMarker marker = (MapMarker) v.getParent();
|
|
287
|
-
marker
|
|
287
|
+
if(marker != null){
|
|
288
|
+
marker.update(newWidth, newHeight);
|
|
289
|
+
}
|
|
288
290
|
}
|
|
289
291
|
});
|
|
290
292
|
}
|
|
@@ -872,8 +872,9 @@ public class MapView extends com.google.android.gms.maps.MapView implements Goog
|
|
|
872
872
|
|
|
873
873
|
builder.tilt((float) camera.getDouble("pitch"));
|
|
874
874
|
builder.bearing((float) camera.getDouble("heading"));
|
|
875
|
-
|
|
876
|
-
|
|
875
|
+
if (camera.hasKey("zoom")) {
|
|
876
|
+
builder.zoom((float) camera.getDouble("zoom"));
|
|
877
|
+
}
|
|
877
878
|
return builder.build();
|
|
878
879
|
}
|
|
879
880
|
|
|
@@ -1911,7 +1912,7 @@ public class MapView extends com.google.android.gms.maps.MapView implements Goog
|
|
|
1911
1912
|
/**
|
|
1912
1913
|
* Safely removes a view from its parent ViewGroup.
|
|
1913
1914
|
* Prevents NullPointerException during component lifecycle operations.
|
|
1914
|
-
*
|
|
1915
|
+
*
|
|
1915
1916
|
* @param view The view to remove from its parent
|
|
1916
1917
|
* @return true if the view was successfully removed, false otherwise
|
|
1917
1918
|
*/
|
|
@@ -1929,7 +1930,7 @@ public class MapView extends com.google.android.gms.maps.MapView implements Goog
|
|
|
1929
1930
|
/**
|
|
1930
1931
|
* Safely requests touch event handling from parent ViewGroup.
|
|
1931
1932
|
* Prevents NullPointerException during touch event dispatching.
|
|
1932
|
-
*
|
|
1933
|
+
*
|
|
1933
1934
|
* @param disallowIntercept Whether to disallow parent touch interception
|
|
1934
1935
|
* @return true if the request was successfully made, false otherwise
|
|
1935
1936
|
*/
|
|
@@ -1945,7 +1946,7 @@ public class MapView extends com.google.android.gms.maps.MapView implements Goog
|
|
|
1945
1946
|
/**
|
|
1946
1947
|
* Safely removes a MapFeature from the attacherGroup.
|
|
1947
1948
|
* Prevents NullPointerException during feature removal operations.
|
|
1948
|
-
*
|
|
1949
|
+
*
|
|
1949
1950
|
* @param feature The MapFeature to remove from attacherGroup
|
|
1950
1951
|
* @return true if the feature was successfully removed, false otherwise
|
|
1951
1952
|
*/
|
|
@@ -525,6 +525,7 @@ if (!(newViewProps.name.latitude == 0 && \
|
|
|
525
525
|
#define REMAP_MAPVIEW_CAMERA_PROP(name) \
|
|
526
526
|
if (newViewProps.name.center.latitude != oldViewProps.name.center.latitude || \
|
|
527
527
|
newViewProps.name.center.longitude != oldViewProps.name.center.longitude || \
|
|
528
|
+
newViewProps.name.altitude != oldViewProps.name.altitude || \
|
|
528
529
|
newViewProps.name.heading != oldViewProps.name.heading || \
|
|
529
530
|
newViewProps.name.pitch != oldViewProps.name.pitch) { \
|
|
530
531
|
CLLocationCoordinate2D center = CLLocationCoordinate2DMake( \
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"main": "src/index.ts",
|
|
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.26.
|
|
8
|
+
"version": "1.26.9",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"lint": "eslint . --max-warnings 0",
|