Bug 376530 - Map jumps to 0/0 position when using "Zoom into a group"
Summary: Map jumps to 0/0 position when using "Zoom into a group"
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-GeolocationEdit (show other bugs)
Version: 5.5.0
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-16 08:15 UTC by Barbara Scheffner
Modified: 2017-03-07 22:16 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 5.5.0


Attachments
Console output when trying to "Zoom into a group" (31.35 KB, text/plain)
2017-02-16 08:15 UTC, Barbara Scheffner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Barbara Scheffner 2017-02-16 08:15:44 UTC
Created attachment 104048 [details]
Console output when trying to "Zoom into a group"

When trying to "Zoom into a group" at a small zoom factor (map showing the whole world) in the Geolocation Editor the map jumps to geographic position 0/0 with a bigger zoom factor. Now you have find your way back by zooming out, panning back and evetually zooming in at least a bit to make sure the same doesn't happen again.

Reproducible: always.

Steps to reproduce:
- select a few images with GPS coordinates close to each other or identical
- open Geolocation Editor (Ctrl Shift G)
- typically you see a map showing the whole world or a globe and a thumnail or marker on it.
- click "Zoom into a group" button under the map
- click on the marker or thumbnail

Result: map jumps to position 0/0 and shows a bigger zoom factor.

Expected Result: map jumps to group position and zoom factor will be increased until individual images become visible or to maximum.

The same happens sometimes also in the Map tab on the Right Sidebar but it is not always reproducible. Seems to depend on what you did before.

Console output is attached.
Comment 1 Barbara Scheffner 2017-02-16 09:31:34 UTC
I just foud out that this is not limited to a small zoom factor. I just had the same problem when clicking for "Zoom into a Group" when zoomed in already quite a lot.
Comment 2 Maik Qualmann 2017-02-23 19:05:12 UTC
Wolfgang,

can you confirm that only the first mouse click in the group will fail. It works after the second mouse click. Looks for an issue in Marble, let's see if I find a workaround.

Maik
Comment 3 Barbara Scheffner 2017-02-23 22:52:50 UTC
Yes, I can confirm that.
Comment 4 Maik Qualmann 2017-02-27 20:38:24 UTC
Git commit 202f61dc8b545ba9224c564de13f138210cbbf02 by Maik Qualmann.
Committed on 27/02/2017 at 20:36.
Pushed by mqualmann into branch 'master'.

fix center on map when using zoom into a group
FIXED-IN: 5.5.0

M  +2    -2    NEWS
M  +1    -0    utilities/geolocation/geoiface/backends/backendmarble.cpp

https://commits.kde.org/digikam/202f61dc8b545ba9224c564de13f138210cbbf02
Comment 5 Barbara Scheffner 2017-02-27 21:25:35 UTC
Ah, great! Thanks, Maik! I will test it with the next AppImage.
Comment 6 Barbara Scheffner 2017-03-02 13:17:14 UTC
O.k. Maik,
works fine! Thanks!

Meanwhile I found a similar problem: When clicking on a location in the search result of the geolocation editor the map jumps to the right place but often the zoom factor is so high that you have no clue where you are. File another bug? Maybe you better take a look at it first if you think it is worth it.
Comment 7 Maik Qualmann 2017-03-07 22:08:51 UTC
Git commit 300aea9d80091ccf4577b3fb140bdafaa8dcd7e1 by Maik Qualmann.
Committed on 07/03/2017 at 22:07.
Pushed by mqualmann into branch 'master'.

remove wrong code to add image position in ImageScanner::copiedFrom()
Related: bug 376933
FIXED-IN: 5.5.0

M  +2    -1    NEWS
M  +0    -5    libs/database/item/imagescanner.cpp

https://commits.kde.org/digikam/300aea9d80091ccf4577b3fb140bdafaa8dcd7e1
Comment 8 Maik Qualmann 2017-03-07 22:16:42 UTC
The Comment 7 is wrong for this bug, sorry.

Maik