Canvas location lock improvement.
PR Description:
At present, when the canvas location is locked and the user zooms in or out with a mouse, the lock will break.
Fix:
Using same approach in zoomInButton and zoomOutButton:
if (gnssButton.followActive)
gnssButton.followActiveSkipExtentChanged = true;
Demo:
Now zooming in/out wont break lock.
🎉 Ta-daaa, freshly created APKs are available for d5d71f384ddbc9cd605dc6734f3c3f9d6e042d4f: arm64-android
@mohsenD98 , we need to change this a bit so we don't introduce a "random" item id within MapCanvas.qml (makes it a lot harder to test individual components).
I'd go for adding a signal aboutToZoom(), and then add the logic in qgismobileapp.qml (where gnssButton lives) by listening for that signal.
@mohsenD98 , we need to change this a bit so we don't introduce a "random" item id within MapCanvas.qml (makes it a lot harder to test individual components).
I'd go for adding a signal aboutToZoom(), and then add the logic in qgismobileapp.qml (where gnssButton lives) by listening for that signal.
Good point :+1: