react-native-maps 1.21.0-alpha.84 → 1.21.0-alpha.86
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.
|
@@ -2,32 +2,21 @@ package com.rnmaps.maps;
|
|
|
2
2
|
|
|
3
3
|
import android.content.Context;
|
|
4
4
|
import android.graphics.Bitmap;
|
|
5
|
-
import android.graphics.Canvas;
|
|
6
|
-
import android.graphics.Color;
|
|
7
|
-
import android.graphics.Paint;
|
|
8
|
-
import android.graphics.drawable.Animatable;
|
|
9
5
|
import android.net.Uri;
|
|
10
6
|
import android.os.Handler;
|
|
11
7
|
import android.os.Looper;
|
|
12
8
|
|
|
13
|
-
import androidx.annotation.Nullable;
|
|
14
|
-
|
|
15
9
|
import com.facebook.common.references.CloseableReference;
|
|
16
10
|
import com.facebook.datasource.BaseDataSubscriber;
|
|
17
11
|
import com.facebook.datasource.DataSource;
|
|
18
12
|
import com.facebook.datasource.DataSubscriber;
|
|
19
13
|
import com.facebook.drawee.backends.pipeline.Fresco;
|
|
20
|
-
import com.facebook.drawee.controller.BaseControllerListener;
|
|
21
|
-
import com.facebook.drawee.controller.ControllerListener;
|
|
22
14
|
import com.facebook.drawee.drawable.ScalingUtils;
|
|
23
15
|
import com.facebook.drawee.generic.GenericDraweeHierarchy;
|
|
24
16
|
import com.facebook.drawee.generic.GenericDraweeHierarchyBuilder;
|
|
25
|
-
import com.facebook.drawee.view.DraweeHolder;
|
|
26
17
|
import com.facebook.imagepipeline.core.ImagePipeline;
|
|
27
18
|
import com.facebook.imagepipeline.image.CloseableBitmap;
|
|
28
19
|
import com.facebook.imagepipeline.image.CloseableImage;
|
|
29
|
-
import com.facebook.imagepipeline.image.CloseableStaticBitmap;
|
|
30
|
-
import com.facebook.imagepipeline.image.ImageInfo;
|
|
31
20
|
import com.facebook.imagepipeline.request.ImageRequest;
|
|
32
21
|
import com.facebook.imagepipeline.request.ImageRequestBuilder;
|
|
33
22
|
import com.facebook.react.bridge.ReadableArray;
|
|
@@ -45,7 +34,7 @@ import com.rnmaps.fabric.event.OnPressEvent;
|
|
|
45
34
|
import java.util.Map;
|
|
46
35
|
import java.util.concurrent.Executors;
|
|
47
36
|
|
|
48
|
-
public class MapOverlay extends MapFeature
|
|
37
|
+
public class MapOverlay extends MapFeature {
|
|
49
38
|
|
|
50
39
|
|
|
51
40
|
private String imageUri;
|
|
@@ -267,23 +256,12 @@ public class MapOverlay extends MapFeature implements ImageReadable {
|
|
|
267
256
|
groundOverlayCollection = null;
|
|
268
257
|
}
|
|
269
258
|
|
|
270
|
-
@Override
|
|
271
|
-
public void setIconBitmap(Bitmap bitmap) {
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
@Override
|
|
275
|
-
public void setBitmapDescriptor(
|
|
276
|
-
BitmapDescriptor bitmapDescriptor) {
|
|
277
|
-
this.bitmapDescriptor = bitmapDescriptor;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
@Override
|
|
281
259
|
public void update() {
|
|
282
260
|
this.groundOverlay = getGroundOverlay();
|
|
283
261
|
if (this.groundOverlay != null) {
|
|
284
262
|
this.groundOverlay.setVisible(true);
|
|
285
263
|
this.groundOverlay.setImage(this.bitmapDescriptor);
|
|
286
|
-
|
|
264
|
+
// this.groundOverlay.setTransparency(this.transparency);
|
|
287
265
|
this.groundOverlay.setClickable(this.tappable);
|
|
288
266
|
}
|
|
289
267
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
package com.rnmaps.maps;
|
|
2
2
|
|
|
3
3
|
import android.content.Context;
|
|
4
|
-
import android.
|
|
4
|
+
import android.graphics.Color;
|
|
5
5
|
|
|
6
6
|
import com.facebook.react.bridge.ReactContext;
|
|
7
7
|
import com.facebook.react.bridge.ReadableArray;
|
|
@@ -42,6 +42,7 @@ public class MapPolygon extends MapFeature {
|
|
|
42
42
|
|
|
43
43
|
public MapPolygon(Context context) {
|
|
44
44
|
super(context);
|
|
45
|
+
strokeWidth = 10;
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
public static Map<String, Object> getExportedCustomBubblingEventTypeConstants() {
|
|
@@ -193,6 +194,7 @@ public class MapPolygon extends MapFeature {
|
|
|
193
194
|
options.geodesic(geodesic);
|
|
194
195
|
options.zIndex(zIndex);
|
|
195
196
|
options.strokePattern(this.pattern);
|
|
197
|
+
options.clickable(this.tappable);
|
|
196
198
|
|
|
197
199
|
if (this.holes != null) {
|
|
198
200
|
for (int i = 0; i < holes.size(); i++) {
|
|
@@ -212,7 +214,6 @@ public class MapPolygon extends MapFeature {
|
|
|
212
214
|
public void addToMap(Object collection) {
|
|
213
215
|
PolygonManager.Collection polygonCollection = (PolygonManager.Collection) collection;
|
|
214
216
|
polygon = polygonCollection.addPolygon(getPolygonOptions());
|
|
215
|
-
polygon.setClickable(this.tappable);
|
|
216
217
|
}
|
|
217
218
|
|
|
218
219
|
@Override
|
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.86",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"lint": "eslint . --max-warnings 0",
|