react-native-maps 1.21.0-alpha.85 → 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.
@@ -1,7 +1,7 @@
1
1
  package com.rnmaps.maps;
2
2
 
3
3
  import android.content.Context;
4
- import android.util.Log;
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.85",
8
+ "version": "1.21.0-alpha.86",
9
9
  "license": "MIT",
10
10
  "scripts": {
11
11
  "lint": "eslint . --max-warnings 0",