@maplibre/maplibre-react-native 10.1.3 → 10.1.4
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.
package/ios/MLRN/MLRNCamera.m
CHANGED
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
[_map setCamera:camera animated:NO];
|
|
189
189
|
|
|
190
190
|
if (_map.userTrackingMode != [self _userTrackingMode]) {
|
|
191
|
-
|
|
191
|
+
_map.userTrackingMode = [self _userTrackingMode];
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
if (newLastLocation) {
|
|
82
82
|
lastKnownLocation = newLastLocation;
|
|
83
83
|
}
|
|
84
|
-
MLRNLocation *location = [self
|
|
84
|
+
MLRNLocation *location = [self _convertToMLRNLocation:lastKnownLocation];
|
|
85
85
|
return location;
|
|
86
86
|
}
|
|
87
87
|
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
return;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
MLRNLocation *userLocation = [self
|
|
134
|
+
MLRNLocation *userLocation = [self _convertToMLRNLocation:lastKnownLocation];
|
|
135
135
|
|
|
136
136
|
if (listeners.count > 0) {
|
|
137
137
|
for (int i = 0; i < listeners.count; i++) {
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
[_delegate locationManager:self didUpdateLocation:userLocation];
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
-
- (MLRNLocation *)
|
|
146
|
+
- (MLRNLocation *)_convertToMLRNLocation:(CLLocation *)location {
|
|
147
147
|
if (location == nil) {
|
|
148
148
|
return nil;
|
|
149
149
|
}
|
package/package.json
CHANGED