react-native-maps 1.28.1 → 1.28.2
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.
|
@@ -158,7 +158,7 @@ public class MapManager extends ViewGroupManager<MapView> {
|
|
|
158
158
|
@ReactProp(name = "mapType")
|
|
159
159
|
public void setMapType(MapView view, @Nullable String mapType) {
|
|
160
160
|
int typeId = MAP_TYPES.get(mapType);
|
|
161
|
-
view.
|
|
161
|
+
view.setMapType(typeId);
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
@ReactProp(name = "customMapStyleString")
|
|
@@ -159,6 +159,7 @@ public class MapView extends com.google.android.gms.maps.MapView implements Goog
|
|
|
159
159
|
private LatLng tapLocation;
|
|
160
160
|
private Float maxZoomLevel;
|
|
161
161
|
private Float minZoomLevel;
|
|
162
|
+
private Integer mapType;
|
|
162
163
|
private Boolean pitchEnabled;
|
|
163
164
|
private Boolean showsCompass;
|
|
164
165
|
private Boolean rotateEnabled;
|
|
@@ -479,6 +480,9 @@ public class MapView extends com.google.android.gms.maps.MapView implements Goog
|
|
|
479
480
|
return;
|
|
480
481
|
}
|
|
481
482
|
this.map = map;
|
|
483
|
+
if (mapType != null) {
|
|
484
|
+
setMapType(mapType);
|
|
485
|
+
}
|
|
482
486
|
if (maxZoomLevel != null) {
|
|
483
487
|
setMaxZoomLevel(maxZoomLevel);
|
|
484
488
|
}
|
|
@@ -1025,6 +1029,7 @@ public class MapView extends com.google.android.gms.maps.MapView implements Goog
|
|
|
1025
1029
|
}
|
|
1026
1030
|
|
|
1027
1031
|
public void setMapType(int mapType) {
|
|
1032
|
+
this.mapType = mapType;
|
|
1028
1033
|
if (map != null) {
|
|
1029
1034
|
map.setMapType(mapType);
|
|
1030
1035
|
}
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"types": "dist/src/index.d.ts",
|
|
8
8
|
"author": "Leland Richardson <leland.m.richardson@gmail.com>",
|
|
9
9
|
"homepage": "https://github.com/react-native-maps/react-native-maps#readme",
|
|
10
|
-
"version": "1.28.
|
|
10
|
+
"version": "1.28.2",
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"lint": "eslint . --max-warnings 0",
|