@maplibre/maplibre-react-native 11.2.1 → 11.3.1
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.
|
@@ -3,7 +3,7 @@ require "json"
|
|
|
3
3
|
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
4
4
|
|
|
5
5
|
# Global Variable Defaults
|
|
6
|
-
$MLRN_NATIVE_VERSION ||= "6.
|
|
6
|
+
$MLRN_NATIVE_VERSION ||= "6.26.0"
|
|
7
7
|
$MLRN_SPM_SPEC ||= {
|
|
8
8
|
url: "https://github.com/maplibre/maplibre-gl-native-distribution",
|
|
9
9
|
requirement: {
|
|
@@ -5,7 +5,7 @@ org.maplibre.reactnative.compileSdkVersion=35
|
|
|
5
5
|
org.maplibre.reactnative.ndkVersion=27.1.12297006
|
|
6
6
|
|
|
7
7
|
# MapLibre React Native
|
|
8
|
-
org.maplibre.reactnative.nativeVersion=13.0
|
|
8
|
+
org.maplibre.reactnative.nativeVersion=13.2.0
|
|
9
9
|
org.maplibre.reactnative.nativeVariant=opengl
|
|
10
10
|
org.maplibre.reactnative.pluginVersion=3.0.2
|
|
11
11
|
org.maplibre.reactnative.turfVersion=6.0.1
|
|
@@ -273,18 +273,16 @@ static double const M2PI = M_PI * 2;
|
|
|
273
273
|
NSMutableArray<MLRNSource *> *hitTouchableSources = [[NSMutableArray alloc] init];
|
|
274
274
|
for (MLRNSource *touchableSource in touchableSources) {
|
|
275
275
|
NSDictionary<NSString *, NSNumber *> *hitbox = touchableSource.hitbox;
|
|
276
|
-
float
|
|
277
|
-
float
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
CGFloat left = screenPoint.x - halfWidth;
|
|
276
|
+
float top = [hitbox[@"top"] floatValue];
|
|
277
|
+
float right = [hitbox[@"right"] floatValue];
|
|
278
|
+
float bottom = [hitbox[@"bottom"] floatValue];
|
|
279
|
+
float left = [hitbox[@"left"] floatValue];
|
|
281
280
|
CGRect hitboxRect =
|
|
282
|
-
CGRectMake(left, top,
|
|
281
|
+
CGRectMake(screenPoint.x - left, screenPoint.y - top, left + right, top + bottom);
|
|
283
282
|
|
|
284
283
|
NSArray<id<MLNFeature>> *features =
|
|
285
284
|
[self visibleFeaturesInRect:hitboxRect
|
|
286
|
-
inStyleLayersWithIdentifiers:[NSSet setWithArray:[touchableSource getLayerIDs]]
|
|
287
|
-
predicate:nil];
|
|
285
|
+
inStyleLayersWithIdentifiers:[NSSet setWithArray:[touchableSource getLayerIDs]]];
|
|
288
286
|
|
|
289
287
|
if (features.count > 0) {
|
|
290
288
|
hits[touchableSource.id] = features;
|
|
@@ -5,13 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
@implementation MLRNSource
|
|
7
7
|
|
|
8
|
-
double const DEFAULT_HITBOX_AREA = 44.0;
|
|
9
|
-
|
|
10
8
|
- (instancetype)initWithFrame:(CGRect)frame {
|
|
11
9
|
if (self = [super initWithFrame:frame]) {
|
|
12
10
|
_layers = [[NSMutableArray alloc] init];
|
|
13
11
|
_reactSubviews = [[NSMutableArray alloc] init];
|
|
14
|
-
_hitbox = @{@"
|
|
12
|
+
_hitbox = @{@"top" : @22.0f, @"right" : @22.0f, @"bottom" : @22.0f, @"left" : @22.0f};
|
|
15
13
|
}
|
|
16
14
|
return self;
|
|
17
15
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maplibre/maplibre-react-native",
|
|
3
3
|
"description": "React Native library for creating maps with MapLibre Native for Android & iOS",
|
|
4
|
-
"version": "11.
|
|
4
|
+
"version": "11.3.1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
7
7
|
"provenance": true
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
"@turf/nearest-point-on-line": "^7.3.5"
|
|
164
164
|
},
|
|
165
165
|
"devDependencies": {
|
|
166
|
-
"@expo/config-plugins": "
|
|
166
|
+
"@expo/config-plugins": "56.0.8",
|
|
167
167
|
"@react-native-community/cli": "20.1.3",
|
|
168
168
|
"@react-native/babel-preset": "0.85.3",
|
|
169
169
|
"@react-native/jest-preset": "0.85.3",
|