You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"updateAcquireFence: Did not find frame" continues logging but stops logging if I don't use MapLibreMap.
Steps to Reproduce
Add MapLibre package
Using it:
MapLibreMap(
logoViewMargins: const Point(-50, -50),
onMapCreated: (MapLibreMapController controller) async {
if (!mapController.libreMapController.isCompleted) {
mapController.libreMapController.complete(controller);
}
},
onCameraIdle: () {
// Check if the map controller is available and if we have a valid starting position
if (!(mapController.fromLatLng.value != null &&
mapController.markers.isEmpty)) {
return;
}
if (mapController.libreMapController.isCompleted) {
mapController.libreMapController.future.then((controller) {
final currentCameraPosition = controller.cameraPosition;
// Only execute if the camera position has changed
if (currentCameraPosition != null) {
final newLatLng = currentCameraPosition.target;
if (lastMapPosition == null ||
newLatLng.latitude != lastMapPosition?.latitude ||
newLatLng.longitude != lastMapPosition?.longitude) {
// Update the last known map position
lastMapPosition = newLatLng;
mapController.fromLocationCameraMove(newLatLng);
// Get the location name from latlng
mapController
.getAddressFromLatLng(LatLng(
newLatLng.latitude,
newLatLng.longitude,
))
.then((value) async {
debugPrint("Location Address: $value");
});
}
}
});
}
},
trackCameraPosition: true,
myLocationEnabled: true,
myLocationTrackingMode: MyLocationTrackingMode.tracking,
initialCameraPosition: const CameraPosition(
target: LatLng(27.7192873, 85.3238007), zoom: 14.0),
styleString:
"https://api.baato.io/api/v1/styles/breeze?key=${AppConstants.baatoApi}",
),
Expected Results
"updateAcquireFence: Did not find frame" should not be displayed.
Actual Results
"updateAcquireFence: Did not find frame" should not be displayed.
Code Sample
MapLibreMap(
logoViewMargins: const Point(-50, -50),
onMapCreated: (MapLibreMapController controller) async {
if (!mapController.libreMapController.isCompleted) {
mapController.libreMapController.complete(controller);
}
},
onCameraIdle: () {
// Check if the map controller is available and if we have a valid starting position
if (!(mapController.fromLatLng.value != null &&
mapController.markers.isEmpty)) {
return;
}
if (mapController.libreMapController.isCompleted) {
mapController.libreMapController.future.then((controller) {
final currentCameraPosition = controller.cameraPosition;
// Only execute if the camera position has changed
if (currentCameraPosition != null) {
final newLatLng = currentCameraPosition.target;
if (lastMapPosition == null ||
newLatLng.latitude != lastMapPosition?.latitude ||
newLatLng.longitude != lastMapPosition?.longitude) {
// Update the last known map position
lastMapPosition = newLatLng;
mapController.fromLocationCameraMove(newLatLng);
// Get the location name from latlng
mapController
.getAddressFromLatLng(LatLng(
newLatLng.latitude,
newLatLng.longitude,
))
.then((value) async {
debugPrint("Location Address: $value");
});
}
}
});
}
},
trackCameraPosition: true,
myLocationEnabled: true,
myLocationTrackingMode: MyLocationTrackingMode.tracking,
initialCameraPosition: const CameraPosition(
target: LatLng(27.7192873, 85.3238007), zoom: 14.0),
styleString:
"https://api.baato.io/api/v1/styles/breeze?key=${AppConstants.baatoApi}",
),
The text was updated successfully, but these errors were encountered:
Platforms
android
Version of flutter maplibre_gl
^0.20.0
Bug Description
"updateAcquireFence: Did not find frame" continues logging but stops logging if I don't use MapLibreMap.
Steps to Reproduce
Expected Results
"updateAcquireFence: Did not find frame" should not be displayed.
Actual Results
"updateAcquireFence: Did not find frame" should not be displayed.
Code Sample
The text was updated successfully, but these errors were encountered: