@maplibre/maplibre-react-native 10.1.2 → 10.1.3

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.
@@ -134,16 +134,15 @@
134
134
  }
135
135
 
136
136
  - (BOOL)_areBoundsValid:(MLNCoordinateBounds)bounds {
137
- BOOL isValid =
138
- CLLocationCoordinate2DIsValid(bounds.ne) && CLLocationCoordinate2DIsValid(bounds.sw);
139
-
140
- if (!isValid) {
141
- return NO;
137
+ if ([self _isLatitudeValid:bounds.ne.latitude] && [self _isLatitudeValid:bounds.sw.latitude]) {
138
+ return YES;
142
139
  }
143
140
 
144
- CLLocationCoordinate2D ne = bounds.ne;
145
- CLLocationCoordinate2D sw = bounds.sw;
146
- return [self _isCoordValid:ne] && [self _isCoordValid:sw];
141
+ return NO;
142
+ }
143
+
144
+ - (BOOL)_isLatitudeValid:(CLLocationDegrees)latitude {
145
+ return latitude >= -90 && latitude <= 90;
147
146
  }
148
147
 
149
148
  - (BOOL)_isCoordValid:(CLLocationCoordinate2D)coord {
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": "10.1.2",
4
+ "version": "10.1.3",
5
5
  "publishConfig": {
6
6
  "access": "public",
7
7
  "provenance": true