@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
|
-
|
|
138
|
-
|
|
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
|
-
|
|
145
|
-
|
|
146
|
-
|
|
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